Mistake on this page?
Report an issue in GitHub or email us
Macros | Typedefs
Key derivation

Macros

#define PSA_KEY_DERIVATION_INPUT_SECRET   ((psa_key_derivation_step_t)0x0101)
 A secret input for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_LABEL   ((psa_key_derivation_step_t)0x0201)
 A label for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SALT   ((psa_key_derivation_step_t)0x0202)
 A salt for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_INFO   ((psa_key_derivation_step_t)0x0203)
 An information string for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SEED   ((psa_key_derivation_step_t)0x0204)
 A seed for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SECRET   ((psa_key_derivation_step_t)0x0101)
 A secret input for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_LABEL   ((psa_key_derivation_step_t)0x0201)
 A label for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SALT   ((psa_key_derivation_step_t)0x0202)
 A salt for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_INFO   ((psa_key_derivation_step_t)0x0203)
 An information string for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SEED   ((psa_key_derivation_step_t)0x0204)
 A seed for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SECRET   ((psa_key_derivation_step_t)0x0101)
 A secret input for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_LABEL   ((psa_key_derivation_step_t)0x0201)
 A label for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SALT   ((psa_key_derivation_step_t)0x0202)
 A salt for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_INFO   ((psa_key_derivation_step_t)0x0203)
 An information string for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SEED   ((psa_key_derivation_step_t)0x0204)
 A seed for key derivation. More...
 
#define PSA_KEY_TYPE_ECC_GET_FAMILY(type)
 Extract the curve from an elliptic curve key type. More...
 
#define PSA_ECC_FAMILY_SECP_K1   ((psa_ecc_family_t) 0x17)
 SEC Koblitz curves over prime fields. More...
 
#define PSA_ECC_FAMILY_SECP_R1   ((psa_ecc_family_t) 0x12)
 SEC random curves over prime fields. More...
 
#define PSA_ECC_FAMILY_SECT_K1   ((psa_ecc_family_t) 0x27)
 SEC Koblitz curves over binary fields. More...
 
#define PSA_ECC_FAMILY_SECT_R1   ((psa_ecc_family_t) 0x22)
 SEC random curves over binary fields. More...
 

Typedefs

typedef uint16_t psa_key_derivation_step_t
 Encoding of the step of a key derivation. More...
 
typedef uint16_t psa_key_derivation_step_t
 Encoding of the step of a key derivation. More...
 
typedef uint16_t psa_key_derivation_step_t
 Encoding of the step of a key derivation. More...
 

Detailed Description

Macro Definition Documentation

#define PSA_ECC_FAMILY_SECP_K1   ((psa_ecc_family_t) 0x17)

SEC Koblitz curves over prime fields.

This family comprises the following curves: secp192k1, secp224k1, secp256k1. They are defined in Standards for Efficient Cryptography, SEC 2: Recommended Elliptic Curve Domain Parameters. https://www.secg.org/sec2-v2.pdf

Definition at line 1714 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_ECC_FAMILY_SECP_R1   ((psa_ecc_family_t) 0x12)

SEC random curves over prime fields.

This family comprises the following curves: secp192k1, secp224r1, secp256r1, secp384r1, secp521r1. They are defined in Standards for Efficient Cryptography, SEC 2: Recommended Elliptic Curve Domain Parameters. https://www.secg.org/sec2-v2.pdf

Definition at line 1724 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_ECC_FAMILY_SECT_K1   ((psa_ecc_family_t) 0x27)

SEC Koblitz curves over binary fields.

This family comprises the following curves: sect163k1, sect233k1, sect239k1, sect283k1, sect409k1, sect571k1. They are defined in Standards for Efficient Cryptography, SEC 2: Recommended Elliptic Curve Domain Parameters. https://www.secg.org/sec2-v2.pdf

Definition at line 1736 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_ECC_FAMILY_SECT_R1   ((psa_ecc_family_t) 0x22)

SEC random curves over binary fields.

This family comprises the following curves: sect163r1, sect233r1, sect283r1, sect409r1, sect571r1. They are defined in Standards for Efficient Cryptography, SEC 2: Recommended Elliptic Curve Domain Parameters. https://www.secg.org/sec2-v2.pdf

Definition at line 1746 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_INFO   ((psa_key_derivation_step_t)0x0203)

An information string for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1690 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_INFO   ((psa_key_derivation_step_t)0x0203)

An information string for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1770 of file TARGET_MBED_PSA_SRV/inc/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_INFO   ((psa_key_derivation_step_t)0x0203)

An information string for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1774 of file TARGET_TFM/TARGET_TFM_LATEST/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_LABEL   ((psa_key_derivation_step_t)0x0201)

A label for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1676 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_LABEL   ((psa_key_derivation_step_t)0x0201)

A label for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1756 of file TARGET_MBED_PSA_SRV/inc/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_LABEL   ((psa_key_derivation_step_t)0x0201)

A label for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1760 of file TARGET_TFM/TARGET_TFM_LATEST/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SALT   ((psa_key_derivation_step_t)0x0202)

A salt for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1683 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SALT   ((psa_key_derivation_step_t)0x0202)

A salt for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1763 of file TARGET_MBED_PSA_SRV/inc/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SALT   ((psa_key_derivation_step_t)0x0202)

A salt for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1767 of file TARGET_TFM/TARGET_TFM_LATEST/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SECRET   ((psa_key_derivation_step_t)0x0101)

A secret input for key derivation.

This should be a key of type PSA_KEY_TYPE_DERIVE (passed to psa_key_derivation_input_key()) or the shared secret resulting from a key agreement (obtained via psa_key_derivation_key_agreement()).

The secret can also be a direct input (passed to key_derivation_input_bytes()). In this case, the derivation operation may not be used to derive keys: the operation will only allow psa_key_derivation_output_bytes(), not psa_key_derivation_output_key().

Definition at line 1669 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SECRET   ((psa_key_derivation_step_t)0x0101)

A secret input for key derivation.

This should be a key of type PSA_KEY_TYPE_DERIVE (passed to psa_key_derivation_input_key()) or the shared secret resulting from a key agreement (obtained via psa_key_derivation_key_agreement()).

The secret can also be a direct input (passed to key_derivation_input_bytes()). In this case, the derivation operation may not be used to derive keys: the operation will only allow psa_key_derivation_output_bytes(), not psa_key_derivation_output_key().

Definition at line 1749 of file TARGET_MBED_PSA_SRV/inc/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SECRET   ((psa_key_derivation_step_t)0x0101)

A secret input for key derivation.

This should be a key of type PSA_KEY_TYPE_DERIVE (passed to psa_key_derivation_input_key()) or the shared secret resulting from a key agreement (obtained via psa_key_derivation_key_agreement()).

The secret can also be a direct input (passed to key_derivation_input_bytes()). In this case, the derivation operation may not be used to derive keys: the operation will only allow psa_key_derivation_output_bytes(), not psa_key_derivation_output_key().

Definition at line 1753 of file TARGET_TFM/TARGET_TFM_LATEST/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SEED   ((psa_key_derivation_step_t)0x0204)

A seed for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1697 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SEED   ((psa_key_derivation_step_t)0x0204)

A seed for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1777 of file TARGET_MBED_PSA_SRV/inc/psa/crypto_values.h.

#define PSA_KEY_DERIVATION_INPUT_SEED   ((psa_key_derivation_step_t)0x0204)

A seed for key derivation.

This should be a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA.

Definition at line 1781 of file TARGET_TFM/TARGET_TFM_LATEST/include/psa/crypto_values.h.

#define PSA_KEY_TYPE_ECC_GET_FAMILY (   type)
Value:
((type) & PSA_KEY_TYPE_ECC_CURVE_MASK) : \
0))
#define PSA_KEY_TYPE_IS_ECC(type)
Whether a key type is an elliptic curve key (pair or public-only).
uint8_t psa_ecc_family_t
The type of PSA elliptic curve family identifiers.

Extract the curve from an elliptic curve key type.

Definition at line 1700 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_values.h.

Typedef Documentation

typedef uint16_t psa_key_derivation_step_t

Encoding of the step of a key derivation.

Definition at line 320 of file TARGET_TFM/TARGET_TFM_V1_0/include/psa/crypto_types.h.

typedef uint16_t psa_key_derivation_step_t

Encoding of the step of a key derivation.

Definition at line 352 of file TARGET_TFM/TARGET_TFM_LATEST/include/psa/crypto_types.h.

typedef uint16_t psa_key_derivation_step_t

Encoding of the step of a key derivation.

Definition at line 380 of file TARGET_MBED_PSA_SRV/inc/psa/crypto_types.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.