Class BcTlsEd25519Verifier
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
org.bouncycastle.tls.crypto.impl.bc.BcTlsEd25519Verifier
- All Implemented Interfaces:
TlsVerifier
-
Field Summary
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier
crypto, publicKey -
Constructor Summary
ConstructorsConstructorDescriptionBcTlsEd25519Verifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey) -
Method Summary
Modifier and TypeMethodDescriptiongetStreamVerifier(DigitallySigned signature) booleanverifyRawSignature(DigitallySigned signature, byte[] hash) Return true if the passed in signature and hash represent a real signature.
-
Constructor Details
-
BcTlsEd25519Verifier
public BcTlsEd25519Verifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey)
-
-
Method Details
-
verifyRawSignature
Description copied from interface:TlsVerifierReturn 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:
getStreamVerifierin interfaceTlsVerifier- Overrides:
getStreamVerifierin classBcTlsVerifier
-