mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 23:05:37 +01:00
069346cdab
To start with, test that key creation fails as intended when the key type is not supported. This commit only covers psa_import_key and psa_generate_key. A follow-up will cover psa_key_derivation_output_key. My primary intent in creating this new test suite is to automatically generate test cases by enumerating the key types and algorithms that the library supports. But this commit only adds a few manually written test cases, to get the ball rolling. Move the relevant test cases of test_suite_psa_crypto.data that only depend on generic knowledge about the API. Keep test cases that depend more closely on the implementation, such as tests of non-supported key sizes, in test_suite_psa_crypto.data. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
12 lines
423 B
Plaintext
12 lines
423 B
Plaintext
PSA import PSA_KEY_TYPE_NONE never supported
|
|
import_not_supported:PSA_KEY_TYPE_NONE:"1234"
|
|
|
|
PSA generate PSA_KEY_TYPE_NONE never supported
|
|
generate_not_supported:PSA_KEY_TYPE_NONE:16
|
|
|
|
PSA import PSA_KEY_TYPE_CATEGORY_SYMMETRIC never supported
|
|
import_not_supported:PSA_KEY_TYPE_CATEGORY_SYMMETRIC:"1234"
|
|
|
|
PSA generate PSA_KEY_TYPE_CATEGORY_SYMMETRIC never supported
|
|
generate_not_supported:PSA_KEY_TYPE_CATEGORY_SYMMETRIC:16
|