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

Go to the source code of this file.

Classes

struct  srtp_ekt_policy_ctx_t
 
struct  srtp_ekt_data_t
 
struct  srtp_ekt_stream_ctx_t
 

Macros

#define SRTP_EKT_CIPHER_DEFAULT   1
 
#define SRTP_EKT_CIPHER_AES_128_ECB   1
 
#define SRTP_EKT_CIPHER_AES_192_KEY_WRAP   2
 
#define SRTP_EKT_CIPHER_AES_256_KEY_WRAP   3
 

Typedefs

typedef uint16_t srtp_ekt_spi_t
 
typedef struct srtp_ekt_policy_ctx_t srtp_ekt_policy_ctx_t
 
typedef struct srtp_ekt_data_t srtp_ekt_data_t
 
typedef struct srtp_ekt_stream_ctx_t srtp_ekt_stream_ctx_t
 

Functions

unsigned srtp_ekt_octets_after_base_tag (srtp_ekt_stream_t ekt)
 
srtp_err_status_t srtp_ekt_alloc (srtp_ekt_stream_t *stream_data, srtp_ekt_policy_t policy)
 
srtp_err_status_t srtp_ekt_stream_init (srtp_ekt_stream_t e, srtp_ekt_spi_t spi, void *ekt_key, unsigned ekt_cipher_type)
 
srtp_err_status_t srtp_ekt_stream_init_from_policy (srtp_ekt_stream_t e, srtp_ekt_policy_t p)
 
srtp_err_status_t srtp_stream_init_from_ekt (srtp_stream_t stream, const void *srtcp_hdr, unsigned pkt_octet_len)
 
void srtp_ekt_write_data (srtp_ekt_stream_t ekt, uint8_t *base_tag, unsigned base_tag_len, int *packet_len, srtp_xtd_seq_num_t pkt_index)
 
srtp_err_status_t srtp_ekt_tag_verification_preproces (uint8_t *pkt_tag, uint8_t *pkt_tag_copy, unsigned tag_len)
 
srtp_err_status_t srtp_ekt_tag_verification_postproces (uint8_t *pkt_tag, uint8_t *pkt_tag_copy, unsigned tag_len)
 
srtp_err_status_t srtp_stream_srtcp_auth_tag_generation_preprocess (const srtp_stream_t *s, uint8_t *pkt_tag, unsigned pkt_octet_len)
 
srtp_err_status_t srtcp_auth_tag_generation_postprocess (void)
 

Macro Definition Documentation

◆ SRTP_EKT_CIPHER_AES_128_ECB

#define SRTP_EKT_CIPHER_AES_128_ECB   1

◆ SRTP_EKT_CIPHER_AES_192_KEY_WRAP

#define SRTP_EKT_CIPHER_AES_192_KEY_WRAP   2

◆ SRTP_EKT_CIPHER_AES_256_KEY_WRAP

#define SRTP_EKT_CIPHER_AES_256_KEY_WRAP   3

◆ SRTP_EKT_CIPHER_DEFAULT

#define SRTP_EKT_CIPHER_DEFAULT   1

Typedef Documentation

◆ srtp_ekt_data_t

◆ srtp_ekt_policy_ctx_t

◆ srtp_ekt_spi_t

◆ srtp_ekt_stream_ctx_t

Function Documentation

◆ srtcp_auth_tag_generation_postprocess()

srtp_err_status_t srtcp_auth_tag_generation_postprocess ( void  )

◆ srtp_ekt_alloc()

srtp_err_status_t srtp_ekt_alloc ( srtp_ekt_stream_t stream_data,
srtp_ekt_policy_t  policy 
)

◆ srtp_ekt_octets_after_base_tag()

unsigned srtp_ekt_octets_after_base_tag ( srtp_ekt_stream_t  ekt)

◆ srtp_ekt_stream_init()

srtp_err_status_t srtp_ekt_stream_init ( srtp_ekt_stream_t  e,
srtp_ekt_spi_t  spi,
void ekt_key,
unsigned  ekt_cipher_type 
)

◆ srtp_ekt_stream_init_from_policy()

srtp_err_status_t srtp_ekt_stream_init_from_policy ( srtp_ekt_stream_t  e,
srtp_ekt_policy_t  p 
)

◆ srtp_ekt_tag_verification_postproces()

srtp_err_status_t srtp_ekt_tag_verification_postproces ( uint8_t pkt_tag,
uint8_t pkt_tag_copy,
unsigned  tag_len 
)

◆ srtp_ekt_tag_verification_preproces()

srtp_err_status_t srtp_ekt_tag_verification_preproces ( uint8_t pkt_tag,
uint8_t pkt_tag_copy,
unsigned  tag_len 
)

◆ srtp_ekt_write_data()

void srtp_ekt_write_data ( srtp_ekt_stream_t  ekt,
uint8_t base_tag,
unsigned  base_tag_len,
int *  packet_len,
srtp_xtd_seq_num_t  pkt_index 
)

◆ srtp_stream_init_from_ekt()

srtp_err_status_t srtp_stream_init_from_ekt ( srtp_stream_t  stream,
const void srtcp_hdr,
unsigned  pkt_octet_len 
)

◆ srtp_stream_srtcp_auth_tag_generation_preprocess()

srtp_err_status_t srtp_stream_srtcp_auth_tag_generation_preprocess ( const srtp_stream_t s,
uint8_t pkt_tag,
unsigned  pkt_octet_len 
)