MCPcopy Index your code
hub / github.com/XTLS/REALITY / splitPreMasterSecret

Function splitPreMasterSecret

prf.go:24–28  ·  view source on GitHub ↗

Split a premaster secret in two as specified in RFC 4346, Section 5.

(secret []byte)

Source from the content-addressed store, hash-verified

22
23// Split a premaster secret in two as specified in RFC 4346, Section 5.
24func splitPreMasterSecret(secret []byte) (s1, s2 []byte) {
25 s1 = secret[0 : (len(secret)+1)/2]
26 s2 = secret[len(secret)/2:]
27 return
28}
29
30// pHash implements the P_hash function, as defined in RFC 4346, Section 5.
31func pHash(result, secret, seed []byte, hash func() hash.Hash) {

Callers 1

prf10Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…