UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
Functions
Shake

Packet SHAKE Hash Routines. More...

Functions

void Util_shake_init (util_shake_ctx_t *c, uint8_t output_length)
 
void Util_shake_update (util_shake_ctx_t *c, const uint8_t *data, uint32_t data_length)
 
void Util_shake_out (util_shake_ctx_t *c, uint8_t *out)
 

Detailed Description

Packet SHAKE Hash Routines.

Copyright (c) 2015 Markku-Juhani O. Saarinen The MIT License (MIT)

Function Documentation

void Util_shake_init ( util_shake_ctx_t c,
uint8_t  output_length 
)

Initialises a SHA3 context object

Parameters
cPointer to pre-allocated SHA3 context object
output_lengthLength in bytes of intended Hash Function output

Definition at line 116 of file shake.c.

void Util_shake_update ( util_shake_ctx_t c,
const uint8_t *  data,
uint32_t  data_length 
)

Adds input data to a SHA3 context

Parameters
cPointer to allocated & initialised SHA3 context object
dataInput data buffer
data_lengthLength of the input data buffer

Definition at line 129 of file shake.c.

void Util_shake_out ( util_shake_ctx_t c,
uint8_t *  out 
)

Produces output of SHA3 context.

Note: This should only be run once for an initialised context object.

Parameters
cPointer to allocated & initialised SHA3 context object
outOutput data buffer

Definition at line 147 of file shake.c.