srtp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context represents a SRTP cryptographic context which is a tuple of <SSRC, destination network address, destination transport port number>

func CreateContext

func CreateContext(masterKey, masterSalt []byte, profile string, ssrc uint32) (c *Context, err error)

CreateContext creates a new SRTP Context

func (*Context) DecryptPacket

func (c *Context) DecryptPacket(packet *rtp.Packet) bool

DecryptPacket decrypts a RTP packet with an encrypted payload

func (*Context) EncryptPacket

func (c *Context) EncryptPacket(packet *rtp.Packet) bool

EncryptPacket Encrypts a SRTP packet in place

Jump to

Keyboard shortcuts

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