aboutsummaryrefslogtreecommitdiffstats
path: root/g10/dek.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-02-03 13:23:51 +0000
committerNeal H. Walfield <[email protected]>2016-02-14 13:46:30 +0000
commit9663b088480cef6734a3c5892d5ddbbd60ecc1a4 (patch)
treef8ec39ad5d9f271b7a8c7c61528d8df25985d1e8 /g10/dek.h
parentgpg: Fix calc_header_length when LEN is 0 and improve documentation. (diff)
downloadgnupg-9663b088480cef6734a3c5892d5ddbbd60ecc1a4.tar.gz
gnupg-9663b088480cef6734a3c5892d5ddbbd60ecc1a4.zip
gpg: Improve API documentation.
* g10/seskey.c (make_session_key): Improve documentation. (encode_session_key): Improve documentation. * g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization. * g10/dek.h (DEK): Improve documenation. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'g10/dek.h')
-rw-r--r--g10/dek.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/dek.h b/g10/dek.h
index 31ebbb6d2..1a879e3af 100644
--- a/g10/dek.h
+++ b/g10/dek.h
@@ -22,10 +22,16 @@
typedef struct
{
+ /* The algorithm (e.g., CIPHER_ALGO_AES). */
int algo;
+ /* The length of the key (in bytes). */
int keylen;
+ /* Whether we've already printed information about this key. This
+ is currently only used in decrypt_data() and only if we are in
+ verbose mode. */
int algo_info_printed;
int use_mdc;
+ /* This key was read from a SK-ESK packet (see proc_symkey_enc). */
int symmetric;
byte key[32]; /* This is the largest used keylen (256 bit). */
char s2k_cacheid[1+16+1];