All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.hi.logir.cryptonite.DecryptMode

java.lang.Object
   |
   +----is.hi.logir.cryptonite.Cryptonite
           |
           +----is.hi.logir.cryptonite.DecryptMode

public abstract class DecryptMode
extends Cryptonite
DecryptMode objects are used to decrypt ciphertext generated with an EncryptMode object. They must in most cases be initialized with the appropriate key.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
EncryptMode

Constructor Index

 o DecryptMode()

Method Index

 o decrypt(byte[], int, int)
Decrypt length bytes from source, starting at i and return the plaintext.
 o getKey()
Return the key used for encryption.
 o setKey(CipherKey)
Set the key to use for decryption.

Constructors

 o DecryptMode
 public DecryptMode()

Methods

 o getKey
 public abstract CipherKey getKey()
Return the key used for encryption.

 o setKey
 public abstract void setKey(CipherKey key)
Set the key to use for decryption.

 o decrypt
 public abstract byte[] decrypt(byte source[],
                                int i,
                                int length)
Decrypt length bytes from source, starting at i and return the plaintext. Data may be encrypted in blocks in which case only whole blocks of plaintext are written to dest. Any remaining data will be stored and prepended to source in the next call to decrypt.


All Packages  Class Hierarchy  This Package  Previous  Next  Index