commit | d742a032f4b6c8ae39468da35a5725f5640b8423 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Jan 30 19:07:22 2014 +0100 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Jan 30 23:17:33 2014 +0100 |
tree | 9463eacfc711ec7ed3df868bf23c64d24ef78a6b | |
parent | 658dbed080dbb0cbefcb950a7493c9bbe5d0fe9d [diff] |
Use md_hmac_reset() when possible
diff --git a/library/hmac_drbg.c b/library/hmac_drbg.c index 328ba92..7e361f4 100644 --- a/library/hmac_drbg.c +++ b/library/hmac_drbg.c
@@ -229,7 +229,7 @@ { size_t use_len = left > md_len ? md_len : left; - md_hmac_starts( &ctx->md_ctx, ctx->K, md_len ); + md_hmac_reset( &ctx->md_ctx ); md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); md_hmac_finish( &ctx->md_ctx, ctx->V );