Loading...
Searching...
No Matches
psa_cryptocell_310_hashes_common.h File Reference

Common hash functions used by all PSA Crypto wrappers for the CryptoCell 310 hash APIs. More...

Detailed Description

Common hash functions used by all PSA Crypto wrappers for the CryptoCell 310 hash APIs.

Author
Lena Boeckmann lena..nosp@m.boec.nosp@m.kmann.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file psa_cryptocell_310_hashes_common.h.

#include "psa/crypto.h"
#include "crys_hash.h"
+ Include dependency graph for 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.
 

Function Documentation

◆ cryptocell_310_common_hash_finish()

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.

Parameters
ctxDriver specific hash context of type CRYS_HASHUserContext_t
hashOutput buffer to write the computated hash
hash_sizeSize of hash
hash_lengthPointer where the actual length of the hash will be stored
Returns
psa_status_t

◆ cryptocell_310_common_hash_setup()

psa_status_t cryptocell_310_common_hash_setup ( CRYS_HASHUserContext_t *  ctx,
CRYS_HASH_OperationMode_t  mode 
)

Common hash setup function.

Parameters
ctxDriver specific hash context of type CRYS_HASHUserContext_t
modeHash mode of type CRYS_HASH_OperationMode_t
Returns
psa_status_t

◆ cryptocell_310_common_hash_update()

psa_status_t cryptocell_310_common_hash_update ( CRYS_HASHUserContext_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Common hash update function.

Parameters
ctxDriver specific hash context of type CRYS_HASHUserContext_t
inputInput that is going to be hashed
input_lengthLength of input
Returns
psa_status_t