MCPcopy Create free account

hub / github.com/pion/dtls / functions

Functions1,125 in github.com/pion/dtls

↓ 7 callersMethodWrite
(p []byte)
internal/net/udp/packet_conn_test.go:60
↓ 7 callersMethodisHandshakeCompletedSuccessfully
()
conn.go:1275
↓ 7 callersFunctionnewHandshakeCache
()
handshake_cache.go:33
↓ 7 callersFunctionpipeMemory
()
conn_test.go:223
↓ 7 callersMethodsetLocalConnectionID
(v []byte)
state.go:296
↓ 6 callersFunctionBigEndianUint24
BigEndianUint24 returns the value of a big endian uint24.
internal/util/util.go:12
↓ 6 callersMethodEncrypt
(pkt *recordlayer.RecordLayer, raw []byte)
pkg/crypto/ciphersuite/bench_helpers_test.go:16
↓ 6 callersFunctionGenerateKeypair
GenerateKeypair generates a keypair for the given Curve.
pkg/crypto/elliptic/elliptic.go:89
↓ 6 callersMethodHas
Has check if keyExchangeAlgorithm is supported.
internal/ciphersuite/types/key_exchange_algorithm.go:18
↓ 6 callersMethodInit
Called when keying material has been generated, should initialize the internal cipher
cipher_suite.go:104
↓ 6 callersMethodKeyExchangeAlgorithm
KeyExchangeAlgorithm controls what exchange algorithm is using during the handshake
cipher_suite.go:97
↓ 6 callersMethodListen
Listen creates a new listener based on the ListenConfig. nolint:contextcheck
internal/net/udp/packet_conn.go:168
↓ 6 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/oid_filters.go:28
↓ 6 callersFunctionNewCCM
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 callersFunctionNewCCM
NewCCM creates a DTLS GCM Cipher.
pkg/crypto/ciphersuite/ccm.go:29
↓ 6 callersMethodUnmarshal
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 callersFunctionbenchmarkBufferWR
(b *testing.B, size int64, write bool, grow int)
internal/net/buffer_test.go:282
↓ 6 callersFunctioncipherSuiteForID
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 callersFunctioncipherSuiteIDs
(cipherSuites []CipherSuite)
cipher_suite.go:244
↓ 6 callersFunctionnewFragmentBuffer
()
fragment_buffer.go:40
↓ 6 callersFunctionpipe
()
internal/net/udp/packet_conn_test.go:280
↓ 6 callersFunctionvalidateConfig
(config *Config)
config.go:282
↓ 6 callersFunctionvalueKeyMessage
(clientRandom, serverRandom, publicKey []byte, namedCurve elliptic.Curve)
crypto.go:29
↓ 6 callersMethodwriteKeyLog
(label string, clientRandom, secret []byte)
handshaker.go:154
↓ 5 callersFunctionALPNProtocolSelection
ALPNProtocolSelection negotiates a shared protocol according to #3.2 of rfc7301.
pkg/protocol/extension/alpn.go:79
↓ 5 callersMethodChat
Chat starts the stdin readloop to dispatch messages to the hub.
examples/util/hub.go:74
↓ 5 callersFunctionContentAwareUnpackDatagram
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 callersMethodExportKeyingMaterial
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 callersMethodGet
Get fetch a session.
session.go:21
↓ 5 callersFunctionHashFromString
HashFromString allows looking up a hash algorithm by it's string representation.
pkg/crypto/fingerprint/hash.go:26
↓ 5 callersMethodIsInitialized
()
cipher_suite.go:105
↓ 5 callersFunctionMarshal
Marshal many extensions at once.
pkg/protocol/extension/extension.go:123
↓ 5 callersMethodMarshal
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 callersFunctionNewHub
NewHub builds a new hub.
examples/util/hub.go:22
↓ 5 callersFunctionPHash
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 callersMethodRegister
Register adds a new conn to the Hub.
examples/util/hub.go:27
↓ 5 callersMethodUnmarshal
Unmarshal decodes a handshake from a binary message.
pkg/protocol/handshake/handshake.go:112
↓ 5 callersMethodUnmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/use_srtp.go:63
↓ 5 callersFunctionWithClientAuth
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 callersFunctionWithExtendedMasterSecret
WithExtendedMasterSecret sets the extended master secret policy. Returns an error if the type is invalid.
options.go:306
↓ 5 callersFunctionWithFlightInterval
WithFlightInterval sets the flight interval for handshake messages. Returns an error if the interval is not positive.
options.go:319
↓ 5 callersFunctionWithMTU
WithMTU sets the maximum transmission unit. Returns an error if the MTU is not positive.
options.go:435
↓ 5 callersFunctiongenerateAEADAdditionalDataCID
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 callersFunctiongetConfig
()
internal/net/udp/packet_conn_test.go:327
↓ 5 callersMethodgetLocalEpoch
()
state.go:268
↓ 5 callersFunctionmarshalUnmarshalMessageCertificate13AndVerifyMatch
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 callersMethodpop
()
fragment_buffer.go:111
↓ 5 callersFunctionsendClientHello
( cookie []byte, ca net.Conn, sequenceNumber uint64, extensions []extension.Extension, cipherSuiteIDsOver
conn_test.go:317
↓ 4 callersFunctionAlgorithms
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 callersFunctionChat
Chat simulates a simple text chat session over the connection.
examples/util/util.go:28
↓ 4 callersMethodErr
()
conn.go:659
↓ 4 callersMethodIsFatalOrCloseNotify
()
errors.go:265
↓ 4 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_client_hello.go:40
↓ 4 callersMethodMarshal
Marshal encodes the extension without carrying negotiation state.
pkg/protocol/extension/supported_versions.go:24
↓ 4 callersMethodOpen
(dst, nonce, ciphertext, adata []byte)
pkg/crypto/ccm/ccm.go:224
↓ 4 callersMethodSeal
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 callersMethodSetReadDeadline
SetReadDeadline sets the read deadline for the buffer.
internal/net/buffer.go:238
↓ 4 callersMethodTypeValue
()
pkg/protocol/extension/key_share.go:24
↓ 4 callersMethodTypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/signature_algorithms_cert.go:25
↓ 4 callersMethodUnmarshal
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 callersMethodUnmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/certificate_auth.go:50
↓ 4 callersMethodUnmarshalFixed
UnmarshalFixed populates the message from encoded data.
pkg/protocol/handshake/random.go:37
↓ 4 callersFunctionVerifyDataClient
VerifyDataClient is caled on the Client Side to either verify or generate the VerifyData message.
pkg/crypto/prf/prf.go:257
↓ 4 callersFunctionVerifyDataServer
VerifyDataServer is caled on the Server Side to either verify or generate the VerifyData message.
pkg/crypto/prf/prf.go:262
↓ 4 callersFunctionWithCipherSuites
WithCipherSuites sets the supported cipher suites. For functional options, an explicitly empty slice is not allowed.
options.go:229
↓ 4 callersFunctionWithEllipticCurves
WithEllipticCurves sets the elliptic curves. For functional options, an explicitly empty slice is not allowed.
options.go:493
↓ 4 callersFunctionWithReplayProtectionWindow
WithReplayProtectionWindow sets the replay protection window size. Returns an error if the window size is negative.
options.go:448
↓ 4 callersFunctionWithSRTPProtectionProfiles
WithSRTPProtectionProfiles sets the SRTP protection profiles. For functional options, an explicitly empty slice is not allowed.
options.go:284
↓ 4 callersFunctionWithSignatureSchemes
WithSignatureSchemes sets the signature schemes. For functional options, an explicitly empty slice is not allowed.
options.go:255
↓ 4 callersFunctionWithSupportedProtocols
WithSupportedProtocols sets the supported application protocols for ALPN. For functional options, an explicitly empty slice is not allowed.
options.go:480
↓ 4 callersFunctionbenchmarkDecrypt
benchmarkDecrypt benchmarks a cipher's decryption with various payload sizes.
pkg/crypto/ciphersuite/bench_helpers_test.go:65
↓ 4 callersFunctionbenchmarkEncrypt
benchmarkEncrypt benchmarks a cipher's encryption with various payload sizes.
pkg/crypto/ciphersuite/bench_helpers_test.go:21
↓ 4 callersMethodclone
nolint:err113
state.go:97
↓ 4 callersFunctioncreateConn
createConn creates a new DTLS connection. Caller is responsible for validating the config before calling this function. nolint:cyclop
conn.go:107
↓ 4 callersFunctiondefaultCipherSuites
CipherSuites we support in order of preference.
cipher_suite.go:211
↓ 4 callersFunctiongenerateAEADAdditionalData
(h *recordlayer.Header, payloadLen int)
pkg/crypto/ciphersuite/ciphersuite.go:152
↓ 4 callersMethodinitCipherSuite
()
state.go:184
↓ 4 callersMethodisConnectionClosed
()
conn.go:1451
↓ 4 callersFunctionmarshalUnmarshalMessageCertificateRequest13AndVerifyMatch
marshalUnmarshalMessageCertificateRequest13AndVerifyMatch marshals and unmarshals a MessageCertificateRequest13, then verifies that the message before
pkg/protocol/handshake/message_certificate_request_13_test.go:317
↓ 4 callersFunctionnewAes128Ccm
( clientCertificateType clientcertificate.Type, id ID, psk bool, cryptoCCMTagLen ciphersuite.CCMTagLen, k
internal/ciphersuite/aes_128_ccm.go:16
↓ 4 callersFunctionsimpleReadWrite
(errChan chan error, outChan chan string, conn io.ReadWriter, messageRecvCount *uint64)
e2e/e2e_test.go:67
↓ 4 callersFunctiontestPionE2EChaCha20Poly1305
nolint:dupl
e2e/e2e_test.go:435
↓ 4 callersFunctiontestPionE2EChaCha20Poly1305RSA
nolint:dupl
e2e/e2e_test.go:480
↓ 4 callersFunctiontestPionE2EMTUs
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:623
↓ 4 callersFunctiontestPionE2ESimple
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 callersFunctiontestPionE2ESimpleECDSAClientCert
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:774
↓ 4 callersFunctiontestPionE2ESimplePSK
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:526
↓ 4 callersFunctiontestPionE2ESimpleRSAClientCert
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:823
↓ 3 callersFunctionAlgorithms13
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 callersFunctionClientWithOptions
ClientWithOptions establishes a DTLS connection over an existing connection.
conn.go:399
↓ 3 callersFunctionCurves
Curves returns all curves we implement.
pkg/crypto/elliptic/elliptic.go:80
↓ 3 callersMethodDecrypt
Decrypt decrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/chacha20poly1305.go:89
↓ 3 callersMethodDecrypt
Decrypt decrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/gcm.go:61
↓ 3 callersFunctionEcdhePSKPreMasterSecret
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 callersMethodEncrypt
Encrypt encrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/chacha20poly1305.go:53
↓ 3 callersMethodEncrypt
Encrypt encrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/gcm.go:56
↓ 3 callersMethodHashFunc
HashFunc returns the hashing func for this CipherSuite.
internal/ciphersuite/tls_ecdhe_psk_with_aes_128_cbc_sha256.go:53
↓ 3 callersMethodHashFunc
HashFunc returns the hashing func for this CipherSuite.
internal/ciphersuite/tls_psk_with_aes_128_cbc_sha256.go:48
↓ 3 callersFunctionIsSupportedVersion
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 callersFunctionIsValidBytes
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
← previousnext →101–200 of 1,125, ranked by callers