Package org.paseto4j.version4
Class XChaCha20Engine
- java.lang.Object
-
- org.bouncycastle.crypto.engines.Salsa20Engine
-
- org.bouncycastle.crypto.engines.ChaChaEngine
-
- org.paseto4j.version4.XChaCha20Engine
-
- All Implemented Interfaces:
org.bouncycastle.crypto.SkippingCipher,org.bouncycastle.crypto.SkippingStreamCipher,org.bouncycastle.crypto.StreamCipher
public class XChaCha20Engine extends org.bouncycastle.crypto.engines.ChaChaEngineTaken from dangling PR https://github.com/bcgit/bc-java/pull/957
-
-
Constructor Summary
Constructors Constructor Description XChaCha20Engine()Create a new XChaCha20 engine.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithmName()protected intgetNonceSize()int[]hChaChaDeriveSubKey(byte[] keyBytes, byte[] ivBytes)protected voidsetKey(byte[] keyBytes, byte[] ivBytes)-
Methods inherited from class org.bouncycastle.crypto.engines.ChaChaEngine
advanceCounter, advanceCounter, chachaCore, generateKeyStream, getCounter, resetCounter, retreatCounter, retreatCounter
-
-
-
-
Method Detail
-
getAlgorithmName
public String getAlgorithmName()
- Specified by:
getAlgorithmNamein interfaceorg.bouncycastle.crypto.StreamCipher- Overrides:
getAlgorithmNamein classorg.bouncycastle.crypto.engines.ChaChaEngine
-
getNonceSize
protected int getNonceSize()
- Overrides:
getNonceSizein classorg.bouncycastle.crypto.engines.Salsa20Engine
-
setKey
protected void setKey(byte[] keyBytes, byte[] ivBytes)- Overrides:
setKeyin classorg.bouncycastle.crypto.engines.ChaChaEngine
-
hChaChaDeriveSubKey
public int[] hChaChaDeriveSubKey(byte[] keyBytes, byte[] ivBytes)
-
-