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

public Class BcTlsRSAPSSSigner

extends BcTlsSigner
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.crypto.CryptoException, .Digest, org.bouncycastle.crypto.engines.RSABlindedEngine, org.bouncycastle.crypto.params.ParametersWithRandom, .RSAKeyParameters, org.bouncycastle.crypto.signers.PSSSigner, org.bouncycastle.tls.AlertDescription, .SignatureAndHashAlgorithm, .SignatureScheme, .TlsFatalAlert

Operator supporting the generation 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.BcTlsSigner:
cryptoprivateKey

Constructor Summary

AccessConstructor and Description
public
BcTlsRSAPSSSigner(BcTlsCrypto crypto, RSAKeyParameters privateKey, int signatureScheme)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner:
getStreamSigner

Field Detail

signatureSchemeback to summary
private final int signatureScheme

Constructor Detail

BcTlsRSAPSSSignerback to summary
public BcTlsRSAPSSSigner(BcTlsCrypto crypto, RSAKeyParameters privateKey, int signatureScheme)

Method Detail

generateRawSignatureback to summary
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

Parameters
algorithm:SignatureAndHashAlgorithm

the signature algorithm to use.

hash:byte[]

the hash calculated for the signature.

Returns:byte[]

an encoded signature.

Exceptions
IOException:
in case of an exception processing the hash.