mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 22:20:30 +00: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:
parent
2c9fc07cc4
commit
4c0da51ee7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user