MCPcopy Index your code

hub / github.com/cloudflare/tls-tris / functions

Functions532 in github.com/cloudflare/tls-tris

↓ 1 callersFunctioncanDelegate
canDelegate returns true if a certificate can be used for delegated credentials.
subcerts.go:57
↓ 1 callersMethodcheckForResumption
checkForResumption reports whether we should perform resumption on this connection.
handshake_server.go:393
↓ 1 callersMethodcheckPSK
checkPSK tries to resume using a PSK, returning true (and updating the early secret in the key schedule) if the PSK was used and false otherwise.
13.go:648
↓ 1 callersFunctionclientSessionCacheKey
clientSessionCacheKey returns a key used to cache sessionTickets that could be used to resume previously negotiated TLS sessions with a server.
handshake_client.go:961
↓ 1 callersMethodconnFromCommand
connFromCommand starts the reference server process, connects to it and returns a recordingConn for the connection. The stdin return value is an opens
handshake_client_test.go:150
↓ 1 callersMethodconnFromCommand
connFromCommand starts opens a listening socket and starts the reference client to connect to it. It returns a recordingConn that wraps the resulting
handshake_server_test.go:507
↓ 1 callersFunctiondcLoadTestData
Parses the input PEM block containing the test DCs.
subcerts_test.go:122
↓ 1 callersMethoddecrypt
decrypt checks and strips the mac and decrypts the data in b. Returns a success boolean, the number of bytes to skip from the start of the record in o
conn.go:326
↓ 1 callersFunctiondefaultCipherSuites
()
common.go:1115
↓ 1 callersFunctiondefaultTLS13CipherSuites
()
common.go:1120
↓ 1 callersMethoddoFullHandshake
()
handshake_client.go:461
↓ 1 callersMethoddoFullHandshake
()
handshake_server.go:475
↓ 1 callersMethoddoResumeHandshake
()
handshake_server.go:446
↓ 1 callersMethoddoTLS13Handshake
()
13.go:185
↓ 1 callersMethoddoTLS13Handshake
()
13.go:970
↓ 1 callersMethodencrypt
encrypt encrypts and macs the data in b.
conn.go:456
↓ 1 callersFunctioneqCurveIDs
(x, y []CurveID)
handshake_messages.go:2642
↓ 1 callersFunctioneqKeyShares
(x, y []keyShare)
handshake_messages.go:2690
↓ 1 callersMethodequal
(interface{})
handshake_messages_test.go:39
↓ 1 callersFunctionextractPaddingSSL30
extractPaddingSSL30 is a replacement for extractPadding in the case that the protocol version is SSLv3. In this version, the contents of the padding a
conn.go:300
↓ 1 callersFunctionfindExtension
(data []byte, extensionType uint16)
handshake_messages.go:2705
↓ 1 callersMethodgenerateClientKeyExchange
(*Config, *clientHelloMsg, crypto.PublicKey)
cipher_suites.go:37
↓ 1 callersMethodgenerateServerKeyExchange
On the server side, the first two methods are called in order. In the case that the key agreement protocol doesn't use a ServerKeyExchange message, ge
cipher_suites.go:29
↓ 1 callersMethodgetCertificate13
(certReq *certificateRequestMsg13)
13.go:889
↓ 1 callersFunctiongetCredentialLen
getCredentialLen returns the number of bytes comprising the serialized credential that starts at the beginning of the input slice. It returns an error
subcerts.go:201
↓ 1 callersFunctiongetHash
getHash maps the SignatureScheme to its corresponding hash function. TODO(any) This function overlaps with hashForSignatureScheme in 13.go.
subcerts.go:355
↓ 1 callersMethodgetLabel
(secretLabel secretLabel)
13.go:138
↓ 1 callersFunctiongetUint24
TODO(kk): Use variable length encoding?
common.go:1231
↓ 1 callersMethodhandlePostHandshake
Process Handshake messages after the handshake has completed. c.in.Mutex <= L
conn.go:1278
↓ 1 callersMethodhandleRenegotiation
handleRenegotiation processes a HelloRequest handshake message. c.in.Mutex <= L
conn.go:1301
↓ 1 callersMethodhandshake
Does the handshake, either a full one or resumes old session. Requires hs.c, hs.hello, and, optionally, hs.session to be set.
handshake_client.go:225
↓ 1 callersFunctionhasOverlappingCipherSuites
(cs1, cs2 []uint16)
common.go:808
↓ 1 callersFunctionhashForSignatureScheme
hashForSignatureScheme returns the Hash used by a SignatureScheme which is supported by selectTLS13SignatureScheme.
13.go:571
↓ 1 callersFunctionhkdfExpand
(hash crypto.Hash, prk, info []byte, l int)
hkdf.go:21
↓ 1 callersFunctionhkdfExtract
(hash crypto.Hash, secret, salt []byte)
hkdf.go:48
↓ 1 callersFunctionhostnameInSNI
hostnameInSNI converts name into an appropriate hostname for SNI. Literal IP addresses and absolute FQDNs are not permitted as SNI values. See https:/
handshake_client.go:987
↓ 1 callersMethodinvalidTTL
invalidTTL returns true if the credential's validity period is longer than the maximum permitted. This is defined by the certificate's notBefore field
subcerts.go:109
↓ 1 callersMethodisExpired
isExpired returns true if the credential has expired. The end of the validity interval is defined as the delegator certificate's notBefore field (`sta
subcerts.go:101
↓ 1 callersFunctionisSupportedSignatureAlgorithm
(sigAlg SignatureScheme, supportedSignatureAlgorithms []SignatureScheme)
common.go:1206
↓ 1 callersFunctionisTimeoutError
(err error)
tls_test.go:201
↓ 1 callersFunctionlatency
(b *testing.B, bps int, dynamicRecordSizingDisabled bool)
tls_test.go:855
↓ 1 callersMethodloadData
()
handshake_client_test.go:270
↓ 1 callersMethodloadData
()
handshake_server_test.go:567
↓ 1 callersFunctionlookupTLSHash
lookupTLSHash looks up the corresponding crypto.Hash for a given hash from a TLS SignatureScheme.
prf.go:189
↓ 1 callersFunctionmakeClientHello
(config *Config)
handshake_client.go:39
↓ 1 callersMethodmarshal
()
handshake_messages.go:2487
↓ 1 callersMethodmarshal
()
ticket.go:74
↓ 1 callersMethodmarshal
()
ticket.go:187
↓ 1 callersMethodmarshalSubjectPublicKeyInfo
marshalSubjectPublicKeyInfo returns a DER encoded SubjectPublicKeyInfo structure (as defined in the X.509 standard) for the credential.
subcerts.go:115
↓ 1 callersMethodmaxPayloadSizeForWrite
maxPayloadSizeForWrite returns the maximum TLS payload size to use for the next application data record. There is the following trade-off: - For late
conn.go:955
↓ 1 callersFunctionmd5SHA1Hash
md5SHA1Hash implements TLS 1.0's hybrid hash function which consists of the concatenation of an MD5 and SHA1 hash.
key_agreement.go:98
↓ 1 callersFunctionmutualCipherSuite
mutualCipherSuite returns a cipherSuite given a list of supported ciphersuites and the id requested by the peer.
cipher_suites.go:376
↓ 1 callersMethodmutualVersion
mutualVersion returns the protocol version to use given the advertised version of the peer using the legacy non-extension methods.
common.go:861
↓ 1 callersFunctionnewConstantTimeHash
(h func() hash.Hash)
cipher_suites.go:326
↓ 1 callersFunctionnewOpensslOutputSink
()
handshake_client_test.go:75
↓ 1 callersFunctionpadToBlockSize
padToBlockSize calculates the needed padding block, if any, for a payload. On exit, prefix aliases payload and extends to the end of the last full blo
conn.go:443
↓ 1 callersFunctionparsePrivateKey
Attempt to parse the given private key DER block. OpenSSL 0.9.8 generates PKCS#1 private keys by default, while OpenSSL 1.0.0 generates PKCS#8 keys. O
tls.go:279
↓ 1 callersFunctionpeekAlert
peekAlert looks at a message to spot an unencrypted alert. It must be called before decryption to avoid a side channel, and its result must only be us
conn.go:885
↓ 1 callersFunctionpemBlockForKey
(priv interface{})
generate_cert.go:50
↓ 1 callersMethodpickCipherSuite
()
handshake_client.go:346
↓ 1 callersMethodpickTLSVersion
()
handshake_client.go:332
↓ 1 callersFunctionprepareDelegation
prepareDelegation returns a hash of the message that the delegator is to sign. The inputs are the credential (`cred`), the DER-encoded delegator certi
subcerts.go:372
↓ 1 callersMethodprocessClientKeyExchange
(*Config, crypto.PrivateKey, *clientKeyExchangeMsg, uint16)
cipher_suites.go:30
↓ 1 callersMethodprocessDelegatedCredentialFromServer
processDelegatedCredentialFromServer unmarshals the delegated credential offered by the server (if present) and validates it using the peer certificat
handshake_client.go:421
↓ 1 callersMethodprocessEncryptedExtensions
(ee *encryptedExtensionsMsg)
13.go:854
↓ 1 callersMethodprocessServerHello
()
handshake_client.go:676
↓ 1 callersMethodprocessServerKeyExchange
On the client side, the next two methods are called in order. This method may not be called if the server doesn't send a ServerKeyExchange message.
cipher_suites.go:36
↓ 1 callersFunctionpublicKey
(priv interface{})
generate_cert.go:39
↓ 1 callersFunctionputUint24
(b []byte, n int)
common.go:1238
↓ 1 callersFunctionresult
()
_dev/tris-testclient/client.go:103
↓ 1 callersMethodrun
(t *testing.T, write bool)
handshake_client_test.go:279
↓ 1 callersMethodrun
(t *testing.T, write bool)
handshake_server_test.go:576
↓ 1 callersMethodselectTLS13SignatureScheme
selectTLS13SignatureScheme chooses the SignatureScheme for the CertificateVerify based on the certificate type and client supported schemes. If no ove
13.go:526
↓ 1 callersMethodsendCertificate13
()
13.go:440
↓ 1 callersMethodsendCertificate13
(chainToSend *Certificate, certReq *certificateRequestMsg13)
13.go:915
↓ 1 callersMethodsendSessionTicket13
()
13.go:741
↓ 1 callersMethodserverHandshake
serverHandshake performs a TLS handshake as a server. c.out.Mutex <= L; c.handshakeMutex <= L.
handshake_server.go:54
↓ 1 callersMethodserverResumedSession
()
handshake_client.go:669
↓ 1 callersMethodsetServerCertificateFromArgs
setServerCertificateFromArgs sets server certificate from an argument provided by the caller. Possible values for arg_cert: * "rsa": sets hardcoded RS
_dev/tris-localserver/server.go:102
↓ 1 callersMethodsplitBlock
splitBlock splits a block after the first n bytes, returning a block with those n bytes and a block with the remainder. the latter may be nil.
conn.go:626
↓ 1 callersMethodstart
()
_dev/tris-localserver/server.go:67
↓ 1 callersFunctiontestConnReadNonzeroAndEOF
(t *testing.T, delay time.Duration)
tls_test.go:230
↓ 1 callersFunctiontestConnWithDC
Executes the handshake with the given configuration and returns true if the delegated credential extension was successfully negotiated.
subcerts_test.go:237
↓ 1 callersFunctionthroughput
(b *testing.B, totalBytes int64, dynamicRecordSizingDisabled bool)
tls_test.go:758
↓ 1 callersMethodtraceErr
(err error)
13.go:815
↓ 1 callersMethodunmarshal
(data []byte)
handshake_messages.go:446
↓ 1 callersFunctionunmarshalCredential
unmarshalCredential decodes a credential and returns it.
subcerts.go:166
FunctionBenchmarkHandshakeServer
(b *testing.B)
handshake_server_test.go:1066
FunctionBenchmarkLatency
(b *testing.B)
tls_test.go:907
FunctionBenchmarkThroughput
(b *testing.B)
tls_test.go:816
MethodError
()
conn.go:646
MethodError
()
tls.go:87
FunctionExampleConfig_keyLogWriter_TLS12
()
example_test.go:75
FunctionExampleConfig_keyLogWriter_TLS13
()
example_test.go:119
FunctionExampleDial
()
example_test.go:28
FunctionExampleLoadX509KeyPair
()
example_test.go:165
FunctionExampleX509KeyPair
()
example_test.go:178
FunctionExampleX509KeyPair_httpServer
()
example_test.go:207
MethodGenerate
(rand *rand.Rand, size int)
handshake_messages_test.go:117
MethodGenerate
(rand *rand.Rand, size int)
handshake_messages_test.go:183
← previousnext →201–300 of 532, ranked by callers