wickr-crypto-c
|
A deterministic random IV generator using a 64 byte secure random seed and HMAC-SHA512. More...
#include <stream_iv.h>
Data Fields | |
wickr_crypto_engine_t | engine |
wickr_buffer_t * | seed |
wickr_cipher_t | cipher |
uint64_t | gen_count |
A deterministic random IV generator using a 64 byte secure random seed and HMAC-SHA512.
On each call to generate, the IV generator will be called with HMAC(gen_count, seed) The gen count value is incremented by one each time the generate method is called
wickr_stream_iv::cipher |
the cipher that this engine is generating IV's for, this will determine the output length of the generated IV values
wickr_stream_iv::engine |
crypto engine engine used to supply secure random bytes and HMAC functions
wickr_stream_iv::gen_count |
an internal count value used as the HMAC value to deterministically generate unique IVs
wickr_stream_iv::seed |
a 64 byte secure random seed generated at creation of the stream_iv generator