srtp

package
v0.0.0-...-88258bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession(log logger.Logger, conn net.Conn, conf *Config) (rtp.Session, error)

Types

type Config

type Config = srtp.Config

type ContextOption

type ContextOption = srtp.ContextOption

func MasterKeyIndicator

func MasterKeyIndicator(mki []byte) ContextOption

Expects a byte slice containing MKI value encoded in big-endian. Will be appended to packets we send.

type Options

type Options struct {
	Profiles []Profile
}

type Profile

type Profile struct {
	Index    int
	Profile  ProtectionProfile
	Key      []byte
	Salt     []byte
	MKI      []byte // Master Key Identifier, nil if not present
	Lifetime uint64 // TODO: This is just a placeholder for future use
}

func DefaultProfiles

func DefaultProfiles() ([]Profile, error)

type ProtectionProfile

type ProtectionProfile string

func (ProtectionProfile) Parse

type SessionKeys

type SessionKeys = srtp.SessionKeys

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL