RecordLayer which handles all data transport.
The record layer is assumed to sit directly on top of some
reliable transport such as TCP. The record layer can carry four types of content:
1. Handshake messages—used for algorithm negotiation and key establishment.
2. ChangeCipherSpec messages—really part of the handshake but technically a separate kind of message.
3. Alert messages—used to signal that errors have occurred
4. Application layer data
The DTLS record layer is extremely similar to that of TLS 1.1. The
only change is the inclusion of an explicit sequence number in the
record. This sequence number allows the recipient to correctly
verify the TLS MAC.
https://tools.ietf.org/html/rfc4347#section-4.1Contentprotocol.ContentHeaderHeader Marshal encodes the RecordLayer to binary Unmarshal populates the RecordLayer from binary
*RecordLayer : github.com/pion/rtcp.PacketStatusChunk
*RecordLayer : github.com/gogo/protobuf/proto.Marshaler
*RecordLayer : github.com/gogo/protobuf/proto.Unmarshaler
*RecordLayer : github.com/golang/protobuf/proto.Marshaler
*RecordLayer : github.com/golang/protobuf/proto.Unmarshaler
func github.com/pion/dtls/v2/pkg/crypto/ciphersuite.(*CBC).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/pkg/crypto/ciphersuite.(*CCM).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/pkg/crypto/ciphersuite.(*GCM).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2.CipherSuite.Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/internal/ciphersuite.(*AesCcm).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/internal/ciphersuite.(*TLSEcdheEcdsaWithAes128GcmSha256).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/internal/ciphersuite.(*TLSEcdheEcdsaWithAes256CbcSha).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/internal/ciphersuite.(*TLSEcdhePskWithAes128CbcSha256).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
func github.com/pion/dtls/v2/internal/ciphersuite.(*TLSPskWithAes128CbcSha256).Encrypt(pkt *RecordLayer, raw []byte) ([]byte, error)
Package-Level Functions (only one)
UnpackDatagram extracts all RecordLayer messages from a single datagram.
Note that as with TLS, multiple handshake messages may be placed in
the same DTLS record, provided that there is room and that they are
part of the same flight. Thus, there are two acceptable ways to pack
two DTLS messages into the same datagram: in the same record or in
separate records.
https://tools.ietf.org/html/rfc6347#section-4.2.3
Package-Level Variables (only one)
ErrInvalidPacketLength is returned when the packet length too small or declared length do not match
Package-Level Constants (total 2)
RecordLayer enums
RecordLayer 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.