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
BC light-weight base class for the verifiers supporting the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.
-
Field Summary
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey
-
Constructor Summary
ModifierConstructorDescriptionprotected
BcTlsDSSVerifier
(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.bouncycastle.crypto.DSA
protected abstract short
boolean
verifyRawSignature
(DigitallySigned digitallySigned, byte[] hash) Return true if the passed in signature and hash represent a real signature.Methods inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
getStreamVerifier
-
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
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.
-