mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
fix comment and remove duplicate free
This commit is contained in:
@@ -840,7 +840,6 @@ int wc_HashFree(wc_HashAlg* hash, enum wc_HashType type)
|
|||||||
}
|
}
|
||||||
wc_Sha256Free(sha256);
|
wc_Sha256Free(sha256);
|
||||||
}
|
}
|
||||||
wc_Sha256Free(sha256);
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
|
@@ -64,6 +64,7 @@ int wc_InitSha256_ex(wc_Sha256* sha, void* heap, int devId)
|
|||||||
|
|
||||||
sha->rdFd = wc_Afalg_CreateRead(sha->alFd, WC_TYPE_HASH, WC_NAME_SHA256);
|
sha->rdFd = wc_Afalg_CreateRead(sha->alFd, WC_TYPE_HASH, WC_NAME_SHA256);
|
||||||
if (sha->rdFd < 0) {
|
if (sha->rdFd < 0) {
|
||||||
|
close(sha->alFd);
|
||||||
return WC_AFALG_SOCK_E;
|
return WC_AFALG_SOCK_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2578,8 +2578,8 @@ SHA256_NOINLINE static int Transform_Sha256_AVX2_RORX_Len(wc_Sha256* sha256,
|
|||||||
#elif defined(WOLFSSL_IMX6_CAAM) && !defined(NO_IMX6_CAAM_HASH)
|
#elif defined(WOLFSSL_IMX6_CAAM) && !defined(NO_IMX6_CAAM_HASH)
|
||||||
/* functions defined in wolfcrypt/src/port/caam/caam_sha256.c */
|
/* functions defined in wolfcrypt/src/port/caam/caam_sha256.c */
|
||||||
|
|
||||||
//#elif defined(WOLFSSL_AFALG_HASH)
|
#elif defined(WOLFSSL_AFALG_HASH)
|
||||||
// /* implemented in wolfcrypt/src/port/af_alg/afalg_hash.c */
|
#error SHA224 currently not supported with AF_ALG enabled
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user