|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DecryptingStream
Decrypting streams are able to decrypt and verify data which has been
encrypted by EncryptingStream
objects.
Method Summary | |
---|---|
int |
doFinalDecrypt(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Do the final decrypt operation. |
VerifyingStream |
getVerifyingStream()
Returns a Verifying Stream able to verify signatures on ciphertext inputs to this Decrypting Stream |
void |
initDecrypt(java.nio.ByteBuffer input)
Initializes this stream for decryption. |
int |
maxOutputSize(int inputLen)
Returns the maximum length of the output given the input length. |
int |
updateDecrypt(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Update with more input to decrypt. |
Method Detail |
---|
VerifyingStream getVerifyingStream()
void initDecrypt(java.nio.ByteBuffer input) throws KeyczarException
input
- The input containing any IV or other header data.
KeyczarException
- If there is any error initializing this Stream;
typically this would be a Java JCE exception.int updateDecrypt(java.nio.ByteBuffer input, java.nio.ByteBuffer output) throws KeyczarException
input
- The input to decrypt.output
- The decrypted output, if any.
KeyczarException
- If a Java JCE error occurs or the output buffer
is too small.int doFinalDecrypt(java.nio.ByteBuffer input, java.nio.ByteBuffer output) throws KeyczarException
input
- The input to decrypt.output
- The decrypted output, if any.
KeyczarException
- If a Java JCE error occurs or the output buffer
is too small.int maxOutputSize(int inputLen)
inputLen
- The input length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |