Class MICKEYBase
java.lang.Object
com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEYBase
- All Implemented Interfaces:
ICipher
Some general things all MICKEYs do share.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]protected int[]protected int[]protected intprotected intprotected intprotected intprotected intprotected intprotected intFields inherited from interface com.coderslagoon.crypto.estreamj.framework.ICipher
MODE_DECRYPT, MODE_ENCRYPT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderase()Erases all sensitive data.intintbooleanvoidreset()Resets the instance, so it can be reused.voidsetNonceSize(int nsize) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.coderslagoon.crypto.estreamj.framework.ICipher
getKeySize, process, setupKey, setupNonce
-
Field Details
-
R0
protected int R0 -
R1
protected int R1 -
R2
protected int R2 -
S0
protected int S0 -
S1
protected int S1 -
S2
protected int S2 -
key
protected int[] key -
nsize
protected int nsize -
cached_setupNonce_R
protected int[] cached_setupNonce_R -
cached_setupNonce_S
protected int[] cached_setupNonce_S
-
-
Constructor Details
-
MICKEYBase
protected MICKEYBase()
-
-
Method Details
-
setNonceSize
public void setNonceSize(int nsize) -
getNonceSize
public int getNonceSize()- Specified by:
getNonceSizein interfaceICipher- Returns:
- nonce size in bytes.
-
getWordSize
public int getWordSize()- Specified by:
getWordSizein interfaceICipher- Returns:
- alignment of data needed during calls into process()
-
isPatented
public boolean isPatented()- Specified by:
isPatentedin interfaceICipher- Returns:
- true: algorithm is patented, check with vendor for license details / false: free to use in private and commercial applications
-
reset
Description copied from interface:ICipherResets the instance, so it can be reused.- Specified by:
resetin interfaceICipher- Throws:
ESJException- if any error occurs
-
erase
public void erase()Description copied from interface:ICipherErases all sensitive data. Instance MUST be abadonned afterwards.
-