package hpke

Import Path
	crypto/internal/hpke (on go.dev)

Dependency Relation
	imports 10 packages, and imported by one package

Involved Source Files hpke.go
Package-Level Type Names (total 5)
/* sort by: | */
type AEADID uint16 (basic type)
type KDFID uint16 (basic type)
type KemID uint16 (basic type)
(*Receipient) Open(aad, ciphertext []byte) ([]byte, error) func SetupReceipient(kemID, kdfID, aeadID uint16, priv *ecdh.PrivateKey, info, encPubEph []byte) (*Receipient, error)
(*Sender) Seal(aad, plaintext []byte) ([]byte, error) func SetupSender(kemID, kdfID, aeadID uint16, pub *ecdh.PublicKey, info []byte) ([]byte, *Sender, error)
Package-Level Functions (total 4)
func ParseHPKEPublicKey(kemID uint16, bytes []byte) (*ecdh.PublicKey, error)
func SetupReceipient(kemID, kdfID, aeadID uint16, priv *ecdh.PrivateKey, info, encPubEph []byte) (*Receipient, error)
func SetupSender(kemID, kdfID, aeadID uint16, pub *ecdh.PublicKey, info []byte) ([]byte, *Sender, error)
Package-Level Variables (total 3)
var SupportedAEADs map[uint16]struct{keySize int; nonceSize int; aead func([]byte) (cipher.AEAD, error)}
var SupportedKDFs map[uint16]func() *hkdfKDF
var SupportedKEMs map[uint16]struct{curve ecdh.Curve; hash crypto.Hash; nSecret uint16}
Package-Level Constants (total 5)
const AEAD_AES_128_GCM = 1
const AEAD_AES_256_GCM = 2
const KDF_HKDF_SHA256 = 1