This interface describes the various Crypto Algorithms that are
handed out by the Crypto Service.
author: Henning P. Schmiedehausen version: $Id: CryptoAlgorithm.java 534527 2007-05-02 16:10:59Z tv $
Performs the actual encryption.
Parameters: value - The value to be encrypted The encrypted value throws: Exception - various errors from the underlying ciphers.The caller should catch them and report accordingly.
Algorithms that perform multiple ciphers get told
with setCipher, which cipher to use. This should be
called before any other method call.
If called after any call to encrypt or setSeed, the
CryptoAlgorithm may choose to ignore this or to reset
and use the new cipher.
If any other call is used before this, the algorithm
should use a default cipher and not throw an error.
Parameters: cipher - The cipher to use.