| java.lang.Object org.bouncycastle.crypto.engines.SerpentEngine
SerpentEngine | public class SerpentEngine implements BlockCipher(Code) | | Serpent is a 128-bit 32-round block cipher with variable key lengths,
including 128, 192 and 256 bit keys conjectured to be at least as
secure as three-key triple-DES.
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 The Serpent home page
|
Field Summary | |
final static int | PHI | final static int | ROUNDS |
Method Summary | |
public String | getAlgorithmName() | public int | getBlockSize() | public void | init(boolean encrypting, CipherParameters params) initialise a Serpent cipher. | final public int | processBlock(byte[] in, int inOff, byte[] out, int outOff) Process one block of input from the array in and write it to
the out array.
Parameters: in - the array containing the input data. Parameters: inOff - offset into the in array the data starts at. Parameters: out - the array the output data will be copied into. Parameters: outOff - the offset into the out array the output will start at. exception: DataLengthException - if there isn't enough data in in, orspace in out. exception: IllegalStateException - if the cipher isn't initialised. | public void | reset() |
ROUNDS | final static int ROUNDS(Code) | | |
getBlockSize | public int getBlockSize()(Code) | | |
init | public void init(boolean encrypting, CipherParameters params)(Code) | | initialise a Serpent cipher.
Parameters: encrypting - whether or not we are for encryption. Parameters: params - the parameters required to set up the cipher. exception: IllegalArgumentException - if the params argument isinappropriate. |
processBlock | final public int processBlock(byte[] in, int inOff, byte[] out, int outOff)(Code) | | Process one block of input from the array in and write it to
the out array.
Parameters: in - the array containing the input data. Parameters: inOff - offset into the in array the data starts at. Parameters: out - the array the output data will be copied into. Parameters: outOff - the offset into the out array the output will start at. exception: DataLengthException - if there isn't enough data in in, orspace in out. exception: IllegalStateException - if the cipher isn't initialised. the number of bytes processed and produced. |
reset | public void reset()(Code) | | |
|
|