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

public abstract Class BcTlsDSSSigner

extends BcTlsSigner
Class Inheritance
Known Direct Subclasses
org.bouncycastle.tls.crypto.impl.bc.BcTlsECDSASigner, org.bouncycastle.tls.crypto.impl.bc.BcTlsDSASigner
Imports
java.io.IOException, org.bouncycastle.crypto.CryptoException, .DSA, .Signer, org.bouncycastle.crypto.digests.NullDigest, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .ParametersWithRandom, org.bouncycastle.crypto.signers.DSADigestSigner, org.bouncycastle.tls.AlertDescription, .SignatureAndHashAlgorithm, .TlsFatalAlert, org.bouncycastle.tls.crypto.CryptoHashAlgorithm, .TlsCryptoUtils

BC light-weight base class for the signers implementing the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract DSA
createDSAImpl(int cryptoHashAlgorithm)

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.

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

Constructor Detail

BcTlsDSSSignerback to summary
protected BcTlsDSSSigner(BcTlsCrypto crypto, AsymmetricKeyParameter privateKey)

Method Detail

createDSAImplback to summary
protected abstract DSA createDSAImpl(int cryptoHashAlgorithm)
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.
getSignatureAlgorithmback to summary
protected abstract short getSignatureAlgorithm()