Key policies#

Typedefs#

typedef uint32_t

Encoding of permitted usage on a key.

typedef uint32_t

Encoding of permitted usage on a key.

Macros#

#define
PSA_KEY_USAGE_EXPORT ((psa_key_usage_t)0x00000001)

Whether the key may be exported.

#define
PSA_KEY_USAGE_COPY ((psa_key_usage_t)0x00000002)

Whether the key may be copied.

#define
PSA_KEY_USAGE_ENCRYPT ((psa_key_usage_t)0x00000100)

Whether the key may be used to encrypt a message.

#define
PSA_KEY_USAGE_DECRYPT ((psa_key_usage_t)0x00000200)

Whether the key may be used to decrypt a message.

#define
PSA_KEY_USAGE_SIGN_MESSAGE ((psa_key_usage_t)0x00000400)

Whether the key may be used to sign a message.

#define
PSA_KEY_USAGE_VERIFY_MESSAGE ((psa_key_usage_t)0x00000800)

Whether the key may be used to verify a message.

#define
PSA_KEY_USAGE_SIGN_HASH ((psa_key_usage_t)0x00001000)

Whether the key may be used to sign a message.

#define
PSA_KEY_USAGE_VERIFY_HASH ((psa_key_usage_t)0x00002000)

Whether the key may be used to verify a message signature.

#define
PSA_KEY_USAGE_DERIVE ((psa_key_usage_t)0x00004000)

Whether the key may be used to derive other keys or produce a password hash.

#define
PSA_KEY_USAGE_VERIFY_DERIVATION ((psa_key_usage_t)0x00008000)

Whether the key may be used to verify the result of a key derivation, including password hashing.

#define
PSA_KEY_USAGE_EXPORT ((psa_key_usage_t)0x00000001)

Whether the key may be exported.

#define
PSA_KEY_USAGE_COPY ((psa_key_usage_t)0x00000002)

Whether the key may be copied.

#define
PSA_KEY_USAGE_ENCRYPT ((psa_key_usage_t)0x00000100)

Whether the key may be used to encrypt a message.

#define
PSA_KEY_USAGE_DECRYPT ((psa_key_usage_t)0x00000200)

Whether the key may be used to decrypt a message.

#define
PSA_KEY_USAGE_SIGN_MESSAGE ((psa_key_usage_t)0x00000400)

Whether the key may be used to sign a message.

#define
PSA_KEY_USAGE_VERIFY_MESSAGE ((psa_key_usage_t)0x00000800)

Whether the key may be used to verify a message.

#define
PSA_KEY_USAGE_SIGN_HASH ((psa_key_usage_t)0x00001000)

Whether the key may be used to sign a message.

#define
PSA_KEY_USAGE_VERIFY_HASH ((psa_key_usage_t)0x00002000)

Whether the key may be used to verify a message signature.

#define
PSA_KEY_USAGE_DERIVE ((psa_key_usage_t)0x00004000)

Whether the key may be used to derive other keys or produce a password hash.

#define
PSA_KEY_USAGE_VERIFY_DERIVATION ((psa_key_usage_t)0x00008000)

Whether the key may be used to verify the result of a key derivation, including password hashing.

Typedef Documentation#

psa_key_usage_t#

typedef uint32_t psa_key_usage_t

Encoding of permitted usage on a key.

Values of this type are generally constructed as bitwise-ors of macros called PSA_KEY_USAGE_xxx.

Note

  • Values of this type are encoded in the persistent key store. Any changes to existing values will require bumping the storage format version and providing a translation when reading the old format.


psa_key_usage_t#

typedef uint32_t psa_key_usage_t

Encoding of permitted usage on a key.