diff options
Diffstat (limited to 'g10/sign.c')
| -rw-r--r-- | g10/sign.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c index f0bf9b671..9ef032e74 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -1728,7 +1728,18 @@ sign_symencrypt_file (ctrl_t ctrl, const char *fname, strlist_t locusr) /* Write the symmetric key packet */ /* (current filters: armor)*/ { - PKT_symkey_enc *enc = xmalloc_clear( sizeof *enc ); + PKT_symkey_enc *enc = xmalloc_clear (sizeof *enc); + + /* FIXME: seskeylen is 0, thus we directly encrypt the session key: + * + * ...then the S2K algorithm applied to the passphrase produces + * the session key for decrypting the file, using the symmetric + * cipher algorithm from the Symmetric-Key Encrypted Session Key + * packet. + * + * The problem is that this does not allow us to add additional + * encrypted session keys. + */ enc->version = cfx.dek->use_aead ? 5 : 4; enc->cipher_algo = cfx.dek->algo; |
