Class MICKEY
java.lang.Object
com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEYBase
com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEY
- All Implemented Interfaces:
ICipher
-
Field Summary
Fields inherited from class com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEYBase
cached_setupNonce_R, cached_setupNonce_S, key, nsize, R0, R1, R2, S0, S1, S2Fields inherited from interface com.coderslagoon.crypto.estreamj.framework.ICipher
MODE_DECRYPT, MODE_ENCRYPT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidprocess(byte[] inBuf, int inOfs, byte[] outBuf, int outOfs, int len) Processes data.static voidregister()voidsetupKey(int mode, byte[] key, int ofs) Sets up a new key with the existing instance.voidsetupNonce(byte[] nonce, int ofs) Sets up a new nonce with the existing cipher instance.Methods inherited from class com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEYBase
erase, getNonceSize, getWordSize, isPatented, reset, setNonceSize
-
Constructor Details
-
MICKEY
public MICKEY()
-
-
Method Details
-
getKeySize
public int getKeySize()- Returns:
- key size in bytes
-
process
public void process(byte[] inBuf, int inOfs, byte[] outBuf, int outOfs, int len) throws ESJException Description copied from interface:ICipherProcesses data.- Parameters:
inBuf- input bufferinOfs- where to start reading from the input bufferoutBuf- output bufferoutOfs- where to start writing in the output bufferlen- number of bytes to process, must be aligned to the cipher's word size except on the last call where an arbitrary size can be used- Throws:
ESJException- in any error occurred
-
setupKey
Description copied from interface:ICipherSets up a new key with the existing instance.- Parameters:
mode- see MODE_xxxkey- buffer with key materialofs- where the key starts- Throws:
ESJException- if any error occurs
-
setupNonce
Description copied from interface:ICipherSets up a new nonce with the existing cipher instance.- Parameters:
nonce- buffer with nonce materialofs- where the nonce starts- Throws:
ESJException- if any error occurs
-
register
public static void register()
-