File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,8 +337,8 @@ enum wc_HashType wc_OidGetHash(int oid)
337337 hash_type = WC_ERR_TRACE (WC_HASH_TYPE_NONE );
338338 #endif
339339 break ;
340- #ifdef WOLFSSL_SHA3
341340 case SHA3_512h :
341+ #ifdef WOLFSSL_SHA3
342342 hash_type = WC_HASH_TYPE_SHA3_512 ;
343343 #else
344344 hash_type = WC_ERR_TRACE (WC_HASH_TYPE_NONE );
Original file line number Diff line number Diff line change @@ -1442,9 +1442,13 @@ enum wc_HashType {
14421442 WC_HASH_TYPE_SHA3_512 = 13 ,
14431443 WC_HASH_TYPE_BLAKE2B = 14 ,
14441444 WC_HASH_TYPE_BLAKE2S = 19 ,
1445+ WC_HASH_TYPE_SHA512_224 = 22 ,
1446+ WC_HASH_TYPE_SHA512_256 = 23 ,
14451447 WC_HASH_TYPE_SHAKE128 = 20 ,
14461448 WC_HASH_TYPE_SHAKE256 = 21 ,
1447- WC_HASH_TYPE_MAX = WC_HASH_TYPE_SHAKE256
1449+ WC_HASH_TYPE_SM3 = 24 ,
1450+ WC_HASH_TYPE_MAX = WC_HASH_TYPE_SM3
1451+
14481452 #ifndef WOLFSSL_NOSHA512_224
14491453 #define WOLFSSL_NOSHA512_224
14501454 #endif
You can’t perform that action at this time.
0 commit comments