Module io.github.mmm.crypto
Interface SignatureSignerSimple
-
- All Superinterfaces:
CryptoAlgorithm,CryptoChunker,CryptoProcessor,SignatureProcessor
- All Known Subinterfaces:
SignatureSigner<S>
- All Known Implementing Classes:
SignatureSignerImpl,SignatureSignerImplCryptorWithHash,SignatureSignerImplEcBc,SignatureSignerImplWithHash
public interface SignatureSignerSimple extends SignatureProcessor
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default byte[]process(byte[] input, int offset, int length, boolean complete)Generic method to process and transform data.byte[]signAfterUpdateRaw(boolean reset)-
Methods inherited from interface io.github.mmm.crypto.algorithm.CryptoAlgorithm
getAlgorithm
-
Methods inherited from interface io.github.mmm.crypto.CryptoChunker
update, update, update
-
Methods inherited from interface io.github.mmm.crypto.CryptoProcessor
process, process, process, reset
-
-
-
-
Method Detail
-
signAfterUpdateRaw
byte[] signAfterUpdateRaw(boolean reset)
- Parameters:
reset- -truetoresetafter the signature has been generated,falseotherwise.- Returns:
- the final signature generated for the
processed data.
-
process
default byte[] process(byte[] input, int offset, int length, boolean complete)Description copied from interface:CryptoProcessorGeneric method to process and transform data.CryptoProcessorEquivalent of process(input, offset, length, complete)HashCreatorupdate(input, offset, length); returnhash(complete);Cryptorreturncrypt(input, offset, length, true);SignatureSignerupdate(input, offset, length); returnsignAfterUpdate(complete);SignatureVerifierthrow newUnsupportedOperationException();- Specified by:
processin interfaceCryptoProcessor- Parameters:
input- the data to process.offset- the index where to start reading data frominput.length- the number of bytes to read frominput.complete- -trueto complete/reset this processor after processing the giveninput,falseotherwise.- Returns:
- the transformed
inputdata.
-
-