MCPcopy Create free account

hub / github.com/pion/dtls / functions

Functions1,125 in github.com/pion/dtls

↓ 3 callersFunctionLoadCertificate
LoadCertificate Load/read certificate(s) from file.
examples/util/util.go:71
↓ 3 callersFunctionLoadKeyAndCertificate
LoadKeyAndCertificate reads certificates or key from file.
examples/util/util.go:66
↓ 3 callersMethodLocalAddr
LocalAddr implements net.Conn.LocalAddr.
conn.go:1469
↓ 3 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_server_hello.go:38
↓ 3 callersMethodMarshal
Marshal encodes the MessageCertificateRequest13 into its wire format. Wire format: [1 byte] certificate_request_context length [0-255] certific
pkg/protocol/handshake/message_certificate_request_13.go:46
↓ 3 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/pre_shared_key.go:44
↓ 3 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/supported_signature_algorithms.go:26
↓ 3 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/certificate_auth.go:25
↓ 3 callersFunctionMasterSecret
MasterSecret generates a TLS 1.2 MasterSecret.
pkg/crypto/prf/prf.go:198
↓ 3 callersFunctionParseSignatureSchemes
ParseSignatureSchemes translates []tls.SignatureScheme to []signatureHashAlgorithm. It returns default signature scheme list if no SignatureScheme is
pkg/crypto/signaturehash/signaturehash.go:98
↓ 3 callersMethodRead
(p []byte)
pkg/crypto/elliptic/elliptic_test.go:41
↓ 3 callersMethodRemoteAddr
()
resume_test.go:212
↓ 3 callersFunctionServerWithOptions
ServerWithOptions listens for incoming DTLS connections.
conn.go:438
↓ 3 callersMethodUnmarshal
Unmarshal decodes the MessageCertificate13 from its wire format.
pkg/protocol/handshake/message_certificate_13.go:161
↓ 3 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_client_hello.go:82
↓ 3 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_server_hello.go:71
↓ 3 callersMethodUnmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_certificate_request.go:75
↓ 3 callersMethodUnmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/post_handshake_auth.go:40
↓ 3 callersMethodUnmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/use_master_secret.go:39
↓ 3 callersMethodUnmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/psk_key_exchange_modes.go:52
↓ 3 callersMethodUnmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/early_data_indication.go:43
↓ 3 callersFunctionWithInsecureSkipVerify
WithInsecureSkipVerify skips certificate verification. This should only be used for testing.
options.go:363
↓ 3 callersMethodWriteTo
WriteTo writes len(payload) bytes from payload to the specified address.
internal/net/udp/packet_conn.go:317
↓ 3 callersFunctionallCipherSuites
()
cipher_suite.go:224
↓ 3 callersMethodapplyDefaults
applyDefaults applies default values to the config.
options.go:89
↓ 3 callersFunctionbenchmarkBuffer
(b *testing.B, size int64)
internal/net/buffer_test.go:347
↓ 3 callersMethodcbcRound
(mac, data []byte)
pkg/crypto/ccm/ccm.go:103
↓ 3 callersMethodclose
(byUser bool)
conn.go:1421
↓ 3 callersFunctioncreateCertChain
createCertChain creates a certificate chain with a root CA and a leaf certificate signed by the CA. The CA uses the same key type as the leaf to ensur
e2e/e2e_test.go:1255
↓ 3 callersMethodenqueueEncryptedPackets
(packet addrPkt)
conn.go:1008
↓ 3 callersMethodgetCertificate
nolint:cyclop
certificate.go:97
↓ 3 callersMethodgetRemoteEpoch
()
state.go:260
↓ 3 callersFunctionnameToHash
()
pkg/crypto/fingerprint/hash.go:14
↓ 3 callersFunctionnetError
netError translates an error from underlying Conn to corresponding net.Error.
errors.go:279
↓ 3 callersFunctionnewHandshakeFSM
( s *State, cache *handshakeCache, cfg *handshakeConfig, initialFlight flightVal, )
handshaker.go:174
↓ 3 callersMethodnotify
(ctx context.Context, level alert.Level, desc alert.Description)
handshaker.go:146
↓ 3 callersMethodnotify
(ctx context.Context, level alert.Level, desc alert.Description)
conn.go:1241
↓ 3 callersFunctionparseCertificate13Entry
parseCertificate13Entry parses a single certificate entry from the cryptobyte string.
pkg/protocol/handshake/message_certificate_13.go:115
↓ 3 callersFunctionparseCipherSuites
nolint:cyclop
cipher_suite.go:254
↓ 3 callersFunctionselectSignatureScheme13
selectSignatureScheme13 returns most preferred and compatible scheme. It's compatible with all DTLS versions up to and including 1.3.
pkg/crypto/signaturehash/select_13.go:12
↓ 3 callersMethodsessionHash
sessionHash returns the session hash for Extended Master Secret support https://tools.ietf.org/html/draft-ietf-tls-session-hash-06#section-4
handshake_cache.go:153
↓ 3 callersMethodsetLocalEpoch
(epoch uint16)
conn.go:1460
↓ 3 callersMethodsetRemoteEpoch
(epoch uint16)
conn.go:1464
↓ 3 callersMethodsetSRTPProtectionProfile
(profile SRTPProtectionProfile)
state.go:276
↓ 3 callersFunctiontestPionE2ESimpleED25519
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:675
↓ 3 callersFunctiontestPionE2ESimpleED25519ClientCert
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:727
↓ 3 callersFunctiontestPionE2ESimpleRSA
nolint:dupl
e2e/e2e_test.go:386
↓ 3 callersMethodtoConfig
toConfig converts internal dtlsConfig to the exported Config struct. This is for backward compatibility and will be removed when Config is deprecated.
options.go:99
↓ 2 callersFunctionAlgorithms
Algorithms returns all the supported Hash Algorithms.
pkg/crypto/hash/hash.go:125
↓ 2 callersFunctionAlgorithms
Algorithms returns all implemented Signature Algorithms.
pkg/crypto/signature/signature.go:31
↓ 2 callersMethodClose
()
nettest_test.go:26
↓ 2 callersFunctionCompressionMethods
CompressionMethods returns all supported CompressionMethods.
pkg/protocol/compression_method.go:19
↓ 2 callersMethodContentType
()
pkg/protocol/content.go:22
↓ 2 callersFunctionDecodeCompressionMethods
DecodeCompressionMethods the given compression methods.
pkg/protocol/compression_method.go:26
↓ 2 callersMethodDecrypt
Decrypt decrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/ccm.go:66
↓ 2 callersMethodDel
Del clean saved session.
session.go:23
↓ 2 callersFunctionDeriveSecret
DeriveSecret implements RFC 8446 section 7.1. TranscriptHash is defined in RFC 8446 section 4.4.
pkg/crypto/keyschedule/keyschedule.go:87
↓ 2 callersFunctionDoTestResume
nolint:cyclop
resume_test.go:43
↓ 2 callersMethodDone
()
handshaker.go:217
↓ 2 callersFunctionExtendedMasterSecret
ExtendedMasterSecret generates a Extended MasterSecret as defined in https://tools.ietf.org/html/rfc7627
pkg/crypto/prf/prf.go:191
↓ 2 callersFunctionExtractHashFromPSS
ExtractHashFromPSS extracts the hash algorithm from an RSA-PSS SignatureScheme value. This handles TLS 1.3 PSS schemes. Returns None if the scheme is
pkg/crypto/hash/hash.go:141
↓ 2 callersFunctionFingerprint
Fingerprint creates a fingerprint for a certificate using the specified hash algorithm.
pkg/crypto/fingerprint/fingerprint.go:20
↓ 2 callersFunctionFromCertificate
FromCertificate maps x509.SignatureAlgorithm to the corresponding Algorithm type.
pkg/crypto/signaturehash/signaturehash.go:125
↓ 2 callersMethodGet
(key []byte)
conn_test.go:2935
↓ 2 callersMethodGetPSSHash
GetPSSHash returns the hash algorithm associated with an RSA-PSS signature scheme. Returns hash.None if the algorithm is not an RSA-PSS scheme.
pkg/crypto/signature/signature.go:72
↓ 2 callersMethodHashFunc
HashFunc returns the hashing func for this CipherSuite.
internal/ciphersuite/tls_ecdhe_ecdsa_with_aes_128_gcm_sha256.go:48
↓ 2 callersFunctionHkdfExtract
HkdfExtract implements RFC 5869 section 2.2.
pkg/crypto/keyschedule/keyschedule.go:28
↓ 2 callersMethodIsUnsupported
IsUnsupported returns true if the algorithm is a signature scheme that is not supported by pion/dtls.
pkg/crypto/signature/signature.go:60
↓ 2 callersFunctionIsValidVersion
IsValidVersion 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 *s
pkg/protocol/version.go:51
↓ 2 callersMethodLocalAddr
LocalAddr implements net.PacketConn.LocalAddr.
internal/net/udp/packet_conn.go:404
↓ 2 callersMethodMarshal
Marshal encodes a DTLS InnerPlaintext to binary.
pkg/protocol/recordlayer/inner_plaintext.go:21
↓ 2 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_client_key_exchange.go:33
↓ 2 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_certificate_verify.go:33
↓ 2 callersMethodMarshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_certificate_request.go:39
↓ 2 callersMethodMarshal
Marshal encodes a handshake into a binary message.
pkg/protocol/handshake/handshake.go:88
↓ 2 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/use_srtp.go:30
↓ 2 callersMethodMarshal
Marshal encodes the extension.
pkg/protocol/extension/early_data_indication.go:24
↓ 2 callersMethodMaxLength
()
pkg/crypto/ccm/ccm.go:75
↓ 2 callersFunctionNewTLSEcdheEcdsaWithAes128Ccm
NewTLSEcdheEcdsaWithAes128Ccm constructs a TLS_ECDHE_ECDSA_WITH_AES_128_CCM Cipher.
internal/ciphersuite/tls_ecdhe_ecdsa_with_aes_128_ccm.go:12
↓ 2 callersFunctionNewTLSEcdheEcdsaWithAes128Ccm8
NewTLSEcdheEcdsaWithAes128Ccm8 creates a new TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 CipherSuite.
internal/ciphersuite/tls_ecdhe_ecdsa_with_aes_128_ccm8.go:12
↓ 2 callersFunctionNewTLSPskWithAes128Ccm
NewTLSPskWithAes128Ccm returns the TLS_PSK_WITH_AES_128_CCM CipherSuite.
internal/ciphersuite/tls_psk_with_aes_128_ccm.go:12
↓ 2 callersFunctionNewTLSPskWithAes128Ccm8
NewTLSPskWithAes128Ccm8 returns the TLS_PSK_WITH_AES_128_CCM_8 CipherSuite.
internal/ciphersuite/tls_psk_with_aes_128_ccm8.go:12
↓ 2 callersFunctionNewTLSPskWithAes256Ccm8
NewTLSPskWithAes256Ccm8 returns the TLS_PSK_WITH_AES_256_CCM_8 CipherSuite.
internal/ciphersuite/tls_psk_with_aes_256_ccm8.go:12
↓ 2 callersMethodOverhead
()
pkg/crypto/ccm/ccm.go:74
↓ 2 callersFunctionPSKPreMasterSecret
PSKPreMasterSecret generates the PSK Premaster Secret The premaster secret is formed as follows: if the PSK is N octets long, concatenate a uint16 wit
pkg/crypto/prf/prf.go:69
↓ 2 callersFunctionPacketConnFromConn
PacketConnFromConn converts a net.Conn into a net.PacketConn.
pkg/net/net.go:65
↓ 2 callersMethodPopulate
Populate fills the handshakeRandom with random values may be called multiple times.
pkg/protocol/handshake/random.go:44
↓ 2 callersFunctionPutBigEndianUint48
PutBigEndianUint48 encodes a uint64 and places into out.
internal/util/util.go:31
↓ 2 callersMethodRead
(p []byte)
internal/net/udp/packet_conn_test.go:54
↓ 2 callersMethodRemoteSRTPMasterKeyIdentifier
RemoteSRTPMasterKeyIdentifier returns the MasterKeyIdentifier value from the use_srtp.
conn.go:557
↓ 2 callersFunctionResume
Resume imports an already established dtls connection using a specific dtls state. Deprecated: Use ResumeWithOptions instead.
resume.go:13
↓ 2 callersFunctionSelectSignatureScheme
SelectSignatureScheme returns most preferred and compatible scheme for DTLS <= 1.2.
pkg/crypto/signaturehash/signaturehash.go:67
↓ 2 callersMethodSelectedSRTPProtectionProfile
SelectedSRTPProtectionProfile returns the selected SRTPProtectionProfile.
conn.go:547
↓ 2 callersMethodSet
(key []byte, s Session)
conn_test.go:2928
↓ 2 callersMethodSetDeadline
SetDeadline implements net.Conn.SetDeadline.
conn.go:1493
↓ 2 callersMethodSetIV
([]byte)
pkg/crypto/ciphersuite/cbc.go:24
↓ 2 callersMethodType
()
pkg/protocol/handshake/handshake.go:66
↓ 2 callersMethodTypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/oid_filters.go:23
↓ 2 callersMethodTypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/connection_id.go:22
↓ 2 callersMethodTypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/pre_shared_key.go:39
← previousnext →201–300 of 1,125, ranked by callers