Table of Contents

Class TlsDsaSigner

Namespace
Enterprises.Org.BouncyCastle.Crypto.Tls
Assembly
Enterprises.BouncyCastle.Crypto.dll
public abstract class TlsDsaSigner : AbstractTlsSigner, TlsSigner
Inheritance
TlsDsaSigner
Implements
Derived
Inherited Members

Constructors

TlsDsaSigner()

protected TlsDsaSigner()

Properties

SignatureAlgorithm

protected abstract byte SignatureAlgorithm { get; }

Property Value

byte

Methods

CreateDsaImpl(byte)

protected abstract IDsa CreateDsaImpl(byte hashAlgorithm)

Parameters

hashAlgorithm byte

Returns

IDsa

CreateSigner(SignatureAndHashAlgorithm, AsymmetricKeyParameter)

public override ISigner CreateSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey)

Parameters

algorithm SignatureAndHashAlgorithm
privateKey AsymmetricKeyParameter

Returns

ISigner

CreateVerifyer(SignatureAndHashAlgorithm, AsymmetricKeyParameter)

public override ISigner CreateVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey)

Parameters

algorithm SignatureAndHashAlgorithm
publicKey AsymmetricKeyParameter

Returns

ISigner

GenerateRawSignature(SignatureAndHashAlgorithm, AsymmetricKeyParameter, byte[])

public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash)

Parameters

algorithm SignatureAndHashAlgorithm
privateKey AsymmetricKeyParameter
hash byte[]

Returns

byte[]

MakeInitParameters(bool, ICipherParameters)

protected virtual ICipherParameters MakeInitParameters(bool forSigning, ICipherParameters cp)

Parameters

forSigning bool
cp ICipherParameters

Returns

ICipherParameters

MakeSigner(SignatureAndHashAlgorithm, bool, bool, ICipherParameters)

protected virtual ISigner MakeSigner(SignatureAndHashAlgorithm algorithm, bool raw, bool forSigning, ICipherParameters cp)

Parameters

algorithm SignatureAndHashAlgorithm
raw bool
forSigning bool
cp ICipherParameters

Returns

ISigner

VerifyRawSignature(SignatureAndHashAlgorithm, byte[], AsymmetricKeyParameter, byte[])

public override bool VerifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash)

Parameters

algorithm SignatureAndHashAlgorithm
sigBytes byte[]
publicKey AsymmetricKeyParameter
hash byte[]

Returns

bool