hpke

package
v1.17.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package hpke provides a thin wrapper around Cloudflare's HPKE implementation

Index

Constants

View Source
const (
	KEM_P256_HKDF_SHA256   = hpke.KEM_P256_HKDF_SHA256
	KEM_P384_HKDF_SHA384   = hpke.KEM_P384_HKDF_SHA384
	KEM_P521_HKDF_SHA512   = hpke.KEM_P521_HKDF_SHA512
	KEM_X25519_HKDF_SHA256 = hpke.KEM_X25519_HKDF_SHA256
)

Available KEMs

View Source
const (
	KDF_HKDF_SHA256 = hpke.KDF_HKDF_SHA256
	KDF_HKDF_SHA384 = hpke.KDF_HKDF_SHA384
	KDF_HKDF_SHA512 = hpke.KDF_HKDF_SHA512
)

Available KDFs

View Source
const (
	AEAD_AES128GCM        = hpke.AEAD_AES128GCM
	AEAD_AES256GCM        = hpke.AEAD_AES256GCM
	AEAD_ChaCha20Poly1305 = hpke.AEAD_ChaCha20Poly1305
)

Available AEADs

Variables

View Source
var NewSuite = hpke.NewSuite

NewSuite creates a new HPKE suite from components

Functions

This section is empty.

Types

type AEAD

type AEAD = hpke.AEAD

AEAD represents an Authenticated Encryption with Associated Data algorithm

type KDF

type KDF = hpke.KDF

KDF represents a Key Derivation Function

type KEM

type KEM = hpke.KEM

KEM represents a Key Encapsulation Mechanism

type Receiver

type Receiver = hpke.Receiver

Receiver represents an HPKE receiver context

type Sender

type Sender = hpke.Sender

Sender represents an HPKE sender context

type Suite

type Suite = hpke.Suite

Suite represents an HPKE cipher suite

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL