public interface MTCSignatureVerifier
An implementation is bound to a specific public key and algorithm at
construction; callers feed it the CosignedMessage bytes (built via
MTCCosignedMessage.encode(byte[], long, long, byte[], byte[])) and the candidate signature, and the
implementation returns whether the signature is valid.
JCA-free and lightweight-crypto-free. Concrete bindings:
org.bouncycastle.cert.plants.bc.BcMTCSignatureVerifier (lightweight)
and
org.bouncycastle.cert.plants.jcajce.JcaMTCSignatureVerifier (JCA).
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
boolean |
verify(byte[] cosignedMessage,
byte[] signature) |
java.lang.String getAlgorithm()
MTCSignatureAlgorithm constants. Lets callers check
a registered verifier against the algorithm a CA publishes for
its cosigner (Section 5.5 sigAlg).boolean verify(byte[] cosignedMessage,
byte[] signature)
cosignedMessage - the encoded CosignedMessage bytessignature - the candidate signature