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

Variable Index

 o keySize
How big a key is.

Constructor Index

 o Cipher(int)
Constructor.

Method Index

 o keySize()
Return how big a key is.
 o makeKey(String)
Utility routine to turn a string into a key of the right length.
 o setKey(byte[])
Set the key from a block of bytes.
 o setKey(String)
Utility routine to set the key from a string.

Variables

 o keySize
 public int keySize
How big a key is. Keyless ciphers use 0. Variable-length-key ciphers also use 0.

Constructors

 o Cipher
 public Cipher(int keySize)
Constructor.

Methods

 o keySize
 public int keySize()
Return how big a key is.

 o setKey
 public abstract void setKey(byte key[])
Set the key from a block of bytes.

 o setKey
 public void setKey(String keyStr)
Utility routine to set the key from a string.

 o 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