* g10.c (main): Add --symmetric --sign --encrypt.
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 13 Nov 2003 02:54:12 +0000 (02:54 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Thu, 13 Nov 2003 02:54:12 +0000 (02:54 +0000)
commitbc1e4357a91b98b39db7f0a5310f9d3f8861aa66
tree53c69e38b06721474b1781acd6f7370096b00655
parentfef77d93b7c38b5f0fe89e7c01e3e92a616f2606
* g10.c (main): Add --symmetric --sign --encrypt.

* main.h, encode.c (setup_symkey): New.  Prompt for a passphrase and
create a DEK for symmetric encryption. (write_symkey_enc): New.  Write out
symmetrically encrypted session keys. (encode_crypt, encrypt_filter): Use
them here here when creating a message that can be decrypted with a
passphrase or a pk.

* sign.c (sign_file): Call setup_symkey if we are doing a --symmetric
--sign --encrypt.
g10/ChangeLog
g10/encode.c
g10/g10.c
g10/main.h
g10/sign.c