28#ifndef OCRYPTO_ASCON_HASH_H
29#define OCRYPTO_ASCON_HASH_H
43#define ocrypto_ascon_hash256_BYTES (32)
51} ocrypto_ascon_hash_ctx;
71 ocrypto_ascon_hash_ctx *ctx);
81 ocrypto_ascon_hash_ctx *ctx);
94 ocrypto_ascon_hash_ctx *ctx,
95 const uint8_t *z,
size_t z_len);
112 ocrypto_ascon_hash_ctx *ctx,
113 const uint8_t *in,
size_t in_len);
132 ocrypto_ascon_hash_ctx *ctx,
153 ocrypto_ascon_hash_ctx *ctx,
154 uint8_t *h,
size_t h_len);
171 ocrypto_ascon_hash_ctx *ctx,
172 uint8_t *h,
size_t h_len);
186 const uint8_t *in,
size_t in_len);
199 uint8_t *h,
size_t h_len,
200 const uint8_t *in,
size_t in_len);
216 uint8_t *h,
size_t h_len,
217 const uint8_t *z,
size_t z_len,
218 const uint8_t *in,
size_t in_len);
void ocrypto_ascon_xof128_final(ocrypto_ascon_hash_ctx *ctx, uint8_t *h, size_t h_len)
#define ocrypto_ascon_hash256_BYTES
Definition ocrypto_ascon_hash.h:43
void ocrypto_ascon_hash256(uint8_t h[(32)], const uint8_t *in, size_t in_len)
void ocrypto_ascon_cxof128_init(ocrypto_ascon_hash_ctx *ctx, const uint8_t *z, size_t z_len)
void ocrypto_ascon_xof128_ext(ocrypto_ascon_hash_ctx *ctx, uint8_t *h, size_t h_len)
void ocrypto_ascon_xof128_init(ocrypto_ascon_hash_ctx *ctx)
void ocrypto_ascon_xof128(uint8_t *h, size_t h_len, const uint8_t *in, size_t in_len)
void ocrypto_ascon_hash256_init(ocrypto_ascon_hash_ctx *ctx)
void ocrypto_ascon_hash256_update(ocrypto_ascon_hash_ctx *ctx, 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)
void ocrypto_ascon_hash256_final(ocrypto_ascon_hash_ctx *ctx, uint8_t h[(32)])