|
||||||||
| 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 | |
byte[] |
decrypt(byte[] source,
int i,
int length)
Send bytes to the DecryptMode for decryption. |
byte[] |
flush()
Flush any buffers internal to the DecryptSession object and releases any and all resources. |
byte[] |
flush(byte[] source,
int i,
int length)
Decrypt the last part of ciphertext and return plaintext. |
DecryptionKey |
getKey()
Return the key used for decryption. |
int |
plainBlockSize()
Return the size of the blocks of plaintext output by this object. |
void |
setKey(DecryptionKey key)
Set the key to use for encryption. |
| Method Detail |
public DecryptionKey getKey()
public void setKey(DecryptionKey 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 byte[] flush(byte[] source,
int i,
int length)
throws CryptoException
public byte[] flush()
throws CryptoException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL