Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public abstract Class BcTlsDSSVerifier

extends BcTlsVerifier
Class Inheritance
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.bc.BcTlsECDSAVerifier, org.bouncycastle.tls.crypto.impl.bc.BcTlsDSAVerifier
Imports
org.bouncycastle.crypto.DSA, .Signer, org.bouncycastle.crypto.digests.NullDigest, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.crypto.signers.DSADigestSigner, org.bouncycastle.tls.DigitallySigned, .SignatureAndHashAlgorithm

BC light-weight base class for the verifiers supporting the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.

Field Summary

Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier:
cryptopublicKey

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract DSA
protected abstract short
public boolean
verifyRawSignature(DigitallySigned
the signature object containing the signature to be verified.
digitallySigned
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Return true if the passed in signature and hash represent a real signature.

Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier:
getStreamVerifier

Constructor Detail

BcTlsDSSVerifierback to summary
protected BcTlsDSSVerifier(BcTlsCrypto crypto, AsymmetricKeyParameter publicKey)

Method Detail

createDSAImplback to summary
protected abstract DSA createDSAImpl()
getSignatureAlgorithmback to summary
protected abstract short getSignatureAlgorithm()
verifyRawSignatureback to summary
public boolean verifyRawSignature(DigitallySigned digitallySigned, byte[] hash)

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Return true if the passed in signature and hash represent a real signature.

Parameters
digitallySigned:DigitallySigned

the signature object containing the signature to be verified.

hash:byte[]

the hash calculated for the signature.

Returns:boolean

true if signature verifies, false otherwise.