Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pion/dtls
/ functions
Functions
1,125 in github.com/pion/dtls
⨍
Functions
1,125
◇
Types & classes
171
↓ 1 callers
Function
Listen
Listen creates a DTLS listener. Deprecated: Use ListenWithOptions instead.
listener.go:18
↓ 1 callers
Function
Listen
Listen creates a new listener using default ListenConfig.
internal/net/udp/packet_conn.go:214
↓ 1 callers
Method
Marshal
Marshal encodes the Algorithm to the correct TLS 1.2 byte-split or the TLS 1.3 PSS full uint16 schemes.
pkg/crypto/signaturehash/signaturehash.go:196
↓ 1 callers
Method
Marshal
Marshal encodes the ChangeCipherSpec to binary.
pkg/protocol/change_cipher_spec.go:19
↓ 1 callers
Method
Marshal
Marshal returns the encoded alert.
pkg/protocol/alert/alert.go:149
↓ 1 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_hello_verify_request.go:36
↓ 1 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_server_hello_done.go:17
↓ 1 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_server_key_exchange.go:38
↓ 1 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_certificate.go:28
↓ 1 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_finished.go:22
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/connection_id.go:27
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/supported_elliptic_curves.go:33
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/post_handshake_auth.go:26
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/supported_point_formats.go:30
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/alpn.go:26
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/server_name.go:29
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/use_master_secret.go:25
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/psk_key_exchange_modes.go:32
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/renegotiation_info.go:26
↓ 1 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/cookie.go:24
↓ 1 callers
Method
MarshalBinary
MarshalBinary is a binary.BinaryMarshaler.MarshalBinary implementation.
state.go:206
↓ 1 callers
Function
Max
Max returns the larger value.
internal/util/util.go:38
↓ 1 callers
Function
NewCloser
NewCloser creates a new instance of Closer.
internal/closer/closer.go:18
↓ 1 callers
Function
NewListener
NewListener creates a DTLS listener which accepts connections from an inner Listener. Deprecated: Use NewListenerWithOptions instead.
listener.go:68
↓ 1 callers
Function
NewTLSEcdhePskWithAes128CbcSha256
NewTLSEcdhePskWithAes128CbcSha256 creates TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 cipher.
internal/ciphersuite/tls_ecdhe_psk_with_aes_128_cbc_sha256.go:24
↓ 1 callers
Method
NonceSize
()
pkg/crypto/ccm/ccm.go:73
↓ 1 callers
Function
OnlySendCIDGenerator
OnlySendCIDGenerator enables sending Connection IDs negotiated with a peer, but indicates to the peer that sending Connection IDs in return is not nec
connection_id.go:32
↓ 1 callers
Function
RandomCIDGenerator
RandomCIDGenerator is a random Connection ID generator where CID is the specified size. Specifying a size of 0 will indicate to peers that sending a C
connection_id.go:18
↓ 1 callers
Method
SetReadDeadline
SetReadDeadline implements net.Conn.SetReadDeadline.
conn.go:1500
↓ 1 callers
Method
SetReadDeadline
SetReadDeadline implements net.PacketConn.SetReadDeadline.
internal/net/udp/packet_conn.go:416
↓ 1 callers
Method
SetWriteDeadline
SetWriteDeadline implements net.Conn.SetWriteDeadline.
conn.go:1508
↓ 1 callers
Method
String
nolint:err113
pkg/crypto/prf/prf.go:44
↓ 1 callers
Function
StringFromHash
StringFromHash allows looking up a string representation of the crypto.Hash.
pkg/crypto/fingerprint/hash.go:35
↓ 1 callers
Method
SupportsCertificate
SupportsCertificate returns nil if the provided certificate is supported by the server that sent the CertificateRequest. Otherwise, it returns an erro
certificate.go:48
↓ 1 callers
Method
Type
Type returns the handshake message type.
pkg/protocol/handshake/message_certificate_13.go:44
↓ 1 callers
Method
Type
Type returns the handshake message type.
pkg/protocol/handshake/message_certificate_request_13.go:28
↓ 1 callers
Function
Types
Types returns all valid ClientCertificate Types.
pkg/crypto/clientcertificate/client_certificate.go:20
↓ 1 callers
Method
Unmarshal
Unmarshal populates the alert from binary data.
pkg/protocol/alert/alert.go:154
↓ 1 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_hello_verify_request.go:51
↓ 1 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_server_hello_done.go:22
↓ 1 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_client_key_exchange.go:55
↓ 1 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_certificate_verify.go:56
↓ 1 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_finished.go:27
↓ 1 callers
Method
Unmarshal
(data []byte)
pkg/protocol/extension/extension.go:43
↓ 1 callers
Method
Unwrap
Unwrap implements Go1.13 error unwrapper.
pkg/protocol/errors.go:52
↓ 1 callers
Function
WithCertificateRequestMessageHook
WithCertificateRequestMessageHook sets the certificate request message hook. Returns an error if the hook is nil. This option is only applicable to se
options.go:668
↓ 1 callers
Function
WithGetCertificate
WithGetCertificate sets the certificate getter callback. Returns an error if the callback is nil. This option is only applicable to servers.
options.go:629
↓ 1 callers
Function
WithInsecureSkipVerifyHello
WithInsecureSkipVerifyHello skips hello verify phase on the server. This has implication on DoS attack resistance. This option is only applicable to s
options.go:643
↓ 1 callers
Function
WithListenConfig
WithListenConfig sets the underlying listener config. This option is only applicable to servers.
options.go:695
↓ 1 callers
Function
WithOnConnectionAttempt
WithOnConnectionAttempt sets the connection attempt callback. Returns an error if the callback is nil. This option is only applicable to servers.
options.go:682
↓ 1 callers
Function
WithPSKIdentityHint
WithPSKIdentityHint sets the PSK identity hint.
options.go:353
↓ 1 callers
Function
WithSRTPMasterKeyIdentifier
WithSRTPMasterKeyIdentifier sets the SRTP master key identifier.
options.go:296
↓ 1 callers
Function
WithServerHelloMessageHook
WithServerHelloMessageHook sets the server hello message hook. Returns an error if the hook is nil. This option is only applicable to servers.
options.go:654
↓ 1 callers
Function
WithServerName
WithServerName sets the server name for certificate verification.
options.go:416
↓ 1 callers
Method
applyClient
(*dtlsConfig)
options.go:26
↓ 1 callers
Function
benchmarkConn
(b *testing.B, payloadSize int64)
bench_test.go:63
↓ 1 callers
Method
broadcast
(msg []byte)
examples/util/hub.go:62
↓ 1 callers
Function
buildConfig
buildConfig builds a Config from the provided options, for mixed client/server cases.
options.go:166
↓ 1 callers
Method
cacheHandshakePacket
(pkt *packet, dtlsHandshake *handshake.Handshake)
conn.go:626
↓ 1 callers
Method
compactRawPackets
(rawPackets [][]byte)
conn.go:709
↓ 1 callers
Method
contextWithClose
(ctx context.Context)
conn.go:679
↓ 1 callers
Function
encodeCipherSuiteIDs
(cipherSuiteIDs []uint16)
pkg/protocol/handshake/cipher_suite.go:25
↓ 1 callers
Function
examinePadding
examinePadding returns, in constant time, the length of the padding to remove from the end of payload. It also returns a byte which is equal to 255 if
pkg/crypto/ciphersuite/ciphersuite.go:192
↓ 1 callers
Function
filterCipherSuitesForCertificate
(cert *tls.Certificate, cipherSuites []CipherSuite)
cipher_suite.go:319
↓ 1 callers
Method
finish
(ctx context.Context, c flightConn)
handshaker.go:354
↓ 1 callers
Function
flight0Parse
nolint:cyclop,gocognit
flight0handler.go:22
↓ 1 callers
Function
flight3Parse
nolint:gocognit,gocyclo,maintidx,cyclop
flight3handler.go:21
↓ 1 callers
Function
flight4Generate
nolint:gocognit,cyclop,maintidx
flight4handler.go:266
↓ 1 callers
Function
flight4Parse
nolint:gocognit,gocyclo,lll,cyclop,maintidx
flight4handler.go:25
↓ 1 callers
Function
flightTestPipe
( ctx context.Context, clientEndpoint TestEndpoint, serverEndpoint TestEndpoint, )
handshaker_test.go:355
↓ 1 callers
Method
fragmentHandshake
(dtlsHandshake *handshake.Handshake)
conn.go:872
↓ 1 callers
Function
fromPC
(p net.PacketConn, raddr net.Addr)
internal/net/udp/packet_conn_test.go:47
↓ 1 callers
Function
generateCertificateVerify
If the server has sent a CertificateRequest message, the client MUST send the Certificate message. The ClientKeyExchange message is now sent, and the
crypto.go:211
↓ 1 callers
Method
getClientCertificate
NOTE: original src: https://github.com/golang/go/blob/29b9a328d268d53833d2cc063d1d8b4bf6852675/src/crypto/tls/handshake_client.go#L974
certificate.go:149
↓ 1 callers
Method
getConn
getConn gets an existing connection or creates a new one.
internal/net/udp/packet_conn.go:244
↓ 1 callers
Method
getFlightGenerator
()
flighthandler.go:49
↓ 1 callers
Method
getFlightParser
()
flighthandler.go:24
↓ 1 callers
Function
handleHelloResume
( sessionID []byte, state *State, cfg *handshakeConfig, next flightVal, )
flight0handler.go:136
↓ 1 callers
Function
handleResumption
( ctx context.Context, c flightConn, state *State, cache *handshakeCache, cfg *handshakeConfig, )
flight3handler.go:176
↓ 1 callers
Method
handshake
nolint:cyclop,gocognit,contextcheck
conn.go:1280
↓ 1 callers
Method
init
( masterSecret, clientRandom, serverRandom []byte, isClient bool, prfMacLen, prfKeyLen, prfIvLen int, hash
internal/ciphersuite/tls_ecdhe_ecdsa_with_chacha20_poly1305_sha256.go:64
↓ 1 callers
Function
initializeCipherSuite
nolint:gocognit,cyclop
flight5handler.go:309
↓ 1 callers
Method
isCompatible
isCompatible checks that given private key is compatible with the signature scheme.
pkg/crypto/signaturehash/signaturehash.go:77
↓ 1 callers
Method
isLastRecvFlight
()
flight.go:102
↓ 1 callers
Method
isLastSendFlight
()
flight.go:98
↓ 1 callers
Function
isOpErrorTemporary
(err *os.SyscallError)
errors_errno.go:19
↓ 1 callers
Function
newAes256Ccm
( clientCertificateType clientcertificate.Type, id ID, psk bool, cryptoCCMTagLen ciphersuite.CCMTagLen, k
internal/ciphersuite/aes_256_ccm.go:16
↓ 1 callers
Method
newPacketConn
newPacketConn constructs a new PacketConn.
internal/net/udp/packet_conn.go:300
↓ 1 callers
Method
prepare
(ctx context.Context, conn flightConn)
handshaker.go:221
↓ 1 callers
Method
prepareRawPacket
(pkt *packet)
conn.go:608
↓ 1 callers
Method
prepareRawPackets
(pkts []*packet)
conn.go:587
↓ 1 callers
Method
processHandshakePacket
nolint:cyclop
conn.go:797
↓ 1 callers
Method
processPacket
(pkt *packet)
conn.go:731
↓ 1 callers
Method
readAndBuffer
(ctx context.Context)
conn.go:921
↓ 1 callers
Method
readLoop
readLoop dispatches packets to the proper connection, creating a new one if necessary, until all connections are closed.
internal/net/udp/packet_conn.go:220
↓ 1 callers
Method
readLoop
(conn net.Conn)
examples/util/hub.go:37
↓ 1 callers
Method
send
(ctx context.Context, c flightConn)
handshaker.go:269
↓ 1 callers
Method
sessionKey
()
conn.go:1481
↓ 1 callers
Method
setHandshakeCompletedSuccessfully
()
conn.go:1271
↓ 1 callers
Method
setLocalEpoch
(epoch uint16)
handshaker.go:149
← previous
next →
401–500 of 1,125, ranked by callers