| Constructor and Description |
|---|
StandardCryptdec(String id,
Cipher eCipher,
Cipher dCipher,
byte[] iv) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] bytes)
Decrypt bytes and return the decrypted data.
|
void |
decryptFinal(OutputStream os)
Finalize a pending decryption process with the data in the internal
buffer.
|
void |
decryptUpdate(InputStream is,
OutputStream os)
Append all bytes from input stream is to the internal buffer for
decryption.
|
byte[] |
encrypt(byte[] bytes)
Decrypt bytes and return the decrypted data.
|
void |
encryptFinal(OutputStream os)
Finalize a pending decryption process with the data in the internal
buffer.
|
void |
encryptUpdate(InputStream is,
OutputStream os)
Append all bytes from input stream is to the internal buffer for
decryption.
|
String |
getId()
A unique id for the
ICryptdec. |
byte[] |
getInitializationVector() |
public byte[] decrypt(byte[] bytes)
throws IOException
ICryptdecICryptdec may be reused after this operation finished
successful.decrypt in interface ICryptdecIOExceptionpublic void decryptFinal(OutputStream os) throws IOException
ICryptdecICryptdec may be reused after this operation finished
successful.decryptFinal in interface ICryptdecIOExceptionpublic void decryptUpdate(InputStream is, OutputStream os) throws IOException
ICryptdecdecryptUpdate in interface ICryptdecIOExceptionpublic byte[] encrypt(byte[] bytes)
throws IOException
ICryptdecICryptdec may be reused after this operation finished
successful.encrypt in interface ICryptdecIOExceptionpublic void encryptFinal(OutputStream os) throws IOException
ICryptdecICryptdec may be reused after this operation finished
successful.encryptFinal in interface ICryptdecIOExceptionpublic void encryptUpdate(InputStream is, OutputStream os) throws IOException
ICryptdecencryptUpdate in interface ICryptdecIOExceptionpublic String getId()
ICryptdecICryptdec. This may be used to tag encrypted
data for later decryption.public byte[] getInitializationVector()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.