org.bouncycastle.crypto.engines
public final class CAST6Engine extends CAST5Engine
Field Summary | |
---|---|
protected static int | BLOCK_SIZE |
protected static int | ROUNDS |
protected int[] | _Km |
protected int[] | _Kr |
protected int[] | _Tm |
protected int[] | _Tr |
Constructor Summary | |
---|---|
CAST6Engine() |
Method Summary | |
---|---|
protected void | CAST_Decipher(int A, int B, int C, int D, int[] result)
Does the 12 quad rounds rounds to decrypt the block.
|
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.
|
String | getAlgorithmName() |
int | getBlockSize() |
void | reset() |
protected void | setKey(byte[] key) |
Parameters: A the 00-31 bits of the ciphertext block B the 32-63 bits of the ciphertext block C the 64-95 bits of the ciphertext block D the 96-127 bits of the ciphertext block result the resulting plaintext
Parameters: A the 00-31 bits of the plaintext block B the 32-63 bits of the plaintext block C the 64-95 bits of the plaintext block D the 96-127 bits of the plaintext block result the resulting ciphertext
Parameters: src The plaintext buffer srcIndex An offset into src dst The ciphertext buffer dstIndex An offset into dst
Parameters: src The plaintext buffer srcIndex An offset into src dst The ciphertext buffer dstIndex An offset into dst