psa_cipher_operation_s struct
The type of the state data structure for multipart cipher operations. Before calling any function on a cipher operation object, the application must initialize it by any of the following means: - Set the structure to all-bits-zero, for example: \code psa_cipher_operation_t operation; memset(&operation, 0, sizeof(operation)); \endcode - Initialize the structure to logical zero values, for example: \code psa_cipher_operation_t operation = {0}; \endcode - Initialize the structure to the initializer #PSA_CIPHER_OPERATION_INIT, for example: \code psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; \endcode - Assign the result of the function psa_cipher_operation_init() to the structure, for example: \code psa_cipher_operation_t operation; operation = psa_cipher_operation_init(); \endcode This is an implementation-defined \c struct. Applications should not make any assumptions about the content of this structure except as directed by the documentation of a specific implementation.
Fields
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_crypto_driver_wrappers.h ID value zero means the context is not valid or not assigned to any driver (i.e. none of the driver contexts are active).