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

public Class BcTlsRSASigner

extends BcTlsSigner
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.crypto.CryptoException, .Digest, .Signer, org.bouncycastle.crypto.digests.NullDigest, org.bouncycastle.crypto.encodings.PKCS1Encoding, org.bouncycastle.crypto.engines.RSABlindedEngine, org.bouncycastle.crypto.params.ParametersWithRandom, .RSAKeyParameters, org.bouncycastle.crypto.signers.GenericSigner, .RSADigestSigner, org.bouncycastle.tls.AlertDescription, .SignatureAlgorithm, .SignatureAndHashAlgorithm, .TlsFatalAlert, .TlsUtils

Operator supporting the generation of RSASSA-PKCS1-v1_5 signatures using the BC light-weight API.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
BcTlsRSASigner(BcTlsCrypto crypto, RSAKeyParameters privateKey, RSAKeyParameters publicKey)
Deprecated Use constructor without 'publicKey' parameter.

public

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

Constructor Detail

BcTlsRSASignerback to summary
public BcTlsRSASigner(BcTlsCrypto crypto, RSAKeyParameters privateKey, RSAKeyParameters publicKey)

Deprecated

Use constructor without 'publicKey' parameter.

BcTlsRSASignerback to summary
public BcTlsRSASigner(BcTlsCrypto crypto, RSAKeyParameters privateKey)

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.