public class XChaCha20Poly1305 extends ChaCha20Poly1305
Identical to ChaCha20Poly1305 except that the underlying stream
cipher is XChaCha20Engine (192 bit nonce instead of 96 bit). The
extended nonce makes random-nonce strategies safe at scale: with a 192
bit nonce, collisions remain negligibly likely up to 2^80 messages per
key, removing the per-key counter / deterministic-nonce constraint that
standard ChaCha20-Poly1305 imposes.
| Constructor and Description |
|---|
XChaCha20Poly1305() |
XChaCha20Poly1305(Mac poly1305) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithmName()
Return the name of the algorithm.
|
doFinal, getMac, getOutputSize, getUpdateOutputSize, init, processAADByte, processAADBytes, processByte, processBytes, resetpublic XChaCha20Poly1305()
public XChaCha20Poly1305(Mac poly1305)
public java.lang.String getAlgorithmName()
AEADCiphergetAlgorithmName in interface AEADCiphergetAlgorithmName in class ChaCha20Poly1305