mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-10 08:55:15 +00:00
Merge pull request #7438 from valeriosetti/issue7074
Avoid parse/unparse private ECC keys in PK with USE_PSA when !ECP_C
This commit is contained in:
commit
7b1136836c
15 changed files with 332 additions and 156 deletions
|
|
@ -247,7 +247,21 @@ TASKS = {
|
|||
'ECP test vectors secp256r1 rfc 5114',
|
||||
'ECP test vectors secp384r1 rfc 5114',
|
||||
'ECP test vectors secp521r1 rfc 5114',
|
||||
]
|
||||
],
|
||||
'test_suite_pkparse': [
|
||||
# This is a known difference for Montgomery curves: in
|
||||
# reference component private keys are parsed using
|
||||
# mbedtls_mpi_read_binary_le(), while in driver version they
|
||||
# they are imported in PSA and there the parsing is done
|
||||
# through mbedtls_ecp_read_key(). Unfortunately the latter
|
||||
# fixes the errors which are intentionally set on the parsed
|
||||
# key and therefore the following test case is not failing
|
||||
# as expected.
|
||||
# This cause the following test to be guarded by ECP_C and
|
||||
# not being executed on the driver version.
|
||||
('Key ASN1 (OneAsymmetricKey X25519, doesn\'t match masking '
|
||||
'requirements, from RFC8410 Appendix A but made into version 0)'),
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue