public class BcTlsEd25519Verifier extends BcTlsVerifier
crypto, publicKey| Constructor and Description |
|---|
BcTlsEd25519Verifier(BcTlsCrypto crypto,
org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey) |
| Modifier and Type | Method and Description |
|---|---|
TlsStreamVerifier |
getStreamVerifier(DigitallySigned signature) |
boolean |
verifyRawSignature(DigitallySigned signature,
byte[] hash)
Return true if the passed in signature and hash represent a real signature.
|
public BcTlsEd25519Verifier(BcTlsCrypto crypto, org.bouncycastle.crypto.params.Ed25519PublicKeyParameters publicKey)
public boolean verifyRawSignature(DigitallySigned signature, byte[] hash) throws java.io.IOException
TlsVerifiersignature - the signature object containing the signature to be verified.hash - the hash calculated for the signature.java.io.IOException - in case of an exception verifying signature.public TlsStreamVerifier getStreamVerifier(DigitallySigned signature)
getStreamVerifier in interface TlsVerifiergetStreamVerifier in class BcTlsVerifier