Type Alias esp_idf_sys::psa_hash_operation_t

source ·
pub type psa_hash_operation_t = psa_hash_operation_s;
Expand description

The type of the state data structure for multipart hash operations.

Before calling any function on a hash operation object, the application must initialize it by any of the following means:

  • Set the structure to all-bits-zero, for example: \code psa_hash_operation_t operation; memset(&operation, 0, sizeof(operation)); \endcode
  • Initialize the structure to logical zero values, for example: \code psa_hash_operation_t operation = {0}; \endcode
  • Initialize the structure to the initializer #PSA_HASH_OPERATION_INIT, for example: \code psa_hash_operation_t operation = PSA_HASH_OPERATION_INIT; \endcode
  • Assign the result of the function psa_hash_operation_init() to the structure, for example: \code psa_hash_operation_t operation; operation = psa_hash_operation_init(); \endcode

This is an implementation-defined \c struct. Applications should not make any assumptions about the content of this structure. Implementation details can change in future versions without notice.

Aliased Type§

struct psa_hash_operation_t {
    pub private_id: u32,
    pub private_ctx: psa_driver_hash_context_t,
}

Fields§

§private_id: u32

Unique ID indicating which driver got assigned to do the operation. Since driver contexts are driver-specific, swapping drivers halfway through the operation is not supported. ID values are auto-generated in psa_driver_wrappers.h. ID value zero means the context is not valid or not assigned to any driver (i.e. the driver context is not active, in use).

§private_ctx: psa_driver_hash_context_t