summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hmac/hmac.c
diff options
context:
space:
mode:
authordjm <>2011-11-03 02:34:33 +0000
committerdjm <>2011-11-03 02:34:33 +0000
commit6d0fb3b3bc3c11f7d4831f061e59a06f29d0ec8e (patch)
treea8fc08e33aecdd21cb07aa47c8a3a9db715f2ef3 /src/lib/libcrypto/hmac/hmac.c
parent509e4c3041a1e04b41603ac8dd4dbc72152b416e (diff)
downloadopenbsd-6d0fb3b3bc3c11f7d4831f061e59a06f29d0ec8e.tar.gz
openbsd-6d0fb3b3bc3c11f7d4831f061e59a06f29d0ec8e.tar.bz2
openbsd-6d0fb3b3bc3c11f7d4831f061e59a06f29d0ec8e.zip
openssl-1.0.0e: resolve conflicts
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/hmac/hmac.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c
index 45015fe754..6c98fc43a3 100644
--- a/src/lib/libcrypto/hmac/hmac.c
+++ b/src/lib/libcrypto/hmac/hmac.c
@@ -138,12 +138,9 @@ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len)
138 138
139int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) 139int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
140 { 140 {
141 int j;
142 unsigned int i; 141 unsigned int i;
143 unsigned char buf[EVP_MAX_MD_SIZE]; 142 unsigned char buf[EVP_MAX_MD_SIZE];
144 143
145 j=EVP_MD_block_size(ctx->md);
146
147 if (!EVP_DigestFinal_ex(&ctx->md_ctx,buf,&i)) 144 if (!EVP_DigestFinal_ex(&ctx->md_ctx,buf,&i))
148 goto err; 145 goto err;
149 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->o_ctx)) 146 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->o_ctx))