MCPcopy Create free account

hub / github.com/pion/dtls / functions

Functions1,125 in github.com/pion/dtls

↓ 1 callersFunctionListen
Listen creates a DTLS listener. Deprecated: Use ListenWithOptions instead.
listener.go:18
↓ 1 callersFunctionListen
Listen creates a new listener using default ListenConfig.
internal/net/udp/packet_conn.go:214
↓ 1 callersMethodMarshal
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 callersMethodMarshal
Marshal encodes the ChangeCipherSpec to binary.
pkg/protocol/change_cipher_spec.go:19
↓ 1 callersMethodMarshal
Marshal returns the encoded alert.
pkg/protocol/alert/alert.go:149
↓ 1 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_hello_verify_request.go:36
↓ 1 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_server_hello_done.go:17
↓ 1 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_server_key_exchange.go:38
↓ 1 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_certificate.go:28
↓ 1 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_finished.go:22
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/connection_id.go:27
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/supported_elliptic_curves.go:33
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/post_handshake_auth.go:26
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/supported_point_formats.go:30
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/alpn.go:26
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/server_name.go:29
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/use_master_secret.go:25
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/psk_key_exchange_modes.go:32
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/renegotiation_info.go:26
↓ 1 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/cookie.go:24
↓ 1 callersMethodMarshalBinary
MarshalBinary is a binary.BinaryMarshaler.MarshalBinary implementation.
state.go:206
↓ 1 callersFunctionMax
Max returns the larger value.
internal/util/util.go:38
↓ 1 callersFunctionNewCloser
NewCloser creates a new instance of Closer.
internal/closer/closer.go:18
↓ 1 callersFunctionNewListener
NewListener creates a DTLS listener which accepts connections from an inner Listener. Deprecated: Use NewListenerWithOptions instead.
listener.go:68
↓ 1 callersFunctionNewTLSEcdhePskWithAes128CbcSha256
NewTLSEcdhePskWithAes128CbcSha256 creates TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 cipher.
internal/ciphersuite/tls_ecdhe_psk_with_aes_128_cbc_sha256.go:24
↓ 1 callersMethodNonceSize
()
pkg/crypto/ccm/ccm.go:73
↓ 1 callersFunctionOnlySendCIDGenerator
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 callersFunctionRandomCIDGenerator
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 callersMethodSetReadDeadline
SetReadDeadline implements net.Conn.SetReadDeadline.
conn.go:1500
↓ 1 callersMethodSetReadDeadline
SetReadDeadline implements net.PacketConn.SetReadDeadline.
internal/net/udp/packet_conn.go:416
↓ 1 callersMethodSetWriteDeadline
SetWriteDeadline implements net.Conn.SetWriteDeadline.
conn.go:1508
↓ 1 callersMethodString
nolint:err113
pkg/crypto/prf/prf.go:44
↓ 1 callersFunctionStringFromHash
StringFromHash allows looking up a string representation of the crypto.Hash.
pkg/crypto/fingerprint/hash.go:35
↓ 1 callersMethodSupportsCertificate
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 callersMethodType
Type returns the handshake message type.
pkg/protocol/handshake/message_certificate_13.go:44
↓ 1 callersMethodType
Type returns the handshake message type.
pkg/protocol/handshake/message_certificate_request_13.go:28
↓ 1 callersFunctionTypes
Types returns all valid ClientCertificate Types.
pkg/crypto/clientcertificate/client_certificate.go:20
↓ 1 callersMethodUnmarshal
Unmarshal populates the alert from binary data.
pkg/protocol/alert/alert.go:154
↓ 1 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_hello_verify_request.go:51
↓ 1 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_server_hello_done.go:22
↓ 1 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_client_key_exchange.go:55
↓ 1 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_certificate_verify.go:56
↓ 1 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_finished.go:27
↓ 1 callersMethodUnmarshal
(data []byte)
pkg/protocol/extension/extension.go:43
↓ 1 callersMethodUnwrap
Unwrap implements Go1.13 error unwrapper.
pkg/protocol/errors.go:52
↓ 1 callersFunctionWithCertificateRequestMessageHook
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 callersFunctionWithGetCertificate
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 callersFunctionWithInsecureSkipVerifyHello
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 callersFunctionWithListenConfig
WithListenConfig sets the underlying listener config. This option is only applicable to servers.
options.go:695
↓ 1 callersFunctionWithOnConnectionAttempt
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 callersFunctionWithPSKIdentityHint
WithPSKIdentityHint sets the PSK identity hint.
options.go:353
↓ 1 callersFunctionWithSRTPMasterKeyIdentifier
WithSRTPMasterKeyIdentifier sets the SRTP master key identifier.
options.go:296
↓ 1 callersFunctionWithServerHelloMessageHook
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 callersFunctionWithServerName
WithServerName sets the server name for certificate verification.
options.go:416
↓ 1 callersMethodapplyClient
(*dtlsConfig)
options.go:26
↓ 1 callersFunctionbenchmarkConn
(b *testing.B, payloadSize int64)
bench_test.go:63
↓ 1 callersMethodbroadcast
(msg []byte)
examples/util/hub.go:62
↓ 1 callersFunctionbuildConfig
buildConfig builds a Config from the provided options, for mixed client/server cases.
options.go:166
↓ 1 callersMethodcacheHandshakePacket
(pkt *packet, dtlsHandshake *handshake.Handshake)
conn.go:626
↓ 1 callersMethodcompactRawPackets
(rawPackets [][]byte)
conn.go:709
↓ 1 callersMethodcontextWithClose
(ctx context.Context)
conn.go:679
↓ 1 callersFunctionencodeCipherSuiteIDs
(cipherSuiteIDs []uint16)
pkg/protocol/handshake/cipher_suite.go:25
↓ 1 callersFunctionexaminePadding
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 callersFunctionfilterCipherSuitesForCertificate
(cert *tls.Certificate, cipherSuites []CipherSuite)
cipher_suite.go:319
↓ 1 callersMethodfinish
(ctx context.Context, c flightConn)
handshaker.go:354
↓ 1 callersFunctionflight0Parse
nolint:cyclop,gocognit
flight0handler.go:22
↓ 1 callersFunctionflight3Parse
nolint:gocognit,gocyclo,maintidx,cyclop
flight3handler.go:21
↓ 1 callersFunctionflight4Generate
nolint:gocognit,cyclop,maintidx
flight4handler.go:266
↓ 1 callersFunctionflight4Parse
nolint:gocognit,gocyclo,lll,cyclop,maintidx
flight4handler.go:25
↓ 1 callersFunctionflightTestPipe
( ctx context.Context, clientEndpoint TestEndpoint, serverEndpoint TestEndpoint, )
handshaker_test.go:355
↓ 1 callersMethodfragmentHandshake
(dtlsHandshake *handshake.Handshake)
conn.go:872
↓ 1 callersFunctionfromPC
(p net.PacketConn, raddr net.Addr)
internal/net/udp/packet_conn_test.go:47
↓ 1 callersFunctiongenerateCertificateVerify
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 callersMethodgetClientCertificate
NOTE: original src: https://github.com/golang/go/blob/29b9a328d268d53833d2cc063d1d8b4bf6852675/src/crypto/tls/handshake_client.go#L974
certificate.go:149
↓ 1 callersMethodgetConn
getConn gets an existing connection or creates a new one.
internal/net/udp/packet_conn.go:244
↓ 1 callersMethodgetFlightGenerator
()
flighthandler.go:49
↓ 1 callersMethodgetFlightParser
()
flighthandler.go:24
↓ 1 callersFunctionhandleHelloResume
( sessionID []byte, state *State, cfg *handshakeConfig, next flightVal, )
flight0handler.go:136
↓ 1 callersFunctionhandleResumption
( ctx context.Context, c flightConn, state *State, cache *handshakeCache, cfg *handshakeConfig, )
flight3handler.go:176
↓ 1 callersMethodhandshake
nolint:cyclop,gocognit,contextcheck
conn.go:1280
↓ 1 callersMethodinit
( masterSecret, clientRandom, serverRandom []byte, isClient bool, prfMacLen, prfKeyLen, prfIvLen int, hash
internal/ciphersuite/tls_ecdhe_ecdsa_with_chacha20_poly1305_sha256.go:64
↓ 1 callersFunctioninitializeCipherSuite
nolint:gocognit,cyclop
flight5handler.go:309
↓ 1 callersMethodisCompatible
isCompatible checks that given private key is compatible with the signature scheme.
pkg/crypto/signaturehash/signaturehash.go:77
↓ 1 callersMethodisLastRecvFlight
()
flight.go:102
↓ 1 callersMethodisLastSendFlight
()
flight.go:98
↓ 1 callersFunctionisOpErrorTemporary
(err *os.SyscallError)
errors_errno.go:19
↓ 1 callersFunctionnewAes256Ccm
( clientCertificateType clientcertificate.Type, id ID, psk bool, cryptoCCMTagLen ciphersuite.CCMTagLen, k
internal/ciphersuite/aes_256_ccm.go:16
↓ 1 callersMethodnewPacketConn
newPacketConn constructs a new PacketConn.
internal/net/udp/packet_conn.go:300
↓ 1 callersMethodprepare
(ctx context.Context, conn flightConn)
handshaker.go:221
↓ 1 callersMethodprepareRawPacket
(pkt *packet)
conn.go:608
↓ 1 callersMethodprepareRawPackets
(pkts []*packet)
conn.go:587
↓ 1 callersMethodprocessHandshakePacket
nolint:cyclop
conn.go:797
↓ 1 callersMethodprocessPacket
(pkt *packet)
conn.go:731
↓ 1 callersMethodreadAndBuffer
(ctx context.Context)
conn.go:921
↓ 1 callersMethodreadLoop
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 callersMethodreadLoop
(conn net.Conn)
examples/util/hub.go:37
↓ 1 callersMethodsend
(ctx context.Context, c flightConn)
handshaker.go:269
↓ 1 callersMethodsessionKey
()
conn.go:1481
↓ 1 callersMethodsetHandshakeCompletedSuccessfully
()
conn.go:1271
↓ 1 callersMethodsetLocalEpoch
(epoch uint16)
handshaker.go:149
← previousnext →401–500 of 1,125, ranked by callers