Table of Contents

Class BcTlsDssSigner

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll

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

public abstract class BcTlsDssSigner : BcTlsSigner, TlsSigner
Inheritance
BcTlsDssSigner
Implements
Derived
Inherited Members

Constructors

BcTlsDssSigner(BcTlsCrypto, AsymmetricKeyParameter)

protected BcTlsDssSigner(BcTlsCrypto crypto, AsymmetricKeyParameter privateKey)

Parameters

crypto BcTlsCrypto
privateKey AsymmetricKeyParameter

Properties

SignatureAlgorithm

protected abstract short SignatureAlgorithm { get; }

Property Value

short

Methods

CreateDsaImpl(int)

protected abstract IDsa CreateDsaImpl(int cryptoHashAlgorithm)

Parameters

cryptoHashAlgorithm int

Returns

IDsa

GenerateRawSignature(SignatureAndHashAlgorithm, byte[])

Generate an encoded signature based on the passed in hash.

public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] 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.