Module io.github.mmm.crypto.bc
Class SignatureVerifierImplEcBc<S extends SignatureEcBc>
- java.lang.Object
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureProcessorImplEcBc<S>
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureVerifierImplEcBc<S>
-
- Type Parameters:
S
- type ofSignatureEcBc
.
- All Implemented Interfaces:
CryptoAlgorithm
,SignatureProcessor
,SignatureVerifier<S>
,SignatureVerifierSimple
,CryptoChunker
,CryptoProcessor
public class SignatureVerifierImplEcBc<S extends SignatureEcBc> extends SignatureProcessorImplEcBc<S> implements SignatureVerifier<S>
Implementation ofSignatureVerifier
forSignatureEcBc
.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureProcessorImplEcBc
data, signer
-
-
Constructor Summary
Constructors Constructor Description SignatureVerifierImplEcBc(SignatureConfigEcDsa<S> config, org.bouncycastle.crypto.signers.ECDSASigner signer)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
verifyAfterUpdate(byte[] signature, int offset, int length)
boolean
verifyAfterUpdate(S signature)
-
Methods inherited from class io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureProcessorImplEcBc
getAlgorithm, getConfig, getSignatureFactory, reset, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, process, reset
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureVerifier
verify, verify, verify, verifyUnsafe
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureVerifierSimple
verify, verify, verify, verifyAfterUpdate
-
-
-
-
Constructor Detail
-
SignatureVerifierImplEcBc
public SignatureVerifierImplEcBc(SignatureConfigEcDsa<S> config, org.bouncycastle.crypto.signers.ECDSASigner signer)
The constructor.- Parameters:
config
- theconfig
.signer
- the underlyingECDSASigner
.
-
-
Method Detail
-
verifyAfterUpdate
public boolean verifyAfterUpdate(S signature)
- Specified by:
verifyAfterUpdate
in interfaceSignatureVerifier<S extends SignatureEcBc>
- Parameters:
signature
- thebyte
array with the signature as raw data.- Returns:
true
if the given signature is valid,false
otherwise.
-
verifyAfterUpdate
public boolean verifyAfterUpdate(byte[] signature, int offset, int length)
- Specified by:
verifyAfterUpdate
in interfaceSignatureVerifierSimple
- Parameters:
signature
- thebyte
array with the signature as raw data.offset
- the index where to start reading data fromsignature
.length
- the number of bytes to read fromsignature
.- Returns:
true
if the given signature is valid,false
otherwise.
-
-