nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_shake.h File Reference
#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

The SHAKE family is a variable output variant of the SHA-3 hash functions.

A variable length 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.