Package: org.conscrypt

HpkeSuite

public final class HpkeSuite
Holds the KEM, KDF, and AEAD that are used and supported by HpkeContextRecipient and HpkeContextSender defined on RFC 9180.

Fields

KEM_DHKEM_X25519_HKDF_SHA256

KEM: 0x0020 DHKEM(X25519, HKDF-SHA256)

KEM_XWING

KEM: 0x647a X-Wing

KDF_HKDF_SHA256

KDF: 0x0001 HKDF-SHA256

AEAD_AES_128_GCM

AEAD: 0x0001 AES-128-GCM

AEAD_AES_256_GCM

AEAD: 0x0002 AES-256-GCM

AEAD_CHACHA20POLY1305

AEAD: 0x0003 ChaCha20Poly1305

Constructors

public HpkeSuite(int kem, int kdf, int aead)

Public Methods

name

public String name()

getKem

public KEM getKem()
KEM configured while creating an instance of HpkeSuite
Returns
org.conscrypt.HpkeSuite.KEM kem

getKdf

public KDF getKdf()
KDF configured while creating an instance of HpkeSuite
Returns
org.conscrypt.HpkeSuite.KDF kdf

getAead

public AEAD getAead()
AEAD configured while creating an instance of HpkeSuite
Returns
org.conscrypt.HpkeSuite.AEAD aead

convertKem

public KEM convertKem(int kem)
Converts the KEM value into its KEM representation.
Parameters
kem value
Returns
org.conscrypt.HpkeSuite.KEM KEM representation.

convertKdf

public KDF convertKdf(int kdf)
Converts the KDF value into its KDF representation.
Parameters
kdf value
Returns
org.conscrypt.HpkeSuite.KDF KDF representation.

convertAead

public AEAD convertAead(int aead)
Converts the AEAD value into its AEAD representation.
Parameters
aead value
Returns
org.conscrypt.HpkeSuite.AEAD AEAD representation.

Nested Classes

KEM

Key Encapsulation Mechanisms (KEMs)

See: rfc9180


See: IANA HPKE

KDF

Key Derivation Functions (KDFs)

See: rfc9180

AEAD

AEAD ciphers.

See: AEAD ids