wickr-crypto-c
Data Fields
wickr_stream_iv Struct Reference

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_tseed
 
wickr_cipher_t cipher
 
uint64_t gen_count
 

Detailed Description

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

Field Documentation

◆ cipher

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

◆ engine

wickr_stream_iv::engine

crypto engine engine used to supply secure random bytes and HMAC functions

◆ gen_count

wickr_stream_iv::gen_count

an internal count value used as the HMAC value to deterministically generate unique IVs

◆ seed

wickr_stream_iv::seed

a 64 byte secure random seed generated at creation of the stream_iv generator


The documentation for this struct was generated from the following file: