Package: org.conscrypt
AEAD
public static final enum HpkeSuite.AEAD
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
getNk
public int getNk()
Returns the length in bytes of a key for this algorithm.
getKeyLength
public int getKeyLength()
getNn
public int getNn()
Returns the length in bytes of a nonce for this algorithm.
getNonceLength
public int getNonceLength()
getNt
public int getNt()
Returns the length in bytes of the AEAD authentication tag for this algorithm.
getTagLength
public int getTagLength()
forId
public static AEAD forId(int id)
Returns the AEAD value for a given id.