Skip to content

Commit f492abf

Browse files
authored
Merge pull request #9314 from SparkiDev/silabs_no_hash_raw
SHA-2: No hash raw
2 parents 0d588b4 + d090999 commit f492abf

3 files changed

Lines changed: 3 additions & 14 deletions

File tree

wolfcrypt/src/sha256.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -905,13 +905,6 @@ static int InitSha256(wc_Sha256* sha256)
905905
kAlgorithm_SSS_SHA256);
906906
return ret;
907907
}
908-
int wc_Sha256FinalRaw(wc_Sha256* sha256, byte* hash)
909-
{
910-
int ret = 0;
911-
ret = se050_hash_final(&sha256->se050Ctx, hash, WC_SHA256_DIGEST_SIZE,
912-
kAlgorithm_SSS_SHA256);
913-
return ret;
914-
}
915908

916909
#elif defined(WOLFSSL_AFALG_HASH)
917910
/* implemented in wolfcrypt/src/port/af_alg/afalg_hash.c */

wolfcrypt/src/sha512.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,13 +1632,6 @@ int wc_Sha512Transform(wc_Sha512* sha, const unsigned char* data)
16321632
kAlgorithm_SSS_SHA384);
16331633
return ret;
16341634
}
1635-
int wc_Sha384FinalRaw(wc_Sha384* sha384, byte* hash)
1636-
{
1637-
int ret = 0;
1638-
ret = se050_hash_final(&sha384->se050Ctx, hash, WC_SHA384_DIGEST_SIZE,
1639-
kAlgorithm_SSS_SHA384);
1640-
return ret;
1641-
}
16421635

16431636
#elif defined(WOLFSSL_SILABS_SHA384)
16441637
/* functions defined in wolfcrypt/src/port/silabs/silabs_hash.c */

wolfssl/wolfcrypt/port/nxp/se050_port.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
#endif
5151
#endif
5252

53+
#undef WOLFSSL_NO_HASH_RAW
54+
#define WOLFSSL_NO_HASH_RAW
55+
5356
#ifdef __GNUC__
5457
#pragma GCC diagnostic pop
5558
#endif

0 commit comments

Comments
 (0)