java.lang.Object | ||
↳ | org.bouncycastle.crypto.engines.CAST5Engine | |
↳ | org.bouncycastle.crypto.engines.CAST6Engine |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BLOCK_SIZE | ||||||||||
int | ROUNDS |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.crypto.engines.CAST5Engine
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
_Km | |||||||||||
_Kr | |||||||||||
_Tm | |||||||||||
_Tr |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.crypto.engines.CAST5Engine
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the algorithm the cipher implements.
| |||||||||||
Return the block size for this cipher (in bytes).
| |||||||||||
Reset the cipher.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Does the 12 quad rounds rounds to decrypt the block.
| |||||||||||
Does the 12 quad rounds rounds to encrypt the block.
| |||||||||||
Decrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
| |||||||||||
Encrypt the given input starting at the given offset and place
the result in the provided buffer starting at the given offset.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.crypto.engines.CAST5Engine
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.BlockCipher
|
Return the name of the algorithm the cipher implements.
Return the block size for this cipher (in bytes).
Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).
Does the 12 quad rounds rounds to decrypt the block.
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 |
Does the 12 quad rounds rounds to encrypt the block.
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 |
Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.
src | The plaintext buffer |
---|---|
srcIndex | An offset into src |
dst | The ciphertext buffer |
dstIndex | An offset into dst |
Encrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset.
src | The plaintext buffer |
---|---|
srcIndex | An offset into src |
dst | The ciphertext buffer |
dstIndex | An offset into dst |