50 #include "crypto_types.h" 65 srtp_direction_encrypt,
66 srtp_direction_decrypt,
68 } srtp_cipher_direction_t;
80 (srtp_cipher_pointer_t *cp,
int key_len,
int tag_len);
86 (
void *state,
const uint8_t *key);
89 typedef srtp_err_status_t (*srtp_cipher_dealloc_func_t)(srtp_cipher_pointer_t cp);
95 (
void *state,
const uint8_t *aad, uint32_t aad_len);
100 (
void *state, uint8_t *buffer,
unsigned int *octets_to_encrypt);
104 (
void *state, uint8_t *buffer,
unsigned int *octets_to_decrypt);
110 (
void *state, uint8_t *iv, srtp_cipher_direction_t direction);
117 (
void *state, uint8_t *tag, uint32_t *len);
128 int key_length_octets;
131 int plaintext_length_octets;
132 const uint8_t *plaintext;
133 int ciphertext_length_octets;
134 const uint8_t *ciphertext;
135 int aad_length_octets;
137 int tag_length_octets;
143 srtp_cipher_alloc_func_t alloc;
144 srtp_cipher_dealloc_func_t dealloc;
145 srtp_cipher_init_func_t init;
146 srtp_cipher_set_aad_func_t set_aad;
147 srtp_cipher_encrypt_func_t encrypt;
148 srtp_cipher_encrypt_func_t decrypt;
149 srtp_cipher_set_iv_func_t set_iv;
150 srtp_cipher_get_tag_func_t get_tag;
151 const char *description;
197 uint64_t srtp_cipher_bits_per_second(
srtp_cipher_t *c,
int octets_in_buffer,
int num_trials);
uint32_t srtp_cipher_type_id_t
A srtp_cipher_type_id_t is an identifier for a particular cipher type.
Definition: srtp.h:137
srtp_err_status_t
srtp_err_status_t defines error codes.
Definition: srtp.h:161