50 #include "crypto_types.h"
60 (srtp_auth_pointer_t *ap,
int key_len,
int out_len);
63 (
void *state,
const uint8_t *key,
int key_len);
68 (
void *state,
const uint8_t *buffer,
int octets_to_auth,
69 int tag_len, uint8_t *tag);
72 (
void *state,
const uint8_t *buffer,
int octets_to_auth);
77 #define srtp_auth_type_alloc(at, a, klen, outlen) \
78 ((at)->alloc((a), (klen), (outlen)))
80 #define srtp_auth_init(a, key) \
81 (((a)->type)->init((a)->state, (key), ((a)->key_len)))
83 #define srtp_auth_compute(a, buf, len, res) \
84 (((a)->type)->compute((a)->state, (buf), (len), (a)->out_len, (res)))
86 #define srtp_auth_update(a, buf, len) \
87 (((a)->type)->update((a)->state, (buf), (len)))
89 #define srtp_auth_start(a)(((a)->type)->start((a)->state))
91 #define srtp_auth_dealloc(c) (((c)->type)->dealloc(c))
94 int srtp_auth_get_key_length(
const struct srtp_auth_t *a);
96 int srtp_auth_get_tag_length(
const struct srtp_auth_t *a);
98 int srtp_auth_get_prefix_length(
const struct srtp_auth_t *a);
108 int key_length_octets;
110 int data_length_octets;
112 int tag_length_octets;
119 srtp_auth_alloc_func alloc;
120 srtp_auth_dealloc_func dealloc;
121 srtp_auth_init_func init;
122 srtp_auth_compute_func compute;
123 srtp_auth_update_func update;
124 srtp_auth_start_func start;
125 const char *description;
uint32_t srtp_auth_type_id_t
An srtp_auth_type_id_t is an identifier for a particular authentication function. ...
Definition: srtp.h:151
srtp_err_status_t
srtp_err_status_t defines error codes.
Definition: srtp.h:161