mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-03-06 23:04:03 +01:00
Revert "Merge pull request #9045 from douzzer/20250730-revert-PR9000"
This reverts commit70af2be5ab, reversing changes made to46347173b2.
This commit is contained in:
@@ -46932,7 +46932,7 @@ static wc_test_ret_t test_dilithium_decode_level(const byte* rawKey,
|
||||
int isPublicOnlyKey)
|
||||
{
|
||||
int ret = 0;
|
||||
#ifndef WOLFSSL_DILITHIUM_NO_ASN1
|
||||
#if !defined(WOLFSSL_DILITHIUM_NO_ASN1) && defined(WOLFSSL_ASN_TEMPLATE)
|
||||
/* Size the buffer to accommodate the largest encoded key size */
|
||||
const word32 maxDerSz = DILITHIUM_MAX_PRV_KEY_DER_SIZE;
|
||||
word32 derSz;
|
||||
@@ -46982,7 +46982,7 @@ static wc_test_ret_t test_dilithium_decode_level(const byte* rawKey,
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef WOLFSSL_DILITHIUM_NO_ASN1
|
||||
#if !defined(WOLFSSL_DILITHIUM_NO_ASN1) && defined(WOLFSSL_ASN_TEMPLATE)
|
||||
/* Export raw key as DER */
|
||||
if (ret == 0) {
|
||||
#ifdef WOLFSSL_DILITHIUM_PUBLIC_KEY
|
||||
@@ -47056,7 +47056,7 @@ static wc_test_ret_t test_dilithium_decode_level(const byte* rawKey,
|
||||
ret = WC_TEST_RET_ENC_NC;
|
||||
}
|
||||
#endif /* !WOLFSSL_DILITHIUM_FIPS204_DRAFT */
|
||||
#endif /* WOLFSSL_DILITHIUM_NO_ASN1 */
|
||||
#endif /* !WOLFSSL_DILITHIUM_NO_ASN1 && WOLFSSL_ASN_TEMPLATE */
|
||||
|
||||
/* Cleanup */
|
||||
wc_dilithium_free(key);
|
||||
|
||||
Reference in New Issue
Block a user