Documentation ¶
Overview ¶
Package ciphersuite provides the crypto operations needed for a DTLS CipherSuite
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CBC ¶
type CBC struct {
// contains filtered or unexported fields
}
CBC Provides an API to Encrypt/Decrypt DTLS 1.2 Packets
func NewCBC ¶
func NewCBC(localKey, localWriteIV, localMac, remoteKey, remoteWriteIV, remoteMac []byte, h prf.HashFunc) (*CBC, error)
NewCBC creates a DTLS CBC Cipher
func (*CBC) Encrypt ¶
func (c *CBC) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error)
Encrypt encrypt a DTLS RecordLayer message
type CCM ¶
type CCM struct {
// contains filtered or unexported fields
}
CCM Provides an API to Encrypt/Decrypt DTLS 1.2 Packets
func NewCCM ¶
func NewCCM(tagLen CCMTagLen, localKey, localWriteIV, remoteKey, remoteWriteIV []byte) (*CCM, error)
NewCCM creates a DTLS GCM Cipher
func (*CCM) Encrypt ¶
func (c *CCM) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error)
Encrypt encrypt a DTLS RecordLayer message
type GCM ¶
type GCM struct {
// contains filtered or unexported fields
}
GCM Provides an API to Encrypt/Decrypt DTLS 1.2 Packets
func (*GCM) Encrypt ¶
func (g *GCM) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error)
Encrypt encrypt a DTLS RecordLayer message
Click to show internal directories.
Click to hide internal directories.