All Packages Class Hierarchy This Package Previous Next Index
Class Acme.Crypto.Cipher
java.lang.Object
|
+----Acme.Crypto.CryptoUtils
|
+----Acme.Crypto.Cipher
- public abstract class Cipher
- extends CryptoUtils
An encryption template.
Fetch the software.
Fetch the entire Acme package.
- See Also:
- StreamCipher, BlockCipher, EncryptedOutputStream, EncryptedInputStream
-
keySize
- How big a key is.
-
Cipher(int)
- Constructor.
-
keySize()
- Return how big a key is.
-
makeKey(String)
- Utility routine to turn a string into a key of the right length.
-
setKey(byte[])
- Set the key from a block of bytes.
-
setKey(String)
- Utility routine to set the key from a string.
keySize
public int keySize
- How big a key is. Keyless ciphers use 0. Variable-length-key ciphers
also use 0.
Cipher
public Cipher(int keySize)
- Constructor.
keySize
public int keySize()
- Return how big a key is.
setKey
public abstract void setKey(byte key[])
- Set the key from a block of bytes.
setKey
public void setKey(String keyStr)
- Utility routine to set the key from a string.
makeKey
public byte[] makeKey(String keyStr)
- Utility routine to turn a string into a key of the right length.
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs