|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.crypto.engines.Zuc128CoreEngine | +--org.bouncycastle.crypto.engines.Zuc256CoreEngine
Zuc256 implementation. Based on https://www.is.cas.cn/ztzl2016/zouchongzhi/201801/W020180126529970733243.pdf
Constructor Summary | |
protected |
Zuc256CoreEngine()
Constructor for streamCipher. |
protected |
Zuc256CoreEngine(int pLength)
Constructor for Mac. |
protected |
Zuc256CoreEngine(Zuc256CoreEngine pSource)
Constructor for Memoable. |
Method Summary | |
Memoable |
copy()
Create a copy of the engine. |
java.lang.String |
getAlgorithmName()
Obtain Algorithm Name. |
protected int |
getMaxIterations()
Obtain Max iterations. |
void |
reset(Memoable pState)
Reset from saved engine state. |
protected void |
setKeyAndIV(int[] pLFSR,
byte[] k,
byte[] iv)
Process key and IV into LFSR. |
Methods inherited from class org.bouncycastle.crypto.engines.Zuc128CoreEngine |
encode32be, init, makeKeyStreamWord, processBytes, reset, returnByte |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Zuc256CoreEngine()
protected Zuc256CoreEngine(int pLength)
pLength
- the Mac lengthprotected Zuc256CoreEngine(Zuc256CoreEngine pSource)
pSource
- the source engineMethod Detail |
protected int getMaxIterations()
getMaxIterations
in class Zuc128CoreEngine
public java.lang.String getAlgorithmName()
getAlgorithmName
in class Zuc128CoreEngine
protected void setKeyAndIV(int[] pLFSR, byte[] k, byte[] iv)
setKeyAndIV
in class Zuc128CoreEngine
pLFSR
- the LFSRk
- the keyiv
- the ivpublic Memoable copy()
copy
in class Zuc128CoreEngine
public void reset(Memoable pState)
reset
in class Zuc128CoreEngine
pState
- the state to restore
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |