25 #include "crypto_engine.h" 31 #define PACKET_PER_EVO_MIN 64 32 #define PACKET_PER_EVO_DEFAULT 512 33 #define PACKET_PER_EVO_MAX 32768 void wickr_stream_key_destroy(wickr_stream_key_t **stream_key)
wickr_stream_key_t * wickr_stream_key_create_rand(const wickr_crypto_engine_t engine, wickr_cipher_t cipher, uint32_t packets_per_evolution)
wickr_stream_key_t * wickr_stream_key_create_user_data(wickr_cipher_key_t *cipher_key, wickr_buffer_t *evolution_key, uint32_t packets_per_evolution, wickr_buffer_t *user_data)
Represents an array of bytes and the length of the allocation associated with those bytes.
Definition: buffer.h:51
wickr_buffer_t * user_data
Definition: stream_key.h:59
wickr_buffer_t * evolution_key
Definition: stream_key.h:58
wickr_stream_key_t * wickr_stream_key_create(wickr_cipher_key_t *cipher_key, wickr_buffer_t *evolution_key, uint32_t packets_per_evolution)
Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the ...
Definition: cipher.h:56
wickr_buffer_t * wickr_stream_key_serialize(const wickr_stream_key_t *key)
wickr_cipher_key_t * cipher_key
Definition: stream_key.h:57
A data structure representing the stream encoding / decoding key material A stream key holds informat...
Definition: stream_key.h:56
wickr_stream_key_t * wickr_stream_key_copy(const wickr_stream_key_t *stream_key)
wickr_stream_key_t * wickr_stream_key_create_from_buffer(const wickr_buffer_t *buffer)
Interface to a set of cryptographic operations used throughout the library. Currently the default imp...
Definition: crypto_engine.h:53
uint32_t packets_per_evolution
Definition: stream_key.h:60