Documentation
¶
Index ¶
Constants ¶
View Source
const ( SDKSalt = "LKFrameEncryptionKey" IVLength = 12 PBKDFIterations = 100000 KeySizeBytes = 16 HKDFInfoBytes = 128 )
Variables ¶
View Source
var ( ErrIncorrectKeyLength = errors.New("incorrect key length for encryption/decryption") ErrUnableGenerateIV = errors.New("unable to generate iv for encryption") ErrIncorrectIVLength = errors.New("incorrect iv length") ErrBlockCipherRequired = errors.New("input block cipher cannot be nil") )
Functions ¶
This section is empty.
Types ¶
type FrameDecryptor ¶
FrameDecryptor decrypts a reassembled media frame after RTP depacketization. Returns (nil, nil) for server-injected frames (SIF) that should be dropped.
type FrameEncryptor ¶
FrameEncryptor encrypts a complete media frame (audio or video access unit) before RTP packetization. Implementations are codec-aware: the codec is configured at construction time, not at each call.
Click to show internal directories.
Click to hide internal directories.