Versions in this module Expand all Collapse all v0 v0.1.0 Jul 6, 2023 Changes in this version + func EcdhePSKPreMasterSecret(psk, publicKey, privateKey []byte, curve elliptic.Curve) ([]byte, error) + func ExtendedMasterSecret(preMasterSecret, sessionHash []byte, h HashFunc) ([]byte, error) + func MasterSecret(preMasterSecret, clientRandom, serverRandom []byte, h HashFunc) ([]byte, error) + func PHash(secret, seed []byte, requestedLength int, h HashFunc) ([]byte, error) + func PSKPreMasterSecret(psk []byte) []byte + func PreMasterSecret(publicKey, privateKey []byte, curve elliptic.Curve) ([]byte, error) + func VerifyDataClient(masterSecret, handshakeBodies []byte, h HashFunc) ([]byte, error) + func VerifyDataServer(masterSecret, handshakeBodies []byte, h HashFunc) ([]byte, error) + type EncryptionKeys struct + ClientMACKey []byte + ClientWriteIV []byte + ClientWriteKey []byte + MasterSecret []byte + ServerMACKey []byte + ServerWriteIV []byte + ServerWriteKey []byte + func GenerateEncryptionKeys(masterSecret, clientRandom, serverRandom []byte, macLen, keyLen, ivLen int, ...) (*EncryptionKeys, error) + func (e *EncryptionKeys) String() string + type HashFunc func() hash.Hash