![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.crypto.AbstractSymmetricKey:

Definition at line 50 of file AbstractSymmetricKey.java.
Public Member Functions | |
| abstract void | init (String s) throws Exception |
| Initialize key from serialized representation. | |
| abstract void | init (Random r) |
| Initialize: Create a random key. | |
| abstract int | getBlockSize () |
| The key's block size. | |
| Key | getEncryptionKey () |
| Return the key used for decryption. | |
| abstract void | encrypt (ByteBuffer plain, ByteBuffer code) |
| Encrypt a buffer (must be multiple of 8 bytes). | |
| Key | getDecryptionKey () |
| Return the key used for encryption. | |
| abstract void | decrypt (ByteBuffer code, ByteBuffer plain) |
| Decrypt a buffer (must be a multiple of 8 bytes). | |
Protected Attributes | |
| EncryptionKey | ekey = new EncryptionKey() |
| DecryptionKey | dkey = new DecryptionKey(this) |
|
||||||||||||
|
Decrypt a buffer (must be a multiple of 8 bytes).
Implemented in com.quadcap.crypto.Rijndael, com.quadcap.crypto.Tea, and com.quadcap.crypto.Tea256. Referenced by com.quadcap.crypto.AbstractSymmetricKey.DecryptionKey.f(). |
|
||||||||||||
|
Encrypt a buffer (must be multiple of 8 bytes).
Implemented in com.quadcap.crypto.Rijndael, com.quadcap.crypto.Tea, and com.quadcap.crypto.Tea256. |
|
|
The key's block size.
Implemented in com.quadcap.crypto.Rijndael, com.quadcap.crypto.Tea, and com.quadcap.crypto.Tea256. Referenced by com.quadcap.crypto.AbstractSymmetricKey.DecryptionKey.blockSize(), and com.quadcap.crypto.AbstractSymmetricKey.EncryptionKey.blockSize(). |
|
|
Return the key used for encryption.
Implements com.quadcap.crypto.SymmetricKey. Definition at line 109 of file AbstractSymmetricKey.java. References com.quadcap.crypto.AbstractSymmetricKey.dkey. |
|
|
Return the key used for decryption.
Implements com.quadcap.crypto.SymmetricKey. Definition at line 80 of file AbstractSymmetricKey.java. References com.quadcap.crypto.AbstractSymmetricKey.ekey. |
|
|
Initialize: Create a random key.
Implements com.quadcap.crypto.SymmetricKey. Implemented in com.quadcap.crypto.Rijndael, com.quadcap.crypto.Tea, and com.quadcap.crypto.Tea256. |
|
|
Initialize key from serialized representation.
Implements com.quadcap.crypto.SymmetricKey. Implemented in com.quadcap.crypto.Rijndael, com.quadcap.crypto.Tea, and com.quadcap.crypto.Tea256. |
|
|
Definition at line 104 of file AbstractSymmetricKey.java. Referenced by com.quadcap.crypto.AbstractSymmetricKey.getDecryptionKey(). |
|
|
Definition at line 75 of file AbstractSymmetricKey.java. Referenced by com.quadcap.crypto.AbstractSymmetricKey.getEncryptionKey(). |