| Modifier and Type | Field and Description |
|---|---|
| protected int[] | |
| protected int[] | |
| protected int[] | |
| protected int[] | |
| private int[] | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | CAST_Decipher(int
the 00-31 bits of the ciphertext block A, int the 32-63 bits of the ciphertext block B, int the 64-95 bits of the ciphertext block C, int the 96-127 bits of the ciphertext block D, int[] the resulting plaintext result)Does the 12 quad rounds rounds to decrypt the block. |
| protected final void | CAST_Encipher(int
the 00-31 bits of the plaintext block A, int the 32-63 bits of the plaintext block B, int the 64-95 bits of the plaintext block C, int the 96-127 bits of the plaintext block D, int[] the resulting ciphertext result)Does the 12 quad rounds rounds to encrypt the block. |
| protected int | decryptBlock(byte[]
The plaintext buffer src, int An offset into src srcIndex, byte[] The ciphertext buffer dst, int An offset into dst dstIndex)Overrides org. 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[]
The plaintext buffer src, int An offset into src srcIndex, byte[] The ciphertext buffer dst, int An offset into dst dstIndex)Overrides org. 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()
Overrides org. Implements org. Return the name of the algorithm the cipher implements. |
| public int | getBlockSize()
Overrides org. Implements org. Return the block size for this cipher (in bytes). |
| public void | reset()
Overrides org. Implements org. Reset the cipher. |
| protected void |
| _Km | back to summary |
|---|---|
| protected int[] _Km | |
| _Kr | back to summary |
|---|---|
| protected int[] _Kr | |
| _Tm | back to summary |
|---|---|
| protected int[] _Tm | |
| _Tr | back to summary |
|---|---|
| protected int[] _Tr | |
| _workingKey | back to summary |
|---|---|
| private int[] _workingKey Hides org. | |
| BLOCK_SIZE | back to summary |
|---|---|
| protected static final int BLOCK_SIZE Hides org. | |
| ROUNDS | back to summary |
|---|---|
| protected static final int ROUNDS | |
| CAST6Engine | back to summary |
|---|---|
| public CAST6Engine() | |
| CAST_Decipher | back to summary |
|---|---|
| protected final void CAST_Decipher(int A, int B, int C, int D, int[] result) Does the 12 quad rounds rounds to decrypt the block.
| |
| CAST_Encipher | back to summary |
|---|---|
| protected final void CAST_Encipher(int A, int B, int C, int D, int[] result) Does the 12 quad rounds rounds to encrypt the block.
| |
| decryptBlock | back to summary |
|---|---|
| protected int decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) Overrides org. Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.
| |
| encryptBlock | back to summary |
|---|---|
| protected int encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) Overrides org. Encrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Overrides org. Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Overrides org. Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| setKey | back to summary |
|---|---|
| protected void setKey(byte[] key) Overrides org. | |