Gilles Peskine 793920c1ff mbedtls_pk_get_psa_attributes: opaque: require specified usage
In the MBEDTLS_PK_OPAQUE, have mbedtls_pk_get_psa_attributes() require the
specified usage to be enabled for the specified key. Otherwise the following
call to mbedtls_pk_import_into_psa() is unlikely to result in a key with a
useful policy, so the call to mbedtls_pk_get_psa_attributes() was probably
an error.

Adjust the existing test cases accordingly and add a few negative test
cases.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-02-01 21:31:27 +01:00
..
2023-07-27 14:17:27 +01:00
2023-07-27 14:17:27 +01:00
2023-07-27 14:17:27 +01:00
2023-07-27 14:17:27 +01:00
2023-07-27 16:02:42 +01:00
2024-02-01 20:53:11 +01:00
2023-03-21 16:28:00 +01:00
2023-07-27 14:17:27 +01:00
2023-12-14 23:34:48 +00:00
2023-03-21 16:29:31 +01:00
2023-03-31 18:04:34 +01:00
2023-11-08 11:40:08 +00:00