Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public Class JcaTlsEdDSAVerifier

extends Object
implements TlsVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsVerifier
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEd25519Verifier, org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsEd448Verifier
Imports
java.io.IOException, java.security.PublicKey, org.bouncycastle.tls.DigitallySigned, .HashAlgorithm, .SignatureAndHashAlgorithm, org.bouncycastle.tls.crypto.TlsStreamVerifier, .TlsVerifier

Field Summary

Modifier and TypeField and Description
protected final String
protected final short
protected final JcaTlsCrypto
protected final PublicKey

Constructor Summary

AccessConstructor and Description
public
JcaTlsEdDSAVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName)

Method Summary

Modifier and TypeMethod and Description
public TlsStreamVerifier
public boolean
verifyRawSignature(DigitallySigned
the signature object containing the signature to be verified.
signature
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Return true if the passed in signature and hash represent a real signature.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmNameback to summary
protected final String algorithmName
algorithmTypeback to summary
protected final short algorithmType
cryptoback to summary
protected final JcaTlsCrypto crypto
publicKeyback to summary
protected final PublicKey publicKey

Constructor Detail

JcaTlsEdDSAVerifierback to summary
public JcaTlsEdDSAVerifier(JcaTlsCrypto crypto, PublicKey publicKey, short algorithmType, String algorithmName)

Method Detail

getStreamVerifierback to summary
public TlsStreamVerifier getStreamVerifier(DigitallySigned signature) throws IOException

Implements org.bouncycastle.tls.crypto.TlsVerifier.getStreamVerifier.

verifyRawSignatureback to summary
public boolean verifyRawSignature(DigitallySigned signature, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsVerifier.verifyRawSignature.

Return true if the passed in signature and hash represent a real signature.

Parameters
signature:DigitallySigned

the signature object containing the signature to be verified.

hash:byte[]

the hash calculated for the signature.

Returns:boolean

true if signature verifies, false otherwise.

Exceptions
IOException:
in case of an exception verifying signature.