diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-10-01 14:32:05 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-09 13:05:38 +0200 |
commit | 5790036a2305d5610ac55adb5382ea55d043998f (patch) | |
tree | 66ab807fe1df456856066e771a584db114dae415 /include | |
parent | 032f486f27c51f78318a2f26486ccdcabe139d5e (diff) | |
download | libssh-5790036a2305d5610ac55adb5382ea55d043998f.tar.gz libssh-5790036a2305d5610ac55adb5382ea55d043998f.tar.xz libssh-5790036a2305d5610ac55adb5382ea55d043998f.zip |
libgcrypt: Implement OpenSSH-compatible AES-GCM ciphers using libgcrypt
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index fc375a4f..8777f0c9 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -142,6 +142,7 @@ struct ssh_cipher_struct { size_t keylen; /* length of the key structure */ #ifdef HAVE_LIBGCRYPT gcry_cipher_hd_t *key; + unsigned char last_iv[AES_GCM_IVLEN]; #elif defined HAVE_LIBCRYPTO struct ssh_3des_key_schedule *des3_key; struct ssh_aes_key_schedule *aes_key; |