package tls12
import "crypto/internal/fips140/tls12"
Index ¶
- func MasterSecret[H fips140.Hash](hash func() H, preMasterSecret, transcript []byte) []byte
- func PRF[H fips140.Hash](hash func() H, secret []byte, label string, seed []byte, keyLen int) []byte
Functions ¶
func MasterSecret ¶
MasterSecret implements the TLS 1.2 extended master secret derivation, as defined in RFC 7627 and allowed by SP 800-135, Revision 1, Section 4.2.2.
func PRF ¶
func PRF[H fips140.Hash](hash func() H, secret []byte, label string, seed []byte, keyLen int) []byte
PRF implements the TLS 1.2 pseudo-random function, as defined in RFC 5246, Section 5 and allowed by SP 800-135, Revision 1, Section 4.2.2.
Source Files ¶
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 20 minutes ago –
Tools for package owners.