public final class SerpentEngine extends SerpentEngineBase
Serpent was designed by Ross Anderson, Eli Biham and Lars Knudsen as a candidate algorithm for the NIST AES Quest.
For full details see The Serpent home page
BLOCK_SIZE, encrypting, wKey, X0, X1, X2, X3| Constructor and Description |
|---|
SerpentEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decryptBlock(byte[] input,
int inOff,
byte[] output,
int outOff)
Decrypt one block of ciphertext.
|
protected void |
encryptBlock(byte[] input,
int inOff,
byte[] output,
int outOff)
Encrypt one block of plaintext.
|
protected int[] |
makeWorkingKey(byte[] key)
Expand a user-supplied key material into a session key.
|
getAlgorithmName, getBlockSize, ib0, ib1, ib2, ib3, ib4, ib5, ib6, ib7, init, inverseLT, LT, processBlock, reset, rotateLeft, rotateRight, sb0, sb1, sb2, sb3, sb4, sb5, sb6, sb7protected int[] makeWorkingKey(byte[] key)
throws java.lang.IllegalArgumentException
makeWorkingKey in class SerpentEngineBasekey - The user-key bytes (multiples of 4) to use.java.lang.IllegalArgumentExceptionprotected void encryptBlock(byte[] input,
int inOff,
byte[] output,
int outOff)
encryptBlock in class SerpentEngineBaseinput - the array containing the input data.inOff - offset into the in array the data starts at.output - the array the output data will be copied into.outOff - the offset into the out array the output will start at.protected void decryptBlock(byte[] input,
int inOff,
byte[] output,
int outOff)
decryptBlock in class SerpentEngineBaseinput - the array containing the input data.inOff - offset into the in array the data starts at.output - the array the output data will be copied into.outOff - the offset into the out array the output will start at.