|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EncryptingStream
Encrypting streams are able to encrypt and sign data.
| Method Summary | |
|---|---|
int |
doFinalEncrypt(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Do the final encrypt operation. |
SigningStream |
getSigningStream()
Returns a Signing Stream able to sign ciphertexts produced by this EncryptingStream. |
int |
initEncrypt(java.nio.ByteBuffer output)
Initializes this stream for encryption. |
int |
maxOutputSize(int inputLen)
Given the length of an input, return the maximum possible length of the output (including headers, the actual ciphertext, and the signature). |
int |
updateEncrypt(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Update with more input to encrypt. |
| Method Detail |
|---|
SigningStream getSigningStream()
throws KeyczarException
KeyczarException
int initEncrypt(java.nio.ByteBuffer output)
throws KeyczarException
output - The output where any IV material will be written.
KeyczarException - If there is any error initializing this Stream;
typically this would be a Java JCE exception.
int updateEncrypt(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
throws KeyczarException
input - The input to encrypt.output - The encrypted output, if any.
KeyczarException - If a Java JCE error occurs or the output buffer
is too small.
int doFinalEncrypt(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
throws KeyczarException
input - The input to encrypt.output - The encrypted output, if any.
KeyczarException - If a Java JCE error occurs or the output buffer
is too small.int maxOutputSize(int inputLen)
inputLen -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||