All Packages Class Hierarchy This Package Previous Next Index
Class is.hi.logir.cryptonite.DecryptCBC
java.lang.Object
|
+----is.hi.logir.cryptonite.Cryptonite
|
+----is.hi.logir.cryptonite.DecryptMode
|
+----is.hi.logir.cryptonite.DecryptCBC
- public class DecryptCBC
- extends DecryptMode
Use this class to decrypt ciphertext generated by EncryptECB.
- Author:
- Logi Ragnarsson
(logir@hi.is)
- See Also:
- EncryptECB
-
DecryptCBC()
- Create a new CBC-mode decrypt session with no key.
-
DecryptCBC(CipherKey)
-
Create a new CBC-mode decrypt session with the specified key.
-
decrypt(byte[], int, int)
- Decrypt
length bytes from source,
starting at i and return the plaintext.
-
getKey()
-
Return the key used for decryption.
-
setKey(CipherKey)
- Set the key to use for decryption.
DecryptCBC
public DecryptCBC(CipherKey key)
- Create a new CBC-mode decrypt session with the specified key.
DecryptCBC
public DecryptCBC()
- Create a new CBC-mode decrypt session with no key. No decryption
can be performed until a call to
setKey() has been
made.
getKey
public CipherKey getKey()
- Return the key used for decryption.
- Overrides:
- getKey in class DecryptMode
setKey
public void setKey(CipherKey key)
- Set the key to use for decryption.
- Overrides:
- setKey in class DecryptMode
decrypt
public synchronized byte[] decrypt(byte source[],
int i,
int length)
- Decrypt
length bytes from source,
starting at i and return the plaintext. Data is be
encrypted in blocks and 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.
- Overrides:
- decrypt in class DecryptMode
All Packages Class Hierarchy This Package Previous Next Index