Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

SRTP stream protection policy. More...

#include <zephyr/net/srtp.h>

Data Fields

enum srtp_cipher cipher
 Encryption transform.
enum srtp_auth auth
 Authentication transform.
const uint8_t * master_key
 Master key; SRTP_AES_128_KEY_LEN bytes, or SRTP_AES_256_KEY_LEN bytes for SRTP_CIPHER_AES_256_GCM.
size_t master_key_len
 Length of master_key in bytes.
const uint8_t * master_salt
 Master salt; SRTP_MASTER_SALT_LEN bytes, or SRTP_AES_GCM_SALT_LEN bytes for the AES-GCM ciphers.
size_t master_salt_len
 Length of master_salt in bytes.
uint32_t kdr
 Key derivation rate (RFC 3711, section-4.3.1); 0 to derive session keys once, otherwise a power of two between 2^0 and 2^24.
const uint8_t * mki
 Master key identifier (MKI, RFC 3711, section-3.1) appended to every protected packet and matched on received packets; NULL for no MKI.
size_t mki_len
 Length of mki in bytes; 0 for no MKI.
bool allow_null_auth
 Explicit opt-in for SRTP_AUTH_NULL with non-AEAD ciphers.

Detailed Description

SRTP stream protection policy.

Field Documentation

◆ allow_null_auth

bool srtp_policy::allow_null_auth

Explicit opt-in for SRTP_AUTH_NULL with non-AEAD ciphers.

Without authentication, SRTP provides no integrity or replay protection.

◆ auth

enum srtp_auth srtp_policy::auth

Authentication transform.

◆ cipher

enum srtp_cipher srtp_policy::cipher

Encryption transform.

◆ kdr

uint32_t srtp_policy::kdr

Key derivation rate (RFC 3711, section-4.3.1); 0 to derive session keys once, otherwise a power of two between 2^0 and 2^24.

◆ master_key

const uint8_t* srtp_policy::master_key

◆ master_key_len

size_t srtp_policy::master_key_len

Length of master_key in bytes.

◆ master_salt

const uint8_t* srtp_policy::master_salt

Master salt; SRTP_MASTER_SALT_LEN bytes, or SRTP_AES_GCM_SALT_LEN bytes for the AES-GCM ciphers.

◆ master_salt_len

size_t srtp_policy::master_salt_len

Length of master_salt in bytes.

◆ mki

const uint8_t* srtp_policy::mki

Master key identifier (MKI, RFC 3711, section-3.1) appended to every protected packet and matched on received packets; NULL for no MKI.

At most SRTP_MKI_MAX_LEN bytes. One master key per stream is supported: the MKI tags and matches packets, it does not select among multiple keys.

◆ mki_len

size_t srtp_policy::mki_len

Length of mki in bytes; 0 for no MKI.


The documentation for this struct was generated from the following file: