Loading...
Searching...
No Matches
PSA Wrapper Functions: Hashes

Detailed Description

Files

file  psa_hashes.h
 Function declarations for low level wrapper functions for hash operations.
 

Functions

psa_status_t psa_hashes_md5_setup (psa_hashes_md5_ctx_t *ctx)
 Low level wrapper function to call a driver for an MD5 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_md5_update (psa_hashes_md5_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an MD5 hash update See psa_hash_update()
 
psa_status_t psa_hashes_md5_finish (psa_hashes_md5_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an MD5 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha1_setup (psa_hashes_sha1_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA1 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha1_update (psa_hashes_sha1_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA1 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha1_finish (psa_hashes_sha1_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA1 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha224_setup (psa_hashes_sha224_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA224 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha224_update (psa_hashes_sha224_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA224 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha224_finish (psa_hashes_sha224_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA224 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha256_setup (psa_hashes_sha256_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA256 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha256_update (psa_hashes_sha256_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA256 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha256_finish (psa_hashes_sha256_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA256 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha384_setup (psa_hashes_sha384_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA384 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha384_update (psa_hashes_sha384_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA384 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha384_finish (psa_hashes_sha384_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA384 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha512_setup (psa_hashes_sha512_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA512 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha512_update (psa_hashes_sha512_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA512 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha512_finish (psa_hashes_sha512_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA512 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha512_224_setup (psa_hashes_sha512_224_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA512/224 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha512_224_update (psa_hashes_sha512_224_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA512/224 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha512_224_finish (psa_hashes_sha512_224_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA512/224 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha512_256_setup (psa_hashes_sha512_256_ctx_t *ctx)
 Low level wrapper function to call a driver for an SHA512/256 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha512_256_update (psa_hashes_sha512_256_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for an SHA512/256 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha512_256_finish (psa_hashes_sha512_256_ctx_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
 Low level wrapper function to call a driver for an SHA512/256 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha3_256_update (psa_hashes_sha3_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for a general SHA3 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha3_256_setup (psa_hashes_sha3_ctx_t *ctx)
 Low level wrapper function to call a driver for a SHA3-256 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha3_256_finish (psa_hashes_sha3_ctx_t *ctx, uint8_t *hash)
 Low level wrapper function to call a driver for a SHA3-256 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha3_384_update (psa_hashes_sha3_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for a general SHA3 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha3_384_setup (psa_hashes_sha3_ctx_t *ctx)
 Low level wrapper function to call a driver for a SHA3-384 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha3_384_finish (psa_hashes_sha3_ctx_t *ctx, uint8_t *hash)
 Low level wrapper function to call a driver for a SHA3-384 hash finish See psa_hash_finish()
 
psa_status_t psa_hashes_sha3_512_update (psa_hashes_sha3_ctx_t *ctx, const uint8_t *input, size_t input_length)
 Low level wrapper function to call a driver for a general SHA3 hash update See psa_hash_update()
 
psa_status_t psa_hashes_sha3_512_setup (psa_hashes_sha3_ctx_t *ctx)
 Low level wrapper function to call a driver for a SHA3-512 hash setup See psa_hash_setup()
 
psa_status_t psa_hashes_sha3_512_finish (psa_hashes_sha3_ctx_t *ctx, uint8_t *hash)
 Low level wrapper function to call a driver for a SHA3-512 hash finish See psa_hash_finish()
 

Function Documentation

◆ psa_hashes_md5_finish()

psa_status_t psa_hashes_md5_finish ( psa_hashes_md5_ctx_t *  ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an MD5 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_md5_setup()

psa_status_t psa_hashes_md5_setup ( psa_hashes_md5_ctx_t *  ctx)

Low level wrapper function to call a driver for an MD5 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_md5_update()

psa_status_t psa_hashes_md5_update ( psa_hashes_md5_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an MD5 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha1_finish()

psa_status_t psa_hashes_sha1_finish ( psa_hashes_sha1_ctx_t ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA1 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha1_setup()

psa_status_t psa_hashes_sha1_setup ( psa_hashes_sha1_ctx_t ctx)

Low level wrapper function to call a driver for an SHA1 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha1_update()

psa_status_t psa_hashes_sha1_update ( psa_hashes_sha1_ctx_t ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA1 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha224_finish()

psa_status_t psa_hashes_sha224_finish ( psa_hashes_sha224_ctx_t ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA224 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha224_setup()

psa_status_t psa_hashes_sha224_setup ( psa_hashes_sha224_ctx_t ctx)

Low level wrapper function to call a driver for an SHA224 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha224_update()

psa_status_t psa_hashes_sha224_update ( psa_hashes_sha224_ctx_t ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA224 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha256_finish()

psa_status_t psa_hashes_sha256_finish ( psa_hashes_sha256_ctx_t ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA256 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha256_setup()

psa_status_t psa_hashes_sha256_setup ( psa_hashes_sha256_ctx_t ctx)

Low level wrapper function to call a driver for an SHA256 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha256_update()

psa_status_t psa_hashes_sha256_update ( psa_hashes_sha256_ctx_t ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA256 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha384_finish()

psa_status_t psa_hashes_sha384_finish ( psa_hashes_sha384_ctx_t *  ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA384 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha384_setup()

psa_status_t psa_hashes_sha384_setup ( psa_hashes_sha384_ctx_t *  ctx)

Low level wrapper function to call a driver for an SHA384 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha384_update()

psa_status_t psa_hashes_sha384_update ( psa_hashes_sha384_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA384 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha3_256_finish()

psa_status_t psa_hashes_sha3_256_finish ( psa_hashes_sha3_ctx_t *  ctx,
uint8_t *  hash 
)

Low level wrapper function to call a driver for a SHA3-256 hash finish See psa_hash_finish()

Parameters
ctx
hash
Returns
psa_status_t

◆ psa_hashes_sha3_256_setup()

psa_status_t psa_hashes_sha3_256_setup ( psa_hashes_sha3_ctx_t *  ctx)

Low level wrapper function to call a driver for a SHA3-256 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha3_256_update()

psa_status_t psa_hashes_sha3_256_update ( psa_hashes_sha3_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for a general SHA3 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha3_384_finish()

psa_status_t psa_hashes_sha3_384_finish ( psa_hashes_sha3_ctx_t *  ctx,
uint8_t *  hash 
)

Low level wrapper function to call a driver for a SHA3-384 hash finish See psa_hash_finish()

Parameters
ctx
hash
Returns
psa_status_t

◆ psa_hashes_sha3_384_setup()

psa_status_t psa_hashes_sha3_384_setup ( psa_hashes_sha3_ctx_t *  ctx)

Low level wrapper function to call a driver for a SHA3-384 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha3_384_update()

psa_status_t psa_hashes_sha3_384_update ( psa_hashes_sha3_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for a general SHA3 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha3_512_finish()

psa_status_t psa_hashes_sha3_512_finish ( psa_hashes_sha3_ctx_t *  ctx,
uint8_t *  hash 
)

Low level wrapper function to call a driver for a SHA3-512 hash finish See psa_hash_finish()

Parameters
ctx
hash
Returns
psa_status_t

◆ psa_hashes_sha3_512_setup()

psa_status_t psa_hashes_sha3_512_setup ( psa_hashes_sha3_ctx_t *  ctx)

Low level wrapper function to call a driver for a SHA3-512 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha3_512_update()

psa_status_t psa_hashes_sha3_512_update ( psa_hashes_sha3_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for a general SHA3 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha512_224_finish()

psa_status_t psa_hashes_sha512_224_finish ( psa_hashes_sha512_224_ctx_t *  ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA512/224 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha512_224_setup()

psa_status_t psa_hashes_sha512_224_setup ( psa_hashes_sha512_224_ctx_t *  ctx)

Low level wrapper function to call a driver for an SHA512/224 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha512_224_update()

psa_status_t psa_hashes_sha512_224_update ( psa_hashes_sha512_224_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA512/224 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha512_256_finish()

psa_status_t psa_hashes_sha512_256_finish ( psa_hashes_sha512_256_ctx_t *  ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA512/256 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha512_256_setup()

psa_status_t psa_hashes_sha512_256_setup ( psa_hashes_sha512_256_ctx_t *  ctx)

Low level wrapper function to call a driver for an SHA512/256 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha512_256_update()

psa_status_t psa_hashes_sha512_256_update ( psa_hashes_sha512_256_ctx_t *  ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA512/256 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t

◆ psa_hashes_sha512_finish()

psa_status_t psa_hashes_sha512_finish ( psa_hashes_sha512_ctx_t ctx,
uint8_t *  hash,
size_t  hash_size,
size_t *  hash_length 
)

Low level wrapper function to call a driver for an SHA512 hash finish See psa_hash_finish()

Parameters
ctx
hash
hash_size
hash_length
Returns
psa_status_t

◆ psa_hashes_sha512_setup()

psa_status_t psa_hashes_sha512_setup ( psa_hashes_sha512_ctx_t ctx)

Low level wrapper function to call a driver for an SHA512 hash setup See psa_hash_setup()

Parameters
ctx
Returns
psa_status_t

◆ psa_hashes_sha512_update()

psa_status_t psa_hashes_sha512_update ( psa_hashes_sha512_ctx_t ctx,
const uint8_t *  input,
size_t  input_length 
)

Low level wrapper function to call a driver for an SHA512 hash update See psa_hash_update()

Parameters
ctx
input
input_length
Returns
psa_status_t