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)
(*Receipient) Open(aad, ciphertext []byte) ([]byte, error)
func SetupReceipient(kemID, kdfID, aeadID uint16, priv *ecdh.PrivateKey, info, encPubEph []byte) (*Receipient, error)
Package-Level Functions (total 4)
func ParseHPKEPrivateKey(kemID uint16, bytes []byte) (*ecdh.PrivateKey, error) func SetupReceipient(kemID, kdfID, aeadID uint16, priv *ecdh.PrivateKey, info, encPubEph []byte) (*Receipient, 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
Package-Level Constants (total 5)
const AEAD_AES_128_GCM = 1 const AEAD_AES_256_GCM = 2 const AEAD_ChaCha20Poly1305 = 3 const DHKEM_X25519_HKDF_SHA256 = 32 const KDF_HKDF_SHA256 = 1
The pages are generated with Golds v0.7.3. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |