Packet SHAKE Hash Routines.
More...
Packet SHAKE Hash Routines.
Copyright (c) 2015 Markku-Juhani O. Saarinen The MIT License (MIT)
Initialises a SHA3 context object
- Parameters
-
c | Pointer to pre-allocated SHA3 context object |
output_length | Length 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
-
c | Pointer to allocated & initialised SHA3 context object |
data | Input data buffer |
data_length | Length of the input data buffer |
Definition at line 129 of file shake.c.
Produces output of SHA3 context.
Note: This should only be run once for an initialised context object.
- Parameters
-
c | Pointer to allocated & initialised SHA3 context object |
out | Output data buffer |
Definition at line 147 of file shake.c.