diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-06-29 11:40:46 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-29 11:41:22 +0200 |
commit | bed60f9b846a850a756db66ece552cb7cc3e1f0d (patch) | |
tree | c38c27e1795c7964ab31fb8e8874b29fe8748077 /include/libssh | |
parent | 10728f85778d30485b7cbd8585b12f7bcc5bf8e1 (diff) | |
download | libssh-bed60f9b846a850a756db66ece552cb7cc3e1f0d.tar.gz libssh-bed60f9b846a850a756db66ece552cb7cc3e1f0d.tar.xz libssh-bed60f9b846a850a756db66ece552cb7cc3e1f0d.zip |
kex: Enable chacha20-poly1304 KEX with mbedtls
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/crypto.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index 4064481d..2447de14 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -129,11 +129,10 @@ struct ssh_cipher_struct { unsigned int blocksize; /* blocksize of the algo */ enum ssh_cipher_e ciphertype; uint32_t lenfield_blocksize; /* blocksize of the packet length field */ -#ifdef HAVE_LIBGCRYPT size_t keylen; /* length of the key structure */ +#ifdef HAVE_LIBGCRYPT gcry_cipher_hd_t *key; #elif defined HAVE_LIBCRYPTO - size_t keylen; /* length of the key structure */ struct ssh_3des_key_schedule *des3_key; struct ssh_aes_key_schedule *aes_key; const EVP_CIPHER *cipher; |