HMAC_CTX_copy, copy save_len, save_key

This commit is contained in:
Takashi Kojo
2017-11-27 05:08:31 +09:00
committed by Jacob Barthelmeh
parent e93d7d3c93
commit 30e6ec5396
2 changed files with 44 additions and 0 deletions

View File

@@ -24729,6 +24729,8 @@ int wolfSSL_HMAC_CTX_copy(WOLFSSL_HMAC_CTX* des, WOLFSSL_HMAC_CTX* src)
des->hmac.heap = src->hmac.heap;
des->hmac.macType = src->hmac.macType;
des->hmac.innerHashKeyed = src->hmac.innerHashKeyed;
des->save_len = src->save_len;
XMEMCPY(des->save_key, src->save_key, src->save_len);
#ifdef WOLFSSL_ASYNC_CRYPT
XMEMCPY(des->hmac.asyncDev, src->hmac.asyncDev, sizeof(WC_ASYNC_DEV));