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
-
DecryptMode()
-
-
decrypt(byte[], int, int)
- Decrypt
length bytes from source,
starting at i and return the plaintext.
-
getKey()
- Return the key used for encryption.
-
setKey(CipherKey)
- Set the key to use for decryption.
DecryptMode
public DecryptMode()
getKey
public abstract CipherKey getKey()
- Return the key used for encryption.
setKey
public abstract void setKey(CipherKey key)
- Set the key to use for decryption.
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