values.h File Reference

Key derivation value definitions for the PSA Crypto API. More...

Detailed Description

Key derivation value definitions for the PSA Crypto API.

Author
Armin Wolf wolf..nosp@m.armi.nosp@m.n@mai.nosp@m.lbox.nosp@m..tu-d.nosp@m.resd.nosp@m.en.de
Lena Boeckmann lena..nosp@m.boec.nosp@m.kmann.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file values.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define PSA_KEY_DERIVATION_INPUT_CONTEXT   /* implementation-defined value */
 A context for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_COST   /* implementation-defined value */
 A cost parameter for password hashing or key stretching. More...
 
#define PSA_KEY_DERIVATION_INPUT_INFO   /* implementation-defined value */
 An information string for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_LABEL   /* implementation-defined value */
 A label for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_PASSWORD   /* implementation-defined value */
 A low-entropy secret input for password hashing or key stretching. More...
 
#define PSA_KEY_DERIVATION_INPUT_SALT   /* implementation-defined value */
 A salt for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SECRET   /* implementation-defined value */
 A high-entropy secret input for key derivation. More...
 
#define PSA_KEY_DERIVATION_INPUT_SEED   /* implementation-defined value */
 A seed for key derivation. More...
 

Macro Definition Documentation

◆ PSA_KEY_DERIVATION_INPUT_CONTEXT

#define PSA_KEY_DERIVATION_INPUT_CONTEXT   /* implementation-defined value */

A context for key derivation.

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

Definition at line 34 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_COST

#define PSA_KEY_DERIVATION_INPUT_COST   /* implementation-defined value */

A cost parameter for password hashing or key stretching.

This must be a direct input, passed to psa_key_derivation_input_integer().

Definition at line 41 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_INFO

#define PSA_KEY_DERIVATION_INPUT_INFO   /* implementation-defined value */

An information string for key derivation.

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

Definition at line 49 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_LABEL

#define PSA_KEY_DERIVATION_INPUT_LABEL   /* implementation-defined value */

A label for key derivation.

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

Definition at line 57 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_PASSWORD

#define PSA_KEY_DERIVATION_INPUT_PASSWORD   /* implementation-defined value */

A low-entropy secret input for password hashing or key stretching.

This is usually a key of type PSA_KEY_TYPE_PASSWORD passed to psa_key_derivation_input_key() or a direct input passed to psa_key_derivation_input_bytes() that is a password or passphrase. It can also be high-entropy secret, for example, a key of type PSA_KEY_TYPE_DERIVE, or the shared secret resulting from a key agreement.

If the secret is a direct input, the derivation operation cannot be used to derive keys: the operation will not allow a call to psa_key_derivation_output_key().

Definition at line 71 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_SALT

#define PSA_KEY_DERIVATION_INPUT_SALT   /* implementation-defined value */

A salt for key derivation.

This is typically a direct input. It can also be a key of type PSA_KEY_TYPE_RAW_DATA or PSA_KEY_TYPE_PEPPER.

Definition at line 79 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_SECRET

#define PSA_KEY_DERIVATION_INPUT_SECRET   /* implementation-defined value */

A high-entropy secret input for key derivation.

This is typically 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 psa_key_derivation_input_bytes(). In this case, the derivation operation cannot be used to derive keys: the operation will not allow a call to psa_key_derivation_output_key().

Definition at line 92 of file values.h.

◆ PSA_KEY_DERIVATION_INPUT_SEED

#define PSA_KEY_DERIVATION_INPUT_SEED   /* implementation-defined value */

A seed for key derivation.

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

Definition at line 100 of file values.h.