nrfxlib API 3.3.99
Loading...
Searching...
No Matches

Ascon-Hash is a cryptographic hash function designed for small devices. More...

Files

file  ocrypto_ascon_hash.h
 Ascon-Hash is a cryptographic hash function designed for small devices.
 

Macros

#define ocrypto_ascon_hash256_BYTES   (32)
 

Functions

void ocrypto_ascon_hash256 (uint8_t h[(32)], const uint8_t *in, size_t in_len)
 
void ocrypto_ascon_xof128 (uint8_t *h, size_t h_len, const uint8_t *in, size_t in_len)
 
void ocrypto_ascon_cxof128 (uint8_t *h, size_t h_len, const uint8_t *z, size_t z_len, const uint8_t *in, size_t in_len)
 

Incremental Ascon-Hash generator.

This group of functions can be used to incrementally compute the Ascon-Hash or Ascon-XOF hash for a given message.

void ocrypto_ascon_hash256_init (ocrypto_ascon_hash_ctx *ctx)
 
void ocrypto_ascon_xof128_init (ocrypto_ascon_hash_ctx *ctx)
 
void ocrypto_ascon_cxof128_init (ocrypto_ascon_hash_ctx *ctx, const uint8_t *z, size_t z_len)
 
void ocrypto_ascon_hash256_update (ocrypto_ascon_hash_ctx *ctx, const uint8_t *in, size_t in_len)
 
void ocrypto_ascon_hash256_final (ocrypto_ascon_hash_ctx *ctx, uint8_t h[(32)])
 
void ocrypto_ascon_xof128_final (ocrypto_ascon_hash_ctx *ctx, uint8_t *h, size_t h_len)
 
void ocrypto_ascon_xof128_ext (ocrypto_ascon_hash_ctx *ctx, uint8_t *h, size_t h_len)
 

Detailed Description

Ascon-Hash is a cryptographic hash function designed for small devices.

A fixed- or variable-sized (XOF, CXOF) message digest is computed from variable length input data. The function is practically impossible to revert, and small changes in the input message lead to major changes in the message digest.

See also
NIST SP 800-232