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

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

#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

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.