prf12 implements the TLS 1.2 pseudo-random function, as defined in RFC 5246, Section 5.
(hashFunc func() hash.Hash)
| 72 | |
| 73 | // prf12 implements the TLS 1.2 pseudo-random function, as defined in RFC 5246, Section 5. |
| 74 | func prf12(hashFunc func() hash.Hash) prfFunc { |
| 75 | return func(secret []byte, label string, seed []byte, keyLen int) []byte { |
| 76 | return tls12.PRF(hashFunc, secret, label, seed, keyLen) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | const ( |
| 81 | masterSecretLength = 48 // Length of a master secret in TLS 1.1. |
no test coverage detected
searching dependent graphs…