|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
DecryptSessions objects are used to decrypt ciphertext generated with a correpsonding EncryptSession object. They must in most cases be initialized with the appropriate key.
EncryptSession| Method Summary | |
void |
close()
Close files and kill threads owned by the object. |
byte[] |
decrypt(byte[] source,
int i,
int length)
Send bytes to the DecryptMode for decryption. |
CipherKey |
getKey()
Return the key used for decryption. |
int |
plainBlockSize()
Return the size of the blocks of plaintext output by this object. |
void |
setKey(CipherKey key)
Set the key to use for encryption. |
| Method Detail |
public CipherKey getKey()
public void setKey(CipherKey key)
throws CryptoException
CryptoException - if there is data in the internal buffer
which should be encrypted with the old key.public int plainBlockSize()
public 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.
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||