mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-24 01:41:35 +03:00
mbedtls_test_psa_exported_key_sanity_check: check for length equality for DH keys
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
@ -791,7 +791,7 @@ int mbedtls_test_psa_exported_key_sanity_check(
|
||||
}
|
||||
} else
|
||||
if (PSA_KEY_TYPE_IS_DH_PUBLIC_KEY(type) || PSA_KEY_TYPE_IS_DH_KEY_PAIR(type)) {
|
||||
TEST_ASSERT(exported_length <=
|
||||
TEST_ASSERT(exported_length ==
|
||||
PSA_EXPORT_PUBLIC_KEY_OUTPUT_SIZE(type, bits));
|
||||
TEST_ASSERT(exported_length <=
|
||||
PSA_EXPORT_PUBLIC_KEY_MAX_SIZE);
|
||||
|
Reference in New Issue
Block a user