nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_shake.h File Reference

SHAKE algorithms, variants of SHA3 with variable output lengths, with 128 and 256 bit security. More...

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

Go to the source code of this file.

Functions

void ocrypto_shake128 (uint8_t *r, size_t r_len, const uint8_t *in, size_t in_len)
 
void ocrypto_shake256 (uint8_t *r, size_t r_len, const uint8_t *in, size_t in_len)
 
Incremental SHAKE generator

This group of functions can be used to incrementally compute the SHAKE hash for a given message.

void ocrypto_shake_init (ocrypto_shake_ctx *ctx)
 
void ocrypto_shake128_update (ocrypto_shake_ctx *ctx, const uint8_t *in, size_t in_len)
 
void ocrypto_shake256_update (ocrypto_shake_ctx *ctx, const uint8_t *in, size_t in_len)
 
void ocrypto_shake128_final (ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
 
void ocrypto_shake256_final (ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
 
void ocrypto_shake128_ext (ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
 
void ocrypto_shake256_ext (ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
 

Detailed Description

SHAKE algorithms, variants of SHA3 with variable output lengths, with 128 and 256 bit security.