diff options
Diffstat (limited to '')
-rw-r--r-- | g10/encrypt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c index 2c8508ca0..fe18c15ad 100644 --- a/g10/encrypt.c +++ b/g10/encrypt.c @@ -66,7 +66,15 @@ encrypt_store (const char *filename) } -static void +/* *SESKEY contains the unencrypted session key ((*SESKEY)->KEY) and + the algorithm that will be used to encrypt the contents of the SED + packet ((*SESKEY)->ALGO). If *SESKEY is NULL, then a random + session key that is appropriate for DEK->ALGO is generated and + stored there. + + Encrypt that session key using DEK and store the result in ENCKEY, + which must be large enough to hold (*SESKEY)->KEYLEN + 1 bytes. */ +void encrypt_seskey (DEK *dek, DEK **seskey, byte *enckey) { gcry_cipher_hd_t hd; |