Add ECJPAKE secret input types to psa/crypto_config.h
Add PSA_WANT_KEY_TYPE_PASSWORD and PSA_WANT_KEY_TYPE_PASSWORD_HASH to psa/crypto_config.h, since the types PSA_KEY_TYPE_PASSWORD and PSA_KEY_TYPE_PASSWORD_HASH are used by ECJPAKE. The two key types are always enabled, like PSA_KEY_TYPE_DERIVE. Add the key types to the metadata test suite as well. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
cafda872f3
commit
bba2630549
4 changed files with 12 additions and 0 deletions
|
@ -843,6 +843,8 @@ extern "C" {
|
||||||
|
|
||||||
/* These features are always enabled. */
|
/* These features are always enabled. */
|
||||||
#define PSA_WANT_KEY_TYPE_DERIVE 1
|
#define PSA_WANT_KEY_TYPE_DERIVE 1
|
||||||
|
#define PSA_WANT_KEY_TYPE_PASSWORD 1
|
||||||
|
#define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1
|
||||||
#define PSA_WANT_KEY_TYPE_RAW_DATA 1
|
#define PSA_WANT_KEY_TYPE_RAW_DATA 1
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -116,6 +116,8 @@
|
||||||
#define PSA_WANT_ECC_SECP_R1_521 1
|
#define PSA_WANT_ECC_SECP_R1_521 1
|
||||||
|
|
||||||
#define PSA_WANT_KEY_TYPE_DERIVE 1
|
#define PSA_WANT_KEY_TYPE_DERIVE 1
|
||||||
|
#define PSA_WANT_KEY_TYPE_PASSWORD 1
|
||||||
|
#define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1
|
||||||
#define PSA_WANT_KEY_TYPE_HMAC 1
|
#define PSA_WANT_KEY_TYPE_HMAC 1
|
||||||
#define PSA_WANT_KEY_TYPE_AES 1
|
#define PSA_WANT_KEY_TYPE_AES 1
|
||||||
#define PSA_WANT_KEY_TYPE_ARIA 1
|
#define PSA_WANT_KEY_TYPE_ARIA 1
|
||||||
|
|
|
@ -159,6 +159,8 @@ class KeyTypeNotSupported:
|
||||||
|
|
||||||
ALWAYS_SUPPORTED = frozenset([
|
ALWAYS_SUPPORTED = frozenset([
|
||||||
'PSA_KEY_TYPE_DERIVE',
|
'PSA_KEY_TYPE_DERIVE',
|
||||||
|
'PSA_KEY_TYPE_PASSWORD',
|
||||||
|
'PSA_KEY_TYPE_PASSWORD_HASH',
|
||||||
'PSA_KEY_TYPE_RAW_DATA',
|
'PSA_KEY_TYPE_RAW_DATA',
|
||||||
'PSA_KEY_TYPE_HMAC'
|
'PSA_KEY_TYPE_HMAC'
|
||||||
])
|
])
|
||||||
|
|
|
@ -339,6 +339,12 @@ key_type:PSA_KEY_TYPE_HMAC:KEY_TYPE_IS_UNSTRUCTURED
|
||||||
Key type: secret for key derivation
|
Key type: secret for key derivation
|
||||||
key_type:PSA_KEY_TYPE_DERIVE:KEY_TYPE_IS_UNSTRUCTURED
|
key_type:PSA_KEY_TYPE_DERIVE:KEY_TYPE_IS_UNSTRUCTURED
|
||||||
|
|
||||||
|
Key type: password
|
||||||
|
key_type:PSA_KEY_TYPE_PASSWORD:KEY_TYPE_IS_UNSTRUCTURED
|
||||||
|
|
||||||
|
Key type: password hash
|
||||||
|
key_type:PSA_KEY_TYPE_PASSWORD_HASH:KEY_TYPE_IS_UNSTRUCTURED
|
||||||
|
|
||||||
Block cipher key type: AES
|
Block cipher key type: AES
|
||||||
depends_on:PSA_WANT_KEY_TYPE_AES
|
depends_on:PSA_WANT_KEY_TYPE_AES
|
||||||
block_cipher_key_type:PSA_KEY_TYPE_AES:16
|
block_cipher_key_type:PSA_KEY_TYPE_AES:16
|
||||||
|
|
Loading…
Reference in a new issue