Class BcTlsDssVerifier
BC light-weight base class for the verifiers supporting the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.
public abstract class BcTlsDssVerifier : BcTlsVerifier, TlsVerifier
- Inheritance
-
BcTlsDssVerifier
- Implements
- Derived
- Inherited Members
Constructors
BcTlsDssVerifier(BcTlsCrypto, AsymmetricKeyParameter)
protected BcTlsDssVerifier(BcTlsCrypto crypto, AsymmetricKeyParameter publicKey)
Parameters
cryptoBcTlsCryptopublicKeyAsymmetricKeyParameter
Properties
SignatureAlgorithm
protected abstract short SignatureAlgorithm { get; }
Property Value
Methods
CreateDsaImpl()
protected abstract IDsa CreateDsaImpl()
Returns
VerifyRawSignature(DigitallySigned, byte[])
Return true if the passed in signature and hash represent a real signature.
public override bool VerifyRawSignature(DigitallySigned digitallySigned, byte[] hash)
Parameters
digitallySignedDigitallySignedthe signature object containing the signature to be verified.
hashbyte[]the hash calculated for the signature.
Returns
- bool
true if signature verifies, false otherwise.
Exceptions
- IOException
in case of an exception verifying signature.