All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.modes.DecryptMode

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.modes.DecryptMode

public abstract class DecryptMode
extends Crypto
DecryptMode objects are used to decrypt ciphertext generated with a correpsonding 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)
Send bytes to the DecryptMode for decryption.
 o getKey()
Return the key used for decryption.
 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 decryption.

 o setKey
 public abstract void setKey(CipherKey key)
Set the key to use for decryption. Do not call this method when there may be data in the internal buffer.

 o decrypt
 public abstract byte[] decrypt(byte source[],
                                int i,
                                int length)
Send bytes to the DecryptMode for decryption.

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