Package: org.conscrypt

AEAD

public static final enum HpkeSuite.AEAD
AEAD ciphers.

See: AEAD ids

Fields

AES_128_GCM

AES_256_GCM

CHACHA20POLY1305

Public Methods

values

public static AEAD[] values()

valueOf

public static AEAD valueOf(String name)

getId

public int getId()
AEAD id in its decimal representation
Returns
int AEAD id

getNk

public int getNk()
Returns the length in bytes of a key for this algorithm.
Returns
int AEAD Nk

getKeyLength

public int getKeyLength()

getNn

public int getNn()
Returns the length in bytes of a nonce for this algorithm.
Returns
int AEAD Nn

getNonceLength

public int getNonceLength()

getNt

public int getNt()
Returns the length in bytes of the AEAD authentication tag for this algorithm.
Returns
int AEAD Nt

getTagLength

public int getTagLength()

forId

public static AEAD forId(int id)
Returns the AEAD value for a given id.