Split a premaster secret in two as specified in RFC 4346, Section 5.
(secret []byte)
| 18 | |
| 19 | // Split a premaster secret in two as specified in RFC 4346, Section 5. |
| 20 | func splitPreMasterSecret(secret []byte) (s1, s2 []byte) { |
| 21 | s1 = secret[0 : (len(secret)+1)/2] |
| 22 | s2 = secret[len(secret)/2:] |
| 23 | return |
| 24 | } |
| 25 | |
| 26 | // pHash implements the P_hash function, as defined in RFC 4346, Section 5. |
| 27 | func pHash(result, secret, seed []byte, hash func() hash.Hash) { |
no outgoing calls
no test coverage detected
searching dependent graphs…