public class ChunkCipher extends CipherBase
| Modifier and Type | Field and Description |
|---|---|
static int |
PREFERRED_CHUNK_SIZE |
cipher| Constructor and Description |
|---|
ChunkCipher()
Create a new instance of
ChunkCipher |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Finish data processing.
|
byte[] |
process(byte[] data)
Process chunk.
|
long |
startDecryptionWithKey(Recipient recipient,
PrivateKey privateKey)
Start decryption with private key.
|
long |
startDecryptionWithKey(Recipient recipient,
PrivateKey privateKey,
Password privateKeyPassword)
Start decryption with private key.
|
long |
startDecryptionWithPassword(Password password)
Start decryption with password.
|
long |
startEncryption()
Start encryption.
|
long |
startEncryption(long preferredChunkSize)
Start encryption.
|
addKeyRecipient, addKeyRecipient, addPasswordRecipient, addPasswordRecipient, close, customParams, defineContentInfoSize, getContentInfo, removeAllRecipients, removeKeyRecipient, removePasswordRecipient, setContentInfopublic long startEncryption(long preferredChunkSize)
preferredChunkSize - the preferred chunk size.public long startEncryption()
public long startDecryptionWithKey(Recipient recipient, PrivateKey privateKey, Password privateKeyPassword)
recipient - the key recipient.privateKey - the private key of recipient.privateKeyPassword - the password of private key.public long startDecryptionWithKey(Recipient recipient, PrivateKey privateKey)
recipient - the key recipient.privateKey - the private key of recipient.public long startDecryptionWithPassword(Password password)
password - the password.public byte[] process(byte[] data)
data - the data to be processed.public void finish()
Copyright © 2016. All rights reserved.