Module io.github.mmm.crypto
Interface SignatureSigner<S extends SignatureBinary>
-
- Type Parameters:
S
- type ofSignatureBinary
.
- All Superinterfaces:
CryptoAlgorithm
,CryptoChunker
,CryptoProcessor
,SignatureProcessor
,SignatureSignerSimple
- All Known Implementing Classes:
SignatureSignerImpl
,SignatureSignerImplCryptorWithHash
,SignatureSignerImplEcBc
,SignatureSignerImplWithHash
public interface SignatureSigner<S extends SignatureBinary> extends SignatureSignerSimple
- 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 S
sign(byte[] input, boolean reset)
default S
sign(byte[] input, int offset, int length, boolean reset)
default S
sign(CryptoBinary input, boolean reset)
S
signAfterUpdate(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
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureSignerSimple
process, signAfterUpdateRaw
-
-
-
-
Method Detail
-
signAfterUpdate
S signAfterUpdate(boolean reset)
- Parameters:
reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
sign
default S sign(byte[] input, boolean reset)
- Parameters:
input
- the data to sign.reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
sign
default S sign(byte[] input, int offset, int length, boolean reset)
- Parameters:
input
- the data to sign.offset
- the index where to start reading data frominput
.length
- the number of bytes to read frominput
.reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
sign
default S sign(CryptoBinary input, boolean reset)
- Parameters:
input
- theCryptoBinary
containing the (next)data
to sign. E.g. aHash
.reset
- -true
toreset
after the signature has been generated,false
otherwise.- Returns:
- the final signature generated for the
processed data
.
-
-