Class BcTlsSM2Verifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
org.bouncycastle.tls.crypto.impl.bc.BcTlsSM2Verifier
- All Implemented Interfaces:
TlsVerifier
-
Field Summary
FieldsFields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey
-
Constructor Summary
ConstructorsConstructorDescriptionBcTlsSM2Verifier
(BcTlsCrypto crypto, org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey, byte[] identifier) -
Method Summary
Modifier and TypeMethodDescriptiongetStreamVerifier
(DigitallySigned signature) boolean
verifyRawSignature
(DigitallySigned signature, byte[] hash) Return true if the passed in signature and hash represent a real signature.
-
Field Details
-
identifier
protected final byte[] identifier
-
-
Constructor Details
-
BcTlsSM2Verifier
public BcTlsSM2Verifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey, byte[] identifier)
-
-
Method Details
-
verifyRawSignature
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.
- Throws:
IOException
- in case of an exception verifying signature.
-
getStreamVerifier
- Specified by:
getStreamVerifier
in interfaceTlsVerifier
- Overrides:
getStreamVerifier
in classBcTlsVerifier
-