diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2012-02-04 23:37:25 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-04 23:44:55 +0100 |
| commit | 216cb8b1aa86d6fd5cf8db38938e70d5986403cd (patch) | |
| tree | 96a4bb4b9fab1a34a719e42d3f5ea1c68a52461a /include/libssh/libcrypto.h | |
| parent | fb6855a8213fb8b0434fae3a08943d3bd4c827a9 (diff) | |
| download | libssh-216cb8b1aa86d6fd5cf8db38938e70d5986403cd.tar.gz libssh-216cb8b1aa86d6fd5cf8db38938e70d5986403cd.tar.xz libssh-216cb8b1aa86d6fd5cf8db38938e70d5986403cd.zip | |
crypto: Add evp hashing function.
Diffstat (limited to 'include/libssh/libcrypto.h')
| -rw-r--r-- | include/libssh/libcrypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h index 8ddeac97..acfa1094 100644 --- a/include/libssh/libcrypto.h +++ b/include/libssh/libcrypto.h @@ -31,6 +31,10 @@ #include <openssl/sha.h> #include <openssl/md5.h> #include <openssl/hmac.h> +#ifdef HAVE_OPENSSL_ECC +#include <openssl/evp.h> +#endif + typedef SHA_CTX* SHACTX; typedef SHA256_CTX* SHA256CTX; typedef MD5_CTX* MD5CTX; @@ -42,6 +46,10 @@ typedef HMAC_CTX* HMACCTX; #endif #define MD5_DIGEST_LEN MD5_DIGEST_LENGTH +#ifdef HAVE_OPENSSL_ECC +#define EVP_DIGEST_LEN EVP_MAX_MD_SIZE +#endif + #include <openssl/bn.h> #include <openssl/opensslv.h> #define OPENSSL_0_9_7b 0x0090702fL |
