Function esp_idf_svc::hal::sys::psa_key_derivation_get_capacity
source ยท pub unsafe extern "C" fn psa_key_derivation_get_capacity(
operation: *const psa_key_derivation_s,
capacity: *mut usize,
) -> i32
Expand description
Retrieve the current capacity of a key derivation operation.
The capacity of a key derivation is the maximum number of bytes that it can return. When you get N bytes of output from a key derivation operation, this reduces its capacity by N.
\param[in] operation The operation to query. \param[out] capacity On success, the capacity of the operation.
\retval #PSA_SUCCESS \emptydescription \retval #PSA_ERROR_COMMUNICATION_FAILURE \emptydescription \retval #PSA_ERROR_HARDWARE_FAILURE \emptydescription \retval #PSA_ERROR_CORRUPTION_DETECTED \emptydescription \retval #PSA_ERROR_BAD_STATE The operation state is not valid (it must be active), or the library has not been previously initialized by psa_crypto_init(). It is implementation-dependent whether a failure to initialize results in this error code.