We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5804ba7 + b146c4e commit d8d3a7aCopy full SHA for d8d3a7a
1 file changed
src/ssl_crypto.c
@@ -1606,6 +1606,20 @@ int wolfSSL_HmacCopy(Hmac* dst, Hmac* src)
1606
#endif /* WOLFSSL_NO_SHA3_512 */
1607
#endif /* WOLFSSL_SHA3 */
1608
1609
+ #ifdef WOLFSSL_SM3
1610
+ case WC_SM3:
1611
+ rc = wc_Sm3Copy(&src->hash.sm3, &dst->hash.sm3);
1612
+ #ifdef WOLFSSL_HMAC_COPY_HASH
1613
+ if (rc == 0) {
1614
+ rc = wc_Sm3Copy(&src->i_hash.sm3, &dst->i_hash.sm3);
1615
+ }
1616
1617
+ rc = wc_Sm3Copy(&src->o_hash.sm3, &dst->o_hash.sm3);
1618
1619
+ #endif
1620
+ break;
1621
+ #endif /* WOLFSSL_SM3 */
1622
+
1623
default:
1624
/* Digest algorithm not supported. */
1625
rc = BAD_FUNC_ARG;
0 commit comments