| java.lang.Object com.quadcap.crypto.AbstractSymmetricKey
All known Subclasses: com.quadcap.crypto.Rijndael, com.quadcap.crypto.Tea, com.quadcap.crypto.Tea256,
AbstractSymmetricKey | abstract public class AbstractSymmetricKey implements SymmetricKey(Code) | | Base class for symmetric ciphers
author: Stan Bailes |
Inner Class :class EncryptionKey implements Key | |
Inner Class :class DecryptionKey implements Key | |
Field Summary | |
protected DecryptionKey | dkey | protected EncryptionKey | ekey |
dkey | protected DecryptionKey dkey(Code) | | |
ekey | protected EncryptionKey ekey(Code) | | |
decrypt | abstract public void decrypt(ByteBuffer code, ByteBuffer plain)(Code) | | Decrypt a buffer (must be a multiple of 8 bytes)
|
encrypt | abstract public void encrypt(ByteBuffer plain, ByteBuffer code)(Code) | | Encrypt a buffer (must be multiple of 8 bytes)
|
getBlockSize | abstract public int getBlockSize()(Code) | | The key's block size
|
getDecryptionKey | public Key getDecryptionKey()(Code) | | Return the key used for encryption
|
getEncryptionKey | public Key getEncryptionKey()(Code) | | Return the key used for decryption
|
init | abstract public void init(String s) throws Exception(Code) | | Initialize key from serialized representation
|
init | abstract public void init(Random r)(Code) | | Initialize: Create a random key
|
|
|