Common hash functions used by all PSA Crypto wrappers for the CryptoCell 310 hash APIs. More...
Common hash functions used by all PSA Crypto wrappers for the CryptoCell 310 hash APIs.
Definition in file psa_cryptocell_310_hashes_common.h.
Go to the source code of this file.
psa_status_t | cryptocell_310_common_hash_setup (CRYS_HASHUserContext_t *ctx, CRYS_HASH_OperationMode_t mode) |
Common hash setup function. | |
psa_status_t | cryptocell_310_common_hash_update (CRYS_HASHUserContext_t *ctx, const uint8_t *input, size_t input_length) |
Common hash update function. | |
psa_status_t | cryptocell_310_common_hash_finish (CRYS_HASHUserContext_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length) |
Common hash finish function. | |
psa_status_t cryptocell_310_common_hash_finish | ( | CRYS_HASHUserContext_t * | ctx, |
uint8_t * | hash, | ||
size_t | hash_size, | ||
size_t * | hash_length | ||
) |
Common hash finish function.
ctx | Driver specific hash context of type CRYS_HASHUserContext_t |
hash | Output buffer to write the computated hash |
hash_size | Size of hash |
hash_length | Pointer where the actual length of the hash will be stored |
psa_status_t cryptocell_310_common_hash_setup | ( | CRYS_HASHUserContext_t * | ctx, |
CRYS_HASH_OperationMode_t | mode | ||
) |
Common hash setup function.
ctx | Driver specific hash context of type CRYS_HASHUserContext_t |
mode | Hash mode of type CRYS_HASH_OperationMode_t |
psa_status_t cryptocell_310_common_hash_update | ( | CRYS_HASHUserContext_t * | ctx, |
const uint8_t * | input, | ||
size_t | input_length | ||
) |
Common hash update function.
ctx | Driver specific hash context of type CRYS_HASHUserContext_t |
input | Input that is going to be hashed |
input_length | Length of input |