diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-06-13 13:46:34 +0200 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-06-13 13:46:34 +0200 |
| commit | c5a998f47afc0c79c4badfa5f6554ae51ad92e82 (patch) | |
| tree | 4a0b2d03049833ae85ea7f837b010403dd357a3a /src/crypt.c | |
| parent | 3b72bf08802a058cb663a40359ed0e006a1480ca (diff) | |
| download | libssh-c5a998f47afc0c79c4badfa5f6554ae51ad92e82.tar.gz libssh-c5a998f47afc0c79c4badfa5f6554ae51ad92e82.tar.xz libssh-c5a998f47afc0c79c4badfa5f6554ae51ad92e82.zip | |
[crypto] initial support for ecdh-sha2-nistp256
Works with openssl
Still requires work for libgcrypt and other modes
Diffstat (limited to 'src/crypt.c')
| -rw-r--r-- | src/crypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypt.c b/src/crypt.c index 363517e6..4c2e465c 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -136,7 +136,7 @@ unsigned char *packet_encrypt(ssh_session session, void *data, uint32_t len) { #endif if (session->version == 2) { - ctx = hmac_init(session->current_crypto->encryptMAC,20,HMAC_SHA1); + ctx = hmac_init(session->current_crypto->encryptMAC,20,SSH_HMAC_SHA1); if (ctx == NULL) { SAFE_FREE(out); return NULL; @@ -190,7 +190,7 @@ int packet_hmac_verify(ssh_session session, ssh_buffer buffer, unsigned int len; uint32_t seq; - ctx = hmac_init(session->current_crypto->decryptMAC, 20, HMAC_SHA1); + ctx = hmac_init(session->current_crypto->decryptMAC, 20, SSH_HMAC_SHA1); if (ctx == NULL) { return -1; } |
