ARM-software / psa-arch-tests

Tests for verifying implementations of TBSA-v8M and the PSA Certified APIs
Apache License 2.0
67 stars 103 forks source link

Test42 fix RSA public key import format #380

Closed oberon-sk closed 4 months ago

oberon-sk commented 4 months ago

The rsa_key_pair_public_key array is used in test 42 as input to psa_import_key to get a public RSA key. The data contained in the array is formatted as a x509 "PublicKeyInfo" structure. However the only format which is mandatory to support in psa_import_key is "RSAPublicKey". rsa_128_key_data already has the expected format and is used in other tests as well (39, 40, 41, 42, 52, and 53)

C.f. Test39 fix RSA public key import format #320

Signed-off-by: Oberon microsystems AG

avinaw01-arm commented 4 months ago

Thank you very much for spotting this out, @oberon-sk. I'll merge this P.R. after doing internal validation and verification.