public abstract class CryptorImplCombined extends AbstractSecurityAlgorithm implements Cryptor
| Constructor and Description |
|---|
CryptorImplCombined(Cryptor[] cryptors)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
crypt(byte[] input,
int offset,
int length,
boolean complete) |
String |
getAlgorithm() |
protected Cryptor |
getLastCryptor() |
int |
getNonceSize()
Unlike
Cipher this API is designed for ease of use. |
void |
reset()
Will reset the internal state of this object.
|
creationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprocess, process, processprivate Cryptor[] cryptors
public String getAlgorithm()
getAlgorithm in interface CryptoAlgorithmKey.getAlgorithm(),
Signature.getAlgorithm(),
MessageDigest.getAlgorithm(),
SecureRandom.getAlgorithm(),
Cipher.getAlgorithm()public int getNonceSize()
AbstractGetNonceSizeCipher this API is designed for ease of use. Some cryptographic algorithms require an
initialization vector (IV) and others do not. With this API you do not have to
care and cannot do things wrong. The nonce will be prepended automatically to the encrypted payload and
reconstructed from there on decryption. This works both for crypt
and for streaming.getNonceSize in interface AbstractGetNonceSize0 for none.Cipher.getIV()public byte[] crypt(byte[] input,
int offset,
int length,
boolean complete)
crypt in interface Cryptorinput - the next chunk of data to encrypt or decrypt.offset - the offset where to start in the input array.length - the number of bytes to read from the input array.complete - - true to complete the encryption or decryption in case this is the last chunk of data,
false otherwise.output array.Cipher.update(byte[], int, int),
Cipher.doFinal(byte[], int, int)public void reset()
CryptoProcessorCryptor may not reusable. It is therefore preferable to always create a
fresh instance for each cryptographic task.reset in interface CryptoProcessorMessageDigest.reset()Copyright © 2001–2019 mmm-Team. All rights reserved.