Type Alias esp_idf_svc::sys::psa_key_production_parameters_t

source ·
pub type psa_key_production_parameters_t = psa_key_production_parameters_s;
Expand description

\brief Custom parameters for key generation or key derivation.

This is a structure type with at least the following fields:

  • \c flags: an unsigned integer type. 0 for the default production parameters.
  • \c data: a flexible array of bytes.

The interpretation of this structure depend on the type of the created key.

  • #PSA_KEY_TYPE_RSA_KEY_PAIR:
    • \c flags: must be 0.
    • \c data: the public exponent, in little-endian order. This must be an odd integer and must not be 1. Implementations must support 65537, should support 3 and may support other values. When not using a driver, Mbed TLS supports values up to \c INT_MAX. If this is empty or if the custom production parameters are omitted altogether, the default value 65537 is used.
  • Other key types: reserved for future use. \c flags must be 0.

Aliased Type§

struct psa_key_production_parameters_t {
    pub flags: u32,
    pub data: __IncompleteArrayField<u8>,
}

Fields§

§flags: u32§data: __IncompleteArrayField<u8>