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 /include/libssh/libgcrypt.h | |
| 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 'include/libssh/libgcrypt.h')
| -rw-r--r-- | include/libssh/libgcrypt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libssh/libgcrypt.h b/include/libssh/libgcrypt.h index 0b1b16da..3afbcb49 100644 --- a/include/libssh/libgcrypt.h +++ b/include/libssh/libgcrypt.h @@ -30,8 +30,13 @@ typedef gcry_md_hd_t SHACTX; typedef gcry_md_hd_t MD5CTX; typedef gcry_md_hd_t HMACCTX; -#define SHA_DIGEST_LEN 20 +#define SHA_DIGEST_LENGTH 20 +#define SHA_DIGEST_LEN SHA_DIGEST_LENGTH #define MD5_DIGEST_LEN 16 +#define SHA256_DIGEST_LENGTH 32 +#define SHA384_DIGEST_LENGTH 48 +#define SHA512_DIGEST_LENGTH 64 + #define EVP_MAX_MD_SIZE 36 typedef gcry_mpi_t bignum; |
