Class ChaCha20Poly1305.Poly1305

java.lang.Object
com.sshtools.common.ssh.components.jce.ChaCha20Poly1305.Poly1305
Enclosing class:
ChaCha20Poly1305

public static class ChaCha20Poly1305.Poly1305 extends Object
Poly1305 message authentication code, designed by D. J. Bernstein.

Poly1305 computes a 128-bit (16 bytes) authenticator, using a 128 bit nonce and a 256 bit key consisting of a 128 bit key applied to an underlying cipher, and a 128 bit key (with 106 effective key bits) used in the authenticator.

The polynomial calculation in this implementation is adapted from the public domain poly1305-donna-unrolled C implementation by Andrew M (@floodyberry).

See Also:
  • Poly1305KeyGenerator