webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
auth.h File Reference
#include "srtp.h"
#include "crypto_types.h"

Go to the source code of this file.

Classes

struct  srtp_auth_test_case_t
 
struct  srtp_auth_type_t
 
struct  srtp_auth_t
 

Macros

#define srtp_auth_type_alloc(at, a, klen, outlen)   ((at)->alloc((a), (klen), (outlen)))
 
#define srtp_auth_init(a, key)   (((a)->type)->init((a)->state, (key), ((a)->key_len)))
 
#define srtp_auth_compute(a, buf, len, res)   (((a)->type)->compute((a)->state, (buf), (len), (a)->out_len, (res)))
 
#define srtp_auth_update(a, buf, len)   (((a)->type)->update((a)->state, (buf), (len)))
 
#define srtp_auth_start(a)   (((a)->type)->start((a)->state))
 
#define srtp_auth_dealloc(c)   (((c)->type)->dealloc(c))
 

Typedefs

typedef const struct srtp_auth_type_tsrtp_auth_type_pointer
 
typedef struct srtp_auth_tsrtp_auth_pointer_t
 
typedef srtp_err_status_t(* srtp_auth_alloc_func) (srtp_auth_pointer_t *ap, int key_len, int out_len)
 
typedef srtp_err_status_t(* srtp_auth_init_func) (void *state, const uint8_t *key, int key_len)
 
typedef srtp_err_status_t(* srtp_auth_dealloc_func) (srtp_auth_pointer_t ap)
 
typedef srtp_err_status_t(* srtp_auth_compute_func) (void *state, const uint8_t *buffer, int octets_to_auth, int tag_len, uint8_t *tag)
 
typedef srtp_err_status_t(* srtp_auth_update_func) (void *state, const uint8_t *buffer, int octets_to_auth)
 
typedef srtp_err_status_t(* srtp_auth_start_func) (void *state)
 
typedef struct srtp_auth_test_case_t srtp_auth_test_case_t
 
typedef struct srtp_auth_type_t srtp_auth_type_t
 
typedef struct srtp_auth_t srtp_auth_t
 

Functions

int srtp_auth_get_key_length (const struct srtp_auth_t *a)
 
int srtp_auth_get_tag_length (const struct srtp_auth_t *a)
 
int srtp_auth_get_prefix_length (const struct srtp_auth_t *a)
 
srtp_err_status_t srtp_auth_type_self_test (const srtp_auth_type_t *at)
 
srtp_err_status_t srtp_auth_type_test (const srtp_auth_type_t *at, const srtp_auth_test_case_t *test_data)
 
srtp_err_status_t srtp_replace_auth_type (const srtp_auth_type_t *ct, srtp_auth_type_id_t id)
 

Macro Definition Documentation

◆ srtp_auth_compute

#define srtp_auth_compute (   a,
  buf,
  len,
  res 
)    (((a)->type)->compute((a)->state, (buf), (len), (a)->out_len, (res)))

◆ srtp_auth_dealloc

#define srtp_auth_dealloc (   c)    (((c)->type)->dealloc(c))

◆ srtp_auth_init

#define srtp_auth_init (   a,
  key 
)    (((a)->type)->init((a)->state, (key), ((a)->key_len)))

◆ srtp_auth_start

#define srtp_auth_start (   a)    (((a)->type)->start((a)->state))

◆ srtp_auth_type_alloc

#define srtp_auth_type_alloc (   at,
  a,
  klen,
  outlen 
)    ((at)->alloc((a), (klen), (outlen)))

◆ srtp_auth_update

#define srtp_auth_update (   a,
  buf,
  len 
)    (((a)->type)->update((a)->state, (buf), (len)))

Typedef Documentation

◆ srtp_auth_alloc_func

typedef srtp_err_status_t(* srtp_auth_alloc_func) (srtp_auth_pointer_t *ap, int key_len, int out_len)

◆ srtp_auth_compute_func

typedef srtp_err_status_t(* srtp_auth_compute_func) (void *state, const uint8_t *buffer, int octets_to_auth, int tag_len, uint8_t *tag)

◆ srtp_auth_dealloc_func

typedef srtp_err_status_t(* srtp_auth_dealloc_func) (srtp_auth_pointer_t ap)

◆ srtp_auth_init_func

typedef srtp_err_status_t(* srtp_auth_init_func) (void *state, const uint8_t *key, int key_len)

◆ srtp_auth_pointer_t

◆ srtp_auth_start_func

typedef srtp_err_status_t(* srtp_auth_start_func) (void *state)

◆ srtp_auth_t

◆ srtp_auth_test_case_t

◆ srtp_auth_type_pointer

◆ srtp_auth_type_t

◆ srtp_auth_update_func

typedef srtp_err_status_t(* srtp_auth_update_func) (void *state, const uint8_t *buffer, int octets_to_auth)

Function Documentation

◆ srtp_auth_get_key_length()

int srtp_auth_get_key_length ( const struct srtp_auth_t a)

◆ srtp_auth_get_prefix_length()

int srtp_auth_get_prefix_length ( const struct srtp_auth_t a)

◆ srtp_auth_get_tag_length()

int srtp_auth_get_tag_length ( const struct srtp_auth_t a)

◆ srtp_auth_type_self_test()

srtp_err_status_t srtp_auth_type_self_test ( const srtp_auth_type_t at)

◆ srtp_auth_type_test()

srtp_err_status_t srtp_auth_type_test ( const srtp_auth_type_t at,
const srtp_auth_test_case_t test_data 
)

◆ srtp_replace_auth_type()

srtp_err_status_t srtp_replace_auth_type ( const srtp_auth_type_t ct,
srtp_auth_type_id_t  id 
)