Documentation
¶
Index ¶
Constants ¶
View Source
const ( AEAD_AES_128_GCM = 0x0001 AEAD_AES_256_GCM = 0x0002 AEAD_ChaCha20Poly1305 = 0x0003 )
View Source
const DHKEM_X25519_HKDF_SHA256 = 0x0020
View Source
const KDF_HKDF_SHA256 = 0x0001
Variables ¶
View Source
var SupportedAEADs = map[uint16]struct { keySize int nonceSize int aead func([]byte) (cipher.AEAD, error) }{ AEAD_AES_128_GCM: {/* contains filtered or unexported fields */}, AEAD_AES_256_GCM: {/* contains filtered or unexported fields */}, AEAD_ChaCha20Poly1305: {/* contains filtered or unexported fields */}, }
View Source
var SupportedKDFs = map[uint16]func() *hkdfKDF{ KDF_HKDF_SHA256: func() *hkdfKDF { return &hkdfKDF{crypto.SHA256} }, }
Functions ¶
func ParseHPKEPrivateKey ¶ added in go1.24.0
func ParseHPKEPrivateKey(kemID uint16, bytes []byte) (*ecdh.PrivateKey, error)
Types ¶
type Receipient ¶ added in go1.24.0
type Receipient struct {
// contains filtered or unexported fields
}
func SetupReceipient ¶ added in go1.24.0
func SetupReceipient(kemID, kdfID, aeadID uint16, priv *ecdh.PrivateKey, info, encPubEph []byte) (*Receipient, error)
Click to show internal directories.
Click to hide internal directories.