diff --git a/library/check_crypto_config.h b/library/check_crypto_config.h index cac90a0df..5a8deff0a 100644 --- a/library/check_crypto_config.h +++ b/library/check_crypto_config.h @@ -64,6 +64,16 @@ #error "PSA_WANT_ALG_RSA_PSS defined, but not all prerequisites" #endif +#if defined(PSA_WANT_ALG_SHA_224) && \ + !( defined(PSA_WANT_ALG_SHA_256) ) +#error "PSA_WANT_ALG_SHA224 defined, but not all prerequisites" +#endif + +#if defined(PSA_WANT_ALG_SHA_384) && \ + !( defined(PSA_WANT_ALG_SHA_512) ) +#error "PSA_WANT_ALG_SHA384 defined, but not all prerequisites" +#endif + #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) && \ !defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) #error "PSA_WANT_KEY_TYPE_ECC_KEY_PAIR defined, but not all prerequisites"