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.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BcTlsDSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.bouncycastle.crypto.DSA
createDSAImpl()
protected abstract short
getSignatureAlgorithm()
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 Detail
-
BcTlsDSSVerifier
protected BcTlsDSSVerifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)
-
-
Method Detail
-
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.
-
-