Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public Class BcTlsRSAPSSVerifier

extends BcTlsVerifier
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.crypto.Digest, org.bouncycastle.crypto.engines.RSAEngine, org.bouncycastle.crypto.params.RSAKeyParameters, org.bouncycastle.crypto.signers.PSSSigner, org.bouncycastle.tls.DigitallySigned, .SignatureAndHashAlgorithm, .SignatureScheme

Operator supporting the verification of RSASSA-PSS signatures using the BC light-weight API.

Field Summary

Modifier and TypeField and Description
private final int
Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier:
cryptopublicKey

Constructor Summary

AccessConstructor and Description
public
BcTlsRSAPSSVerifier(BcTlsCrypto crypto, RSAKeyParameters publicKey, int signatureScheme)

Method Summary

Modifier and TypeMethod and Description
public boolean
verifyRawSignature(DigitallySigned
the signature object containing the signature to be verified.
digitallySigned
,
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 org.bouncycastle.tls.crypto.impl.bc.BcTlsVerifier:
getStreamVerifier

Field Detail

signatureSchemeback to summary
private final int signatureScheme

Constructor Detail

BcTlsRSAPSSVerifierback to summary
public BcTlsRSAPSSVerifier(BcTlsCrypto crypto, RSAKeyParameters publicKey, int signatureScheme)

Method Detail

verifyRawSignatureback to summary
public boolean verifyRawSignature(DigitallySigned digitallySigned, 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
digitallySigned: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.