Changing my preferences

Werner Koch wk@gnupg.org
Fri, 12 Jan 2001 10:48:34 +0100


On Thu, 11 Jan 2001, James H. Cloos Jr. wrote:


> Between --list-packets, (the rfc?) and the src it shouldn't be too
> hard to work out what octets to change, given a desire to keep the
You can't change those bytes becuase they are signed and GnuPG check the signature of course. The far easiest way to change the preferences is by editing g10/keygen.c, function keygen_add_std_prefs() where you find this: buf[0] = CIPHER_ALGO_RIJNDAEL; buf[1] = CIPHER_ALGO_TWOFISH; buf[2] = CIPHER_ALGO_CAST5; buf[3] = CIPHER_ALGO_BLOWFISH; build_sig_subpkt( sig, SIGSUBPKT_PREF_SYM, buf, 4 ); Easy to change. The go to the edit menu and change the expireation time for the main key ("expire"). This create the new preferences. You may want to change the expiration time back to the old value immediatley after that. Werner -- Werner Koch <wk@gnupg.org> GNU Privacy Guard (http://www.gnupg.org) Free Software Foundation Europe (http://www.fsfeurope.org) [Please see X-* mail header for OpenPGP key info] -- Archive is at http://lists.gnupg.org - Unsubscribe by sending mail with a subject of "unsubscribe" to gnupg-users-request@gnupg.org