diff options
author | NIIBE Yutaka <[email protected]> | 2019-07-18 01:59:29 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-07-18 02:02:34 +0000 |
commit | 44be675b759d27bac310c2de8bae1b7882a26b65 (patch) | |
tree | 5713852e465da439d445547b41ac987e99d9ef56 /g10/dek.h | |
parent | doc: Fix description of the field 11. (diff) | |
download | gnupg-44be675b759d27bac310c2de8bae1b7882a26b65.tar.gz gnupg-44be675b759d27bac310c2de8bae1b7882a26b65.zip |
gpg: More check for symmetric key encryption.
* g10/dek.h (DEK): Use debugger friendly type of unsigned int.
* g10/mainproc.c (symkey_decrypt_seskey): Add another check.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/dek.h')
-rw-r--r-- | g10/dek.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,16 +30,16 @@ typedef struct /* 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 : 1; + unsigned int algo_info_printed : 1; /* AEAD shall be used. The value is the AEAD algo. */ int use_aead : 4; /* MDC shall be used. */ - int use_mdc : 1; + unsigned int use_mdc : 1; /* This key was read from a SK-ESK packet (see proc_symkey_enc). */ - int symmetric : 1; + unsigned int symmetric : 1; /* This is the largest used keylen (256 bit). */ byte key[32]; |