nrfxlib API 0.1.0
|
psa_status_t cc3xx_hash_compute | ( | psa_algorithm_t | alg, |
const uint8_t * | input, | ||
size_t | input_length, | ||
uint8_t * | hash, | ||
size_t | hash_size, | ||
size_t * | hash_length | ||
) |
Performs hashing of the input in a single call.
[in] | alg | Algorithm to be used |
[in] | input | Buffer containing the input |
[in] | input_length | Size in bytes of the input data |
[out] | hash | Buffer containing the output hash |
[in] | hash_size | Size in bytes of the hash buffer |
[out] | hash_length | Size in bytes |
PSA_SUCCESS | on success. Error code from psa_status_t on failure |