blob: 9ef15edfcfc82510f407e3317bfdb4d6c6d9fce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef SENDER_KEY
#define SENDER_KEY
#include <stdint.h>
#include <stddef.h>
#include "signal_protocol_types.h"
#ifdef __cplusplus
extern "C" {
#endif
int sender_message_key_create(sender_message_key **key,
uint32_t iteration, signal_buffer *seed,
signal_context *global_context);
uint32_t sender_message_key_get_iteration(sender_message_key *key);
signal_buffer *sender_message_key_get_iv(sender_message_key *key);
signal_buffer *sender_message_key_get_cipher_key(sender_message_key *key);
signal_buffer *sender_message_key_get_seed(sender_message_key *key);
void sender_message_key_destroy(signal_type_base *type);
int sender_chain_key_create(sender_chain_key **key,
uint32_t iteration, signal_buffer *chain_key,
signal_context *global_context);
uint32_t sender_chain_key_get_iteration(sender_chain_key *key);
int sender_chain_key_create_message_key(sender_chain_key *key, sender_message_key **message_key);
int sender_chain_key_create_next(sender_chain_key *key, sender_chain_key **next_key);
signal_buffer *sender_chain_key_get_seed(sender_chain_key *key);
void sender_chain_key_destroy(signal_type_base *type);
#ifdef __cplusplus
}
#endif
#endif /* SENDER_KEY */
|