Split a premaster secret in two as specified in RFC 4346, Section 5.
(secret []byte)
| 22 | |
| 23 | // Split a premaster secret in two as specified in RFC 4346, Section 5. |
| 24 | func 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. |
| 31 | func pHash(result, secret, seed []byte, hash func() hash.Hash) { |
no outgoing calls
no test coverage detected
searching dependent graphs…