| java.lang.Object org.bouncycastle.crypto.engines.CAST5Engine org.bouncycastle.crypto.engines.CAST6Engine
CAST6Engine | final public class CAST6Engine extends CAST5Engine (Code) | | A class that provides CAST6 key encryption operations,
such as encoding data and generating keys.
All the algorithms herein are from the Internet RFC
RFC2612 - CAST6 (128bit block, 128-256bit key)
and implement a simplified cryptography interface.
|
Field Summary | |
final protected static int | BLOCK_SIZE | final protected static int | ROUNDS | protected int | _Km | protected int | _Kr | protected int | _Tm | protected int | _Tr |
Method Summary | |
final protected void | CAST_Decipher(int A, int B, int C, int D, int result) Does the 12 quad rounds rounds to decrypt the block. | final protected void | CAST_Encipher(int A, int B, int C, int D, int result) Does the 12 quad rounds rounds to encrypt the block. | protected int | decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) Decrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset. | protected int | encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) Encrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset. | public String | getAlgorithmName() | public int | getBlockSize() | public void | reset() | protected void | setKey(byte[] key) |
BLOCK_SIZE | final protected static int BLOCK_SIZE(Code) | | |
ROUNDS | final protected static int ROUNDS(Code) | | |
CAST6Engine | public CAST6Engine()(Code) | | |
CAST_Decipher | final protected void CAST_Decipher(int A, int B, int C, int D, int result)(Code) | | Does the 12 quad rounds rounds to decrypt the block.
Parameters: A - the 00-31 bits of the ciphertext block Parameters: B - the 32-63 bits of the ciphertext block Parameters: C - the 64-95 bits of the ciphertext block Parameters: D - the 96-127 bits of the ciphertext block Parameters: result - the resulting plaintext |
CAST_Encipher | final protected void CAST_Encipher(int A, int B, int C, int D, int result)(Code) | | Does the 12 quad rounds rounds to encrypt the block.
Parameters: A - the 00-31 bits of the plaintext block Parameters: B - the 32-63 bits of the plaintext block Parameters: C - the 64-95 bits of the plaintext block Parameters: D - the 96-127 bits of the plaintext block Parameters: result - the resulting ciphertext |
decryptBlock | protected int decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)(Code) | | Decrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
Parameters: src - The plaintext buffer Parameters: srcIndex - An offset into src Parameters: dst - The ciphertext buffer Parameters: dstIndex - An offset into dst |
encryptBlock | protected int encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)(Code) | | Encrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
Parameters: src - The plaintext buffer Parameters: srcIndex - An offset into src Parameters: dst - The ciphertext buffer Parameters: dstIndex - An offset into dst |
getBlockSize | public int getBlockSize()(Code) | | |
reset | public void reset()(Code) | | |
setKey | protected void setKey(byte[] key)(Code) | | |
Methods inherited from org.bouncycastle.crypto.engines.CAST5Engine | final protected void Bits32ToBytes(int in, byte[] b, int offset)(Code)(Java Doc) final protected void Bits32ToInts(int in, int[] b, int offset)(Code)(Java Doc) final protected int BytesTo32bits(byte[] b, int i)(Code)(Java Doc) final protected void CAST_Decipher(int L16, int R16, int result)(Code)(Java Doc) final protected void CAST_Encipher(int L0, int R0, int result)(Code)(Java Doc) final protected int F1(int D, int Kmi, int Kri)(Code)(Java Doc) final protected int F2(int D, int Kmi, int Kri)(Code)(Java Doc) final protected int F3(int D, int Kmi, int Kri)(Code)(Java Doc) final protected int IntsTo32bits(int[] b, int i)(Code)(Java Doc) protected int decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)(Code)(Java Doc) protected int encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)(Code)(Java Doc) public String getAlgorithmName()(Code)(Java Doc) public int getBlockSize()(Code)(Java Doc) public void init(boolean encrypting, CipherParameters params)(Code)(Java Doc) public int processBlock(byte[] in, int inOff, byte[] out, int outOff)(Code)(Java Doc) public void reset()(Code)(Java Doc) protected void setKey(byte[] key)(Code)(Java Doc)
|
|
|