Class BcTlsDSSVerifier

java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
org.bouncycastle.tls.crypto.impl.bc.BcTlsDSSVerifier
All Implemented Interfaces:
TlsVerifier
Direct Known Subclasses:
BcTlsDSAVerifier, BcTlsECDSAVerifier

public abstract class BcTlsDSSVerifier extends BcTlsVerifier
BC light-weight base class for the verifiers supporting the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.
  • Constructor Details

    • BcTlsDSSVerifier

      protected BcTlsDSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)
  • Method Details

    • createDSAImpl

      protected abstract org.bouncycastle.crypto.DSA createDSAImpl()
    • getSignatureAlgorithm

      protected abstract short getSignatureAlgorithm()
    • verifyRawSignature

      public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash)
      Description copied from interface: TlsVerifier
      Return true if the passed in signature and hash represent a real signature.
      Parameters:
      digitallySigned - the signature object containing the signature to be verified.
      hash - the hash calculated for the signature.
      Returns:
      true if signature verifies, false otherwise.