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
↓ 3 callers
Function
LoadCertificate
LoadCertificate Load/read certificate(s) from file.
examples/util/util.go:71
↓ 3 callers
Function
LoadKeyAndCertificate
LoadKeyAndCertificate reads certificates or key from file.
examples/util/util.go:66
↓ 3 callers
Method
LocalAddr
LocalAddr implements net.Conn.LocalAddr.
conn.go:1469
↓ 3 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_server_hello.go:38
↓ 3 callers
Method
Marshal
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 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/pre_shared_key.go:44
↓ 3 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/supported_signature_algorithms.go:26
↓ 3 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/certificate_auth.go:25
↓ 3 callers
Function
MasterSecret
MasterSecret generates a TLS 1.2 MasterSecret.
pkg/crypto/prf/prf.go:198
↓ 3 callers
Function
ParseSignatureSchemes
ParseSignatureSchemes translates []tls.SignatureScheme to []signatureHashAlgorithm. It returns default signature scheme list if no SignatureScheme is
pkg/crypto/signaturehash/signaturehash.go:98
↓ 3 callers
Method
Read
(p []byte)
pkg/crypto/elliptic/elliptic_test.go:41
↓ 3 callers
Method
RemoteAddr
()
resume_test.go:212
↓ 3 callers
Function
ServerWithOptions
ServerWithOptions listens for incoming DTLS connections.
conn.go:438
↓ 3 callers
Method
Unmarshal
Unmarshal decodes the MessageCertificate13 from its wire format.
pkg/protocol/handshake/message_certificate_13.go:161
↓ 3 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_client_hello.go:82
↓ 3 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_server_hello.go:71
↓ 3 callers
Method
Unmarshal
Unmarshal populates the message from encoded data.
pkg/protocol/handshake/message_certificate_request.go:75
↓ 3 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/post_handshake_auth.go:40
↓ 3 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/use_master_secret.go:39
↓ 3 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/psk_key_exchange_modes.go:52
↓ 3 callers
Method
Unmarshal
Unmarshal populates the extension from encoded data.
pkg/protocol/extension/early_data_indication.go:43
↓ 3 callers
Function
WithInsecureSkipVerify
WithInsecureSkipVerify skips certificate verification. This should only be used for testing.
options.go:363
↓ 3 callers
Method
WriteTo
WriteTo writes len(payload) bytes from payload to the specified address.
internal/net/udp/packet_conn.go:317
↓ 3 callers
Function
allCipherSuites
()
cipher_suite.go:224
↓ 3 callers
Method
applyDefaults
applyDefaults applies default values to the config.
options.go:89
↓ 3 callers
Function
benchmarkBuffer
(b *testing.B, size int64)
internal/net/buffer_test.go:347
↓ 3 callers
Method
cbcRound
(mac, data []byte)
pkg/crypto/ccm/ccm.go:103
↓ 3 callers
Method
close
(byUser bool)
conn.go:1421
↓ 3 callers
Function
createCertChain
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 callers
Method
enqueueEncryptedPackets
(packet addrPkt)
conn.go:1008
↓ 3 callers
Method
getCertificate
nolint:cyclop
certificate.go:97
↓ 3 callers
Method
getRemoteEpoch
()
state.go:260
↓ 3 callers
Function
nameToHash
()
pkg/crypto/fingerprint/hash.go:14
↓ 3 callers
Function
netError
netError translates an error from underlying Conn to corresponding net.Error.
errors.go:279
↓ 3 callers
Function
newHandshakeFSM
( s *State, cache *handshakeCache, cfg *handshakeConfig, initialFlight flightVal, )
handshaker.go:174
↓ 3 callers
Method
notify
(ctx context.Context, level alert.Level, desc alert.Description)
handshaker.go:146
↓ 3 callers
Method
notify
(ctx context.Context, level alert.Level, desc alert.Description)
conn.go:1241
↓ 3 callers
Function
parseCertificate13Entry
parseCertificate13Entry parses a single certificate entry from the cryptobyte string.
pkg/protocol/handshake/message_certificate_13.go:115
↓ 3 callers
Function
parseCipherSuites
nolint:cyclop
cipher_suite.go:254
↓ 3 callers
Function
selectSignatureScheme13
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 callers
Method
sessionHash
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 callers
Method
setLocalEpoch
(epoch uint16)
conn.go:1460
↓ 3 callers
Method
setRemoteEpoch
(epoch uint16)
conn.go:1464
↓ 3 callers
Method
setSRTPProtectionProfile
(profile SRTPProtectionProfile)
state.go:276
↓ 3 callers
Function
testPionE2ESimpleED25519
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:675
↓ 3 callers
Function
testPionE2ESimpleED25519ClientCert
(t *testing.T, server, client func(*comm), opts ...dtlsTestOpts)
e2e/e2e_test.go:727
↓ 3 callers
Function
testPionE2ESimpleRSA
nolint:dupl
e2e/e2e_test.go:386
↓ 3 callers
Method
toConfig
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 callers
Function
Algorithms
Algorithms returns all the supported Hash Algorithms.
pkg/crypto/hash/hash.go:125
↓ 2 callers
Function
Algorithms
Algorithms returns all implemented Signature Algorithms.
pkg/crypto/signature/signature.go:31
↓ 2 callers
Method
Close
()
nettest_test.go:26
↓ 2 callers
Function
CompressionMethods
CompressionMethods returns all supported CompressionMethods.
pkg/protocol/compression_method.go:19
↓ 2 callers
Method
ContentType
()
pkg/protocol/content.go:22
↓ 2 callers
Function
DecodeCompressionMethods
DecodeCompressionMethods the given compression methods.
pkg/protocol/compression_method.go:26
↓ 2 callers
Method
Decrypt
Decrypt decrypts a DTLS RecordLayer message.
pkg/crypto/ciphersuite/ccm.go:66
↓ 2 callers
Method
Del
Del clean saved session.
session.go:23
↓ 2 callers
Function
DeriveSecret
DeriveSecret implements RFC 8446 section 7.1. TranscriptHash is defined in RFC 8446 section 4.4.
pkg/crypto/keyschedule/keyschedule.go:87
↓ 2 callers
Function
DoTestResume
nolint:cyclop
resume_test.go:43
↓ 2 callers
Method
Done
()
handshaker.go:217
↓ 2 callers
Function
ExtendedMasterSecret
ExtendedMasterSecret generates a Extended MasterSecret as defined in https://tools.ietf.org/html/rfc7627
pkg/crypto/prf/prf.go:191
↓ 2 callers
Function
ExtractHashFromPSS
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 callers
Function
Fingerprint
Fingerprint creates a fingerprint for a certificate using the specified hash algorithm.
pkg/crypto/fingerprint/fingerprint.go:20
↓ 2 callers
Function
FromCertificate
FromCertificate maps x509.SignatureAlgorithm to the corresponding Algorithm type.
pkg/crypto/signaturehash/signaturehash.go:125
↓ 2 callers
Method
Get
(key []byte)
conn_test.go:2935
↓ 2 callers
Method
GetPSSHash
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 callers
Method
HashFunc
HashFunc returns the hashing func for this CipherSuite.
internal/ciphersuite/tls_ecdhe_ecdsa_with_aes_128_gcm_sha256.go:48
↓ 2 callers
Function
HkdfExtract
HkdfExtract implements RFC 5869 section 2.2.
pkg/crypto/keyschedule/keyschedule.go:28
↓ 2 callers
Method
IsUnsupported
IsUnsupported returns true if the algorithm is a signature scheme that is not supported by pion/dtls.
pkg/crypto/signature/signature.go:60
↓ 2 callers
Function
IsValidVersion
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 callers
Method
LocalAddr
LocalAddr implements net.PacketConn.LocalAddr.
internal/net/udp/packet_conn.go:404
↓ 2 callers
Method
Marshal
Marshal encodes a DTLS InnerPlaintext to binary.
pkg/protocol/recordlayer/inner_plaintext.go:21
↓ 2 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_client_key_exchange.go:33
↓ 2 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_certificate_verify.go:33
↓ 2 callers
Method
Marshal
Marshal encodes the Handshake.
pkg/protocol/handshake/message_certificate_request.go:39
↓ 2 callers
Method
Marshal
Marshal encodes a handshake into a binary message.
pkg/protocol/handshake/handshake.go:88
↓ 2 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/use_srtp.go:30
↓ 2 callers
Method
Marshal
Marshal encodes the extension.
pkg/protocol/extension/early_data_indication.go:24
↓ 2 callers
Method
MaxLength
()
pkg/crypto/ccm/ccm.go:75
↓ 2 callers
Function
NewTLSEcdheEcdsaWithAes128Ccm
NewTLSEcdheEcdsaWithAes128Ccm constructs a TLS_ECDHE_ECDSA_WITH_AES_128_CCM Cipher.
internal/ciphersuite/tls_ecdhe_ecdsa_with_aes_128_ccm.go:12
↓ 2 callers
Function
NewTLSEcdheEcdsaWithAes128Ccm8
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 callers
Function
NewTLSPskWithAes128Ccm
NewTLSPskWithAes128Ccm returns the TLS_PSK_WITH_AES_128_CCM CipherSuite.
internal/ciphersuite/tls_psk_with_aes_128_ccm.go:12
↓ 2 callers
Function
NewTLSPskWithAes128Ccm8
NewTLSPskWithAes128Ccm8 returns the TLS_PSK_WITH_AES_128_CCM_8 CipherSuite.
internal/ciphersuite/tls_psk_with_aes_128_ccm8.go:12
↓ 2 callers
Function
NewTLSPskWithAes256Ccm8
NewTLSPskWithAes256Ccm8 returns the TLS_PSK_WITH_AES_256_CCM_8 CipherSuite.
internal/ciphersuite/tls_psk_with_aes_256_ccm8.go:12
↓ 2 callers
Method
Overhead
()
pkg/crypto/ccm/ccm.go:74
↓ 2 callers
Function
PSKPreMasterSecret
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 callers
Function
PacketConnFromConn
PacketConnFromConn converts a net.Conn into a net.PacketConn.
pkg/net/net.go:65
↓ 2 callers
Method
Populate
Populate fills the handshakeRandom with random values may be called multiple times.
pkg/protocol/handshake/random.go:44
↓ 2 callers
Function
PutBigEndianUint48
PutBigEndianUint48 encodes a uint64 and places into out.
internal/util/util.go:31
↓ 2 callers
Method
Read
(p []byte)
internal/net/udp/packet_conn_test.go:54
↓ 2 callers
Method
RemoteSRTPMasterKeyIdentifier
RemoteSRTPMasterKeyIdentifier returns the MasterKeyIdentifier value from the use_srtp.
conn.go:557
↓ 2 callers
Function
Resume
Resume imports an already established dtls connection using a specific dtls state. Deprecated: Use ResumeWithOptions instead.
resume.go:13
↓ 2 callers
Function
SelectSignatureScheme
SelectSignatureScheme returns most preferred and compatible scheme for DTLS <= 1.2.
pkg/crypto/signaturehash/signaturehash.go:67
↓ 2 callers
Method
SelectedSRTPProtectionProfile
SelectedSRTPProtectionProfile returns the selected SRTPProtectionProfile.
conn.go:547
↓ 2 callers
Method
Set
(key []byte, s Session)
conn_test.go:2928
↓ 2 callers
Method
SetDeadline
SetDeadline implements net.Conn.SetDeadline.
conn.go:1493
↓ 2 callers
Method
SetIV
([]byte)
pkg/crypto/ciphersuite/cbc.go:24
↓ 2 callers
Method
Type
()
pkg/protocol/handshake/handshake.go:66
↓ 2 callers
Method
TypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/oid_filters.go:23
↓ 2 callers
Method
TypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/connection_id.go:22
↓ 2 callers
Method
TypeValue
TypeValue returns the extension TypeValue.
pkg/protocol/extension/pre_shared_key.go:39
← previous
next →
201–300 of 1,125, ranked by callers