Class BcTlsECDSA13Verifier
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
-
- org.bouncycastle.tls.crypto.impl.bc.BcTlsECDSA13Verifier
-
- All Implemented Interfaces:
TlsVerifier
public class BcTlsECDSA13Verifier extends BcTlsVerifier
Implementation class for verification of ECDSA signatures in TLS 1.3+ using the BC light-weight API.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey
-
-
Constructor Summary
Constructors Constructor Description BcTlsECDSA13Verifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey, int signatureScheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
verifyRawSignature(DigitallySigned signature, 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
-
BcTlsECDSA13Verifier
public BcTlsECDSA13Verifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey, int signatureScheme)
-
-
Method Detail
-
verifyRawSignature
public boolean verifyRawSignature(DigitallySigned signature, byte[] hash)
Description copied from interface:TlsVerifier
Return true if the passed in signature and hash represent a real signature.- Parameters:
signature
- the signature object containing the signature to be verified.hash
- the hash calculated for the signature.- Returns:
- true if signature verifies, false otherwise.
-
-