Involved Source Filescbc.goccm.go Package ciphersuite provides the crypto operations needed for a DTLS CipherSuitegcm.go
Package-Level Type Names (total 4)
/* sort by: | */
CBC Provides an API to Encrypt/Decrypt DTLS 1.2 Packets Decrypt decrypts a DTLS RecordLayer message Encrypt encrypt a DTLS RecordLayer message
func NewCBC(localKey, localWriteIV, localMac, remoteKey, remoteWriteIV, remoteMac []byte, h prf.HashFunc) (*CBC, error)
CCM Provides an API to Encrypt/Decrypt DTLS 1.2 Packets Decrypt decrypts a DTLS RecordLayer message Encrypt encrypt a DTLS RecordLayer message
func NewCCM(tagLen CCMTagLen, localKey, localWriteIV, remoteKey, remoteWriteIV []byte) (*CCM, error)
CCMTagLen is the length of Authentication Tag
func NewCCM(tagLen CCMTagLen, localKey, localWriteIV, remoteKey, remoteWriteIV []byte) (*CCM, error)
const CCMTagLength
const CCMTagLength8
GCM Provides an API to Encrypt/Decrypt DTLS 1.2 Packets Decrypt decrypts a DTLS RecordLayer message Encrypt encrypt a DTLS RecordLayer message
func NewGCM(localKey, localWriteIV, remoteKey, remoteWriteIV []byte) (*GCM, error)
Package-Level Functions (total 3)
NewCBC creates a DTLS CBC Cipher
NewCCM creates a DTLS GCM Cipher
NewGCM creates a DTLS GCM Cipher
Package-Level Constants (total 2)
CCM Enums
CCM Enums
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.