diff options
Diffstat (limited to 'src/lib/libcrypto/hmac/hmac.h')
-rw-r--r-- | src/lib/libcrypto/hmac/hmac.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.h b/src/lib/libcrypto/hmac/hmac.h index 328bad2608..0364a1fcbd 100644 --- a/src/lib/libcrypto/hmac/hmac.h +++ b/src/lib/libcrypto/hmac/hmac.h | |||
@@ -58,7 +58,7 @@ | |||
58 | #ifndef HEADER_HMAC_H | 58 | #ifndef HEADER_HMAC_H |
59 | #define HEADER_HMAC_H | 59 | #define HEADER_HMAC_H |
60 | 60 | ||
61 | #ifdef NO_HMAC | 61 | #ifdef OPENSSL_NO_HMAC |
62 | #error HMAC is disabled. | 62 | #error HMAC is disabled. |
63 | #endif | 63 | #endif |
64 | 64 | ||
@@ -83,11 +83,17 @@ typedef struct hmac_ctx_st | |||
83 | #define HMAC_size(e) (EVP_MD_size((e)->md)) | 83 | #define HMAC_size(e) (EVP_MD_size((e)->md)) |
84 | 84 | ||
85 | 85 | ||
86 | void HMAC_CTX_init(HMAC_CTX *ctx); | ||
87 | void HMAC_CTX_cleanup(HMAC_CTX *ctx); | ||
88 | |||
89 | #define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) /* deprecated */ | ||
90 | |||
86 | void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, | 91 | void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, |
87 | const EVP_MD *md); | 92 | const EVP_MD *md); /* deprecated */ |
93 | void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ||
94 | const EVP_MD *md, ENGINE *impl); | ||
88 | void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len); | 95 | void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len); |
89 | void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); | 96 | void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); |
90 | void HMAC_cleanup(HMAC_CTX *ctx); | ||
91 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, | 97 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, |
92 | const unsigned char *d, int n, unsigned char *md, | 98 | const unsigned char *d, int n, unsigned char *md, |
93 | unsigned int *md_len); | 99 | unsigned int *md_len); |