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
↓ 7 callers
Method
Write
(p []byte)
internal/net/udp/packet_conn_test.go:60
↓ 7 callers
Method
isHandshakeCompletedSuccessfully
()
conn.go:1275
↓ 7 callers
Function
newHandshakeCache
()
handshake_cache.go:33
↓ 7 callers
Function
pipeMemory
()
conn_test.go:223
↓ 7 callers
Method
setLocalConnectionID
(v []byte)
state.go:296
↓ 6 callers
Function
BigEndianUint24
BigEndianUint24 returns the value of a big endian uint24.
internal/util/util.go:12
↓ 6 callers
Method
Encrypt
(pkt *recordlayer.RecordLayer, raw []byte)
pkg/crypto/ciphersuite/bench_helpers_test.go:16
↓ 6 callers
Function
GenerateKeypair
GenerateKeypair generates a keypair for the given Curve.
pkg/crypto/elliptic/elliptic.go:89
↓ 6 callers
Method
Has
Has check if keyExchangeAlgorithm is supported.
internal/ciphersuite/types/key_exchange_algorithm.go:18
↓ 6 callers
Method
Init
Called when keying material has been generated, should initialize the internal cipher
cipher_suite.go:104
↓ 6 callers
Method
KeyExchangeAlgorithm
KeyExchangeAlgorithm controls what exchange algorithm is using during the handshake
cipher_suite.go:97
↓ 6 callers
Method
Listen
Listen creates a new listener based on the ListenConfig. nolint:contextcheck
internal/net/udp/packet_conn.go:168
↓ 6 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/oid_filters.go:28
↓ 6 callers
Function
NewCCM
NewCCM returns the given 128-bit block cipher wrapped in CCM. The tagsize must be an even integer between 4 and 16 inclusive and is used as CCM's `M`
pkg/crypto/ccm/ccm.go:57
↓ 6 callers
Function
NewCCM
NewCCM creates a DTLS GCM Cipher.
pkg/crypto/ciphersuite/ccm.go:29
↓ 6 callers
Method
Unmarshal
Unmarshal translates a tls.SignatureScheme to a Algorithm. This function handles both TLS 1.2 byte-split encoding and TLS 1.3 PSS full uint16 schemes.
pkg/crypto/signaturehash/signaturehash.go:167
↓ 6 callers
Function
benchmarkBufferWR
(b *testing.B, size int64, write bool, grow int)
internal/net/buffer_test.go:282
↓ 6 callers
Function
cipherSuiteForID
Taken from https://www.iana.org/assignments/tls-parameters/tls-parameters.xml A cipherSuite is a specific combination of key agreement, cipher and MAC
cipher_suite.go:161
↓ 6 callers
Function
cipherSuiteIDs
(cipherSuites []CipherSuite)
cipher_suite.go:244
↓ 6 callers
Function
newFragmentBuffer
()
fragment_buffer.go:40
↓ 6 callers
Function
pipe
()
internal/net/udp/packet_conn_test.go:280
↓ 6 callers
Function
validateConfig
(config *Config)
config.go:282
↓ 6 callers
Function
valueKeyMessage
(clientRandom, serverRandom, publicKey []byte, namedCurve elliptic.Curve)
crypto.go:29
↓ 6 callers
Method
writeKeyLog
(label string, clientRandom, secret []byte)
handshaker.go:154
↓ 5 callers
Function
ALPNProtocolSelection
ALPNProtocolSelection negotiates a shared protocol according to #3.2 of rfc7301.
pkg/protocol/extension/alpn.go:79
↓ 5 callers
Method
Chat
Chat starts the stdin readloop to dispatch messages to the hub.
examples/util/hub.go:74
↓ 5 callers
Function
ContentAwareUnpackDatagram
ContentAwareUnpackDatagram is the same as UnpackDatagram but considers the presence of a connection identifier if the record is of content type tls12_
pkg/protocol/recordlayer/recordlayer.go:121
↓ 5 callers
Method
ExportKeyingMaterial
ExportKeyingMaterial returns length bytes of exported key material in a new slice as defined in RFC 5705. This allows protocols to use DTLS for key es
state.go:238
↓ 5 callers
Method
Get
Get fetch a session.
session.go:21
↓ 5 callers
Function
HashFromString
HashFromString allows looking up a hash algorithm by it's string representation.
pkg/crypto/fingerprint/hash.go:26
↓ 5 callers
Method
IsInitialized
()
cipher_suite.go:105
↓ 5 callers
Function
Marshal
Marshal many extensions at once.
pkg/protocol/extension/extension.go:123
↓ 5 callers
Method
Marshal
Marshal encodes the extension. This supports hybrid encoding: TLS 1.3 PSS schemes are encoded as full uint16, while TLS 1.2 schemes use hash (high byt
pkg/protocol/extension/signature_algorithms_cert.go:32
↓ 5 callers
Function
NewHub
NewHub builds a new hub.
examples/util/hub.go:22
↓ 5 callers
Function
PHash
PHash is PRF is the SHA-256 hash function is used for all cipher suites defined in this TLS 1.2 document and in TLS documents published prior to this
pkg/crypto/prf/prf.go:159
↓ 5 callers
Method
Register
Register adds a new conn to the Hub.
examples/util/hub.go:27
↓ 5 callers
Method
Unmarshal
Unmarshal decodes a handshake from a binary message.
pkg/protocol/handshake/handshake.go:112
↓ 5 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/use_srtp.go:63
↓ 5 callers
Function
WithClientAuth
WithClientAuth sets the client authentication policy. Returns an error if the type is invalid. This option is only applicable to servers.
options.go:605
↓ 5 callers
Function
WithExtendedMasterSecret
WithExtendedMasterSecret sets the extended master secret policy. Returns an error if the type is invalid.
options.go:306
↓ 5 callers
Function
WithFlightInterval
WithFlightInterval sets the flight interval for handshake messages. Returns an error if the interval is not positive.
options.go:319
↓ 5 callers
Function
WithMTU
WithMTU sets the maximum transmission unit. Returns an error if the MTU is not positive.
options.go:435
↓ 5 callers
Function
generateAEADAdditionalDataCID
generateAEADAdditionalDataCID generates additional data for AEAD ciphers according to https://datatracker.ietf.org/doc/html/rfc9146#name-aead-ciphers
pkg/crypto/ciphersuite/ciphersuite.go:170
↓ 5 callers
Function
getConfig
()
internal/net/udp/packet_conn_test.go:327
↓ 5 callers
Method
getLocalEpoch
()
state.go:268
↓ 5 callers
Function
marshalUnmarshalMessageCertificate13AndVerifyMatch
marshalUnmarshalMessageCertificate13AndVerifyMatch marshals and unmarshals a MessageCertificate13, then verifies that the message before and after hav
pkg/protocol/handshake/message_certificate_13_test.go:616
↓ 5 callers
Method
pop
()
fragment_buffer.go:111
↓ 5 callers
Function
sendClientHello
( cookie []byte, ca net.Conn, sequenceNumber uint64, extensions []extension.Extension, cipherSuiteIDsOver
conn_test.go:317
↓ 4 callers
Function
Algorithms
Algorithms returns signature algorithms compatible with DTLS 1.2 / TLS 1.2. IMPORTANT: order in this slice determines priority used by SelectSignatur
pkg/crypto/signaturehash/signaturehash.go:34
↓ 4 callers
Function
Chat
Chat simulates a simple text chat session over the connection.
examples/util/util.go:28
↓ 4 callers
Method
Err
()
conn.go:659
↓ 4 callers
Method
IsFatalOrCloseNotify
()
errors.go:265
↓ 4 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_client_hello.go:40
↓ 4 callers
Method
Marshal
Marshal encodes the extension without carrying negotiation state.
pkg/protocol/extension/supported_versions.go:24
↓ 4 callers
Method
Open
(dst, nonce, ciphertext, adata []byte)
pkg/crypto/ccm/ccm.go:224
↓ 4 callers
Method
Seal
Seal encrypts and authenticates plaintext, authenticates the additional data and appends the result to dst, returning the updated slice. The nonce mus
pkg/crypto/ccm/ccm.go:195
↓ 4 callers
Method
SetReadDeadline
SetReadDeadline sets the read deadline for the buffer.
internal/net/buffer.go:238
↓ 4 callers
Method
TypeValue
()
pkg/protocol/extension/key_share.go:24
↓ 4 callers
Method
TypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/signature_algorithms_cert.go:25
↓ 4 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data. This supports hybrid encoding: detects TLS 1.3 PSS schemes and handles them as full uint16, while
pkg/protocol/extension/supported_signature_algorithms.go:33
↓ 4 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/certificate_auth.go:50
↓ 4 callers
Method
UnmarshalFixed
UnmarshalFixed populates the message from encoded data.
pkg/protocol/handshake/random.go:37
↓ 4 callers
Function
VerifyDataClient
VerifyDataClient is caled on the Client Side to either verify or generate the VerifyData message.
pkg/crypto/prf/prf.go:257
↓ 4 callers
Function
VerifyDataServer
VerifyDataServer is caled on the Server Side to either verify or generate the VerifyData message.
pkg/crypto/prf/prf.go:262
↓ 4 callers
Function
WithCipherSuites
WithCipherSuites sets the supported cipher suites. For functional options, an explicitly empty slice is not allowed.
options.go:229
↓ 4 callers
Function
WithEllipticCurves
WithEllipticCurves sets the elliptic curves. For functional options, an explicitly empty slice is not allowed.
options.go:493
↓ 4 callers
Function
WithReplayProtectionWindow
WithReplayProtectionWindow sets the replay protection window size. Returns an error if the window size is negative.
options.go:448
↓ 4 callers
Function
WithSRTPProtectionProfiles
WithSRTPProtectionProfiles sets the SRTP protection profiles. For functional options, an explicitly empty slice is not allowed.
options.go:284
↓ 4 callers
Function
WithSignatureSchemes
WithSignatureSchemes sets the signature schemes. For functional options, an explicitly empty slice is not allowed.
options.go:255
↓ 4 callers
Function
WithSupportedProtocols
WithSupportedProtocols sets the supported application protocols for ALPN. For functional options, an explicitly empty slice is not allowed.
options.go:480
↓ 4 callers
Function
benchmarkDecrypt
benchmarkDecrypt benchmarks a cipher's decryption with various payload sizes.
pkg/crypto/ciphersuite/bench_helpers_test.go:65
↓ 4 callers
Function
benchmarkEncrypt
benchmarkEncrypt benchmarks a cipher's encryption with various payload sizes.
pkg/crypto/ciphersuite/bench_helpers_test.go:21
↓ 4 callers
Method
clone
nolint:err113
state.go:97
↓ 4 callers
Function
createConn
createConn creates a new DTLS connection. Caller is responsible for validating the config before calling this function. nolint:cyclop
conn.go:107
↓ 4 callers
Function
defaultCipherSuites
CipherSuites we support in order of preference.
cipher_suite.go:211
↓ 4 callers
Function
generateAEADAdditionalData
(h *recordlayer.Header, payloadLen int)
pkg/crypto/ciphersuite/ciphersuite.go:152
↓ 4 callers
Method
initCipherSuite
()
state.go:184
↓ 4 callers
Method
isConnectionClosed
()
conn.go:1451
↓ 4 callers
Function
marshalUnmarshalMessageCertificateRequest13AndVerifyMatch
marshalUnmarshalMessageCertificateRequest13AndVerifyMatch marshals and unmarshals a MessageCertificateRequest13, then verifies that the message before
pkg/protocol/handshake/message_certificate_request_13_test.go:317
↓ 4 callers
Function
newAes128Ccm
( clientCertificateType clientcertificate.Type, id ID, psk bool, cryptoCCMTagLen ciphersuite.CCMTagLen, k
internal/ciphersuite/aes_128_ccm.go:16
↓ 4 callers
Function
simpleReadWrite
(errChan chan error, outChan chan string, conn io.ReadWriter, messageRecvCount *uint64)
e2e/e2e_test.go:67
↓ 4 callers
Function
testPionE2EChaCha20Poly1305
nolint:dupl
e2e/e2e_test.go:435
↓ 4 callers
Function
testPionE2EChaCha20Poly1305RSA
nolint:dupl
e2e/e2e_test.go:480
↓ 4 callers
Function
testPionE2EMTUs
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:623
↓ 4 callers
Function
testPionE2ESimple
Simple DTLS Client/Server can communicate - Assert that you can send messages both ways - Assert that Close() on both ends work - Assert that no Gorou
e2e/e2e_test.go:339
↓ 4 callers
Function
testPionE2ESimpleECDSAClientCert
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:774
↓ 4 callers
Function
testPionE2ESimplePSK
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:526
↓ 4 callers
Function
testPionE2ESimpleRSAClientCert
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:823
↓ 3 callers
Function
Algorithms13
Algorithms13 returns signature algorithms compatible with DTLS 1.3. This. includes DTLS 1.3-specific schemes like RSA-PSS in addition to DTLS 1.2 sche
pkg/crypto/signaturehash/signaturehash_13.go:18
↓ 3 callers
Function
ClientWithOptions
ClientWithOptions establishes a DTLS connection over an existing connection.
conn.go:399
↓ 3 callers
Function
Curves
Curves returns all curves we implement.
pkg/crypto/elliptic/elliptic.go:80
↓ 3 callers
Method
Decrypt
Decrypt decrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/chacha20poly1305.go:89
↓ 3 callers
Method
Decrypt
Decrypt decrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/gcm.go:61
↓ 3 callers
Function
EcdhePSKPreMasterSecret
EcdhePSKPreMasterSecret implements TLS 1.2 Premaster Secret generation given a psk, a keypair and a curve https://datatracker.ietf.org/doc/html/rfc54
pkg/crypto/prf/prf.go:82
↓ 3 callers
Method
Encrypt
Encrypt encrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/chacha20poly1305.go:53
↓ 3 callers
Method
Encrypt
Encrypt encrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/gcm.go:56
↓ 3 callers
Method
HashFunc
HashFunc returns the hashing func for this CipherSuite.
internal/ciphersuite/tls_ecdhe_psk_with_aes_128_cbc_sha256.go:53
↓ 3 callers
Method
HashFunc
HashFunc returns the hashing func for this CipherSuite.
internal/ciphersuite/tls_psk_with_aes_128_cbc_sha256.go:48
↓ 3 callers
Function
IsSupportedVersion
IsSupportedVersion returns true if it's supported by Pion. Only DTLS 1.2 is currently supported. DTLS 1.3 is a work in progress and is currently being
pkg/protocol/version.go:35
↓ 3 callers
Function
IsValidBytes
IsValidBytes returns true if the bytes represent a valid DTLS version as defined in RFC9147 below. Note that this is not the same as whether it's *sup
pkg/protocol/version.go:43
← previous
next →
101–200 of 1,125, ranked by callers