mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-21 15:41:00 +00:00
Clean up LMS and LMOTS feature dependencies
Remove SHA256 dependencies from tests, fix incorrect boolean logic in check_config, and change depends_hashes.pl to disable LMS in one test Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
6b2c573b3d
commit
1b43a7448d
@ -354,7 +354,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_LMS_C) && \
|
#if defined(MBEDTLS_LMS_C) && \
|
||||||
( !defined(MBEDTLS_PSA_CRYPTO_C) && !defined(PSA_WANT_ALG_SHA256) )
|
! ( defined(MBEDTLS_PSA_CRYPTO_C) && defined(PSA_WANT_ALG_SHA256) )
|
||||||
#error "MBEDTLS_LMS_C requires MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA256"
|
#error "MBEDTLS_LMS_C requires MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA256"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ my @hash_configs = (
|
|||||||
['unset MBEDTLS_MD5_C'],
|
['unset MBEDTLS_MD5_C'],
|
||||||
['unset MBEDTLS_SHA512_C', 'unset MBEDTLS_SHA384_C '],
|
['unset MBEDTLS_SHA512_C', 'unset MBEDTLS_SHA384_C '],
|
||||||
['unset MBEDTLS_SHA384_C'],
|
['unset MBEDTLS_SHA384_C'],
|
||||||
['unset MBEDTLS_SHA256_C', 'unset MBEDTLS_SHA224_C'],
|
['unset MBEDTLS_SHA256_C', 'unset MBEDTLS_SHA224_C', 'unset MBEDTLS_LMS_C', 'unset MBEDTLS_LMS_PRIVATE'],
|
||||||
['unset MBEDTLS_SHA1_C'],
|
['unset MBEDTLS_SHA1_C'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ exit:
|
|||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
* depends_on:MBEDTLS_LMS_C:PSA_WANT_ALG_SHA_256
|
* depends_on:MBEDTLS_LMS_C
|
||||||
* END_DEPENDENCIES
|
* END_DEPENDENCIES
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
* depends_on:MBEDTLS_LMS_C:PSA_WANT_ALG_SHA_256
|
* depends_on:MBEDTLS_LMS_C
|
||||||
* END_DEPENDENCIES
|
* END_DEPENDENCIES
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user