|
Platform Security Architecture — cryptography and keystore interface
Working draft
|
Classes | |
| struct | psa_generate_key_extra_rsa |
Functions | |
| psa_status_t | psa_generate_random (uint8_t *output, size_t output_size) |
| Generate random bytes. More... | |
| psa_status_t | psa_generate_key (psa_key_slot_t key, psa_key_type_t type, size_t bits, const void *extra, size_t extra_size) |
| Generate a key or key pair. More... | |
| psa_status_t psa_generate_key | ( | psa_key_slot_t | key, |
| psa_key_type_t | type, | ||
| size_t | bits, | ||
| const void * | extra, | ||
| size_t | extra_size | ||
| ) |
Generate a key or key pair.
| key | Slot where the key will be stored. This must be a valid slot for a key of the chosen type. It must be unoccupied. | |
| type | Key type (a PSA_KEY_TYPE_XXX value). | |
| bits | Key size in bits. | |
| [in] | extra | Extra parameters for key generation. The interpretation of this parameter depends on type. All types support NULL to use default parameters. Implementation that support the generation of vendor-specific key types that allow extra parameters shall document the format of these extra parameters and the default values. For standard parameters, the meaning of extra is as follows:
|
| extra_size | Size of the buffer that extra points to, in bytes. Note that if extra is NULL then extra_size must be zero. |
| psa_status_t psa_generate_random | ( | uint8_t * | output, |
| size_t | output_size | ||
| ) |
Generate random bytes.
| [out] | output | Output buffer for the generated data. |
| output_size | Number of bytes to generate and output. |
1.8.13