public interface CryptoProcessor extends CryptoAlgorithm
algorithm.| Modifier and Type | Method and Description |
|---|---|
default byte[] |
process(byte[] input)
Generic method to process and transform data.
|
default byte[] |
process(byte[] input,
int offset,
int length)
Generic method to process and transform data.
|
default byte[] |
process(byte[] input,
int offset,
int length,
boolean complete)
Generic method to process and transform data.
|
default byte[] |
process(CryptoBinary input,
boolean complete) |
void |
reset()
Will reset the internal state of this object.
|
getAlgorithmdefault byte[] process(byte[] input)
CryptoProcessor |
Equivalent of process(input) |
|---|---|
HashCreator |
|
Cryptor |
return |
SignatureSigner |
|
SignatureVerifier |
throw new |
input - the data to process.input data.default byte[] process(byte[] input,
int offset,
int length)
CryptoProcessor |
Equivalent of process(input, offset, length) |
|---|---|
HashCreator |
|
Cryptor |
return |
SignatureSigner |
|
SignatureVerifier |
throw new |
input - the data to process.offset - the index where to start reading data from input.length - the number of bytes to read from input.input data.default byte[] process(byte[] input,
int offset,
int length,
boolean complete)
CryptoProcessor |
Equivalent of process(input, offset, length, complete) |
|---|---|
HashCreator |
|
Cryptor |
return |
SignatureSigner |
|
SignatureVerifier |
throw new |
input - the data to process.offset - the index where to start reading data from input.length - the number of bytes to read from input.complete - - true to complete/reset this processor after processing the given input,
false otherwise.input data.default byte[] process(CryptoBinary input, boolean complete)
input - the CryptoBinary containing the data to process.complete - - true to complete/reset this processor after processing the given input,
false otherwise.input data.process(byte[])void reset()
Cryptor may not reusable. It is therefore preferable to always create a
fresh instance for each cryptographic task.MessageDigest.reset()Copyright © 2001–2019 mmm-Team. All rights reserved.