Class ChaCha20Poly1305Parameters.Variant

  • Enclosing class:
    ChaCha20Poly1305Parameters

    @Immutable
    public static final class ChaCha20Poly1305Parameters.Variant
    extends java.lang.Object
    Describes how the prefix is computed. For AEAD there are three main possibilities: NO_PREFIX (empty prefix), TINK (prefix the ciphertext with 0x01 followed by a 4-byte key id in big endian format) or CRUNCHY (prefix the ciphertext with 0x00 followed by a 4-byte key id in big endian format)