diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/hmac/hmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c index 5c349bbb56..23b7c98f8f 100644 --- a/src/lib/libcrypto/hmac/hmac.c +++ b/src/lib/libcrypto/hmac/hmac.c | |||
| @@ -109,7 +109,7 @@ void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, | |||
| 109 | memcpy(&ctx->md_ctx,&ctx->i_ctx,sizeof(ctx->i_ctx)); | 109 | memcpy(&ctx->md_ctx,&ctx->i_ctx,sizeof(ctx->i_ctx)); |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | void HMAC_Update(HMAC_CTX *ctx, unsigned char *data, int len) | 112 | void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len) |
| 113 | { | 113 | { |
| 114 | EVP_DigestUpdate(&(ctx->md_ctx),data,len); | 114 | EVP_DigestUpdate(&(ctx->md_ctx),data,len); |
| 115 | } | 115 | } |
| @@ -134,7 +134,7 @@ void HMAC_cleanup(HMAC_CTX *ctx) | |||
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, | 136 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, |
| 137 | unsigned char *d, int n, unsigned char *md, | 137 | const unsigned char *d, int n, unsigned char *md, |
| 138 | unsigned int *md_len) | 138 | unsigned int *md_len) |
| 139 | { | 139 | { |
| 140 | HMAC_CTX c; | 140 | HMAC_CTX c; |
