22 #ifndef transport_root_key_h
23 #define transport_root_key_h
26 #include "stream_ctx.h"
128 wickr_stream_direction direction);
A data structure representing the stream encoding / decoding key material A stream key holds informat...
Definition: stream_key.h:56
wickr_buffer_t * secret
Definition: transport_root_key.h:53
wickr_transport_root_key_t * wickr_transport_root_key_copy(const wickr_transport_root_key_t *root_key)
wickr_stream_key_t * wickr_transport_root_key_to_stream_key(const wickr_transport_root_key_t *root_key, const wickr_crypto_engine_t *engine, const wickr_buffer_t *salt, const wickr_buffer_t *stream_id, wickr_stream_direction direction)
Interface to a set of cryptographic operations used throughout the library. Currently the default imp...
Definition: crypto_engine.h:53
wickr_cipher_t cipher
Definition: transport_root_key.h:54
void wickr_transport_root_key_destroy(wickr_transport_root_key_t **root_key)
uint32_t packets_per_evo_send
Definition: transport_root_key.h:55
wickr_transport_root_key_t * wickr_transport_root_key_create(wickr_buffer_t *secret, wickr_cipher_t cipher, uint32_t packets_per_evo_send, uint32_t packets_per_evo_recv)
uint32_t packets_per_evo_recv
Definition: transport_root_key.h:56
Represents an array of bytes and the length of the allocation associated with those bytes.
Definition: buffer.h:51
wickr_transport_root_key_t * wickr_transport_root_key_create_random(const wickr_crypto_engine_t *engine, wickr_cipher_t cipher, uint32_t packets_per_evo_send, uint32_t packets_per_evo_recv)
Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the ...
Definition: cipher.h:56
A root key for the wickr_transport_ctx that is used to communicate the master secret for the transpor...
Definition: transport_root_key.h:52