Class BcTlsDssSigner
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
cryptoBcTlsCryptoprivateKeyAsymmetricKeyParameter
Properties
SignatureAlgorithm
protected abstract short SignatureAlgorithm { get; }
Property Value
Methods
CreateDsaImpl(int)
protected abstract IDsa CreateDsaImpl(int cryptoHashAlgorithm)
Parameters
cryptoHashAlgorithmint
Returns
GenerateRawSignature(SignatureAndHashAlgorithm, byte[])
Generate an encoded signature based on the passed in hash.
public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash)
Parameters
algorithmSignatureAndHashAlgorithmthe signature algorithm to use.
hashbyte[]the hash calculated for the signature.
Returns
- byte[]
an encoded signature.
Exceptions
- IOException
in case of an exception processing the hash.