Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

DSAManaged Class

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)

Managed implementation of DSA signature algorithm.

Syntax
public class DSAManaged : DSA, IDisposable
Inheritance
Object
AsymmetricAlgorithm
DSA
DSAManaged
Implements
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
AsymmetricAlgorithm.Clear()
AsymmetricAlgorithm.Dispose()
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)
AsymmetricAlgorithm.ExportPkcs8PrivateKey()
AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem()
AsymmetricAlgorithm.ExportSubjectPublicKeyInfo()
AsymmetricAlgorithm.ExportSubjectPublicKeyInfoPem()
AsymmetricAlgorithm.KeySize
AsymmetricAlgorithm.KeySizeValue
AsymmetricAlgorithm.LegalKeySizes
AsymmetricAlgorithm.LegalKeySizesValue
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters, Span<Char>, Int32)
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters, Span<Char>, Int32)
AsymmetricAlgorithm.TryExportPkcs8PrivateKeyPem(Span<Char>, Int32)
AsymmetricAlgorithm.TryExportSubjectPublicKeyInfoPem(Span<Char>, Int32)
DSA.Create()
DSA.Create(Int32)
DSA.Create(DSAParameters)
DSA.Create(String)
DSA.CreateSignature(Byte[], DSASignatureFormat)
DSA.CreateSignatureCore(ReadOnlySpan<Byte>, DSASignatureFormat)
DSA.GetMaxSignatureSize(DSASignatureFormat)
DSA.HashData(Byte[], Int32, Int32, HashAlgorithmName)
DSA.HashData(Stream, HashAlgorithmName)
DSA.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)
DSA.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Int32)
DSA.ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)
DSA.ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>)
DSA.ImportFromPem(ReadOnlySpan<Char>)
DSA.ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32)
DSA.ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32)
DSA.SignData(Byte[], Int32, Int32, HashAlgorithmName)
DSA.SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)
DSA.SignData(Byte[], HashAlgorithmName)
DSA.SignData(Byte[], HashAlgorithmName, DSASignatureFormat)
DSA.SignData(Stream, HashAlgorithmName)
DSA.SignData(Stream, HashAlgorithmName, DSASignatureFormat)
DSA.SignDataCore(Stream, HashAlgorithmName, DSASignatureFormat)
DSA.SignDataCore(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)
DSA.TryCreateSignature(ReadOnlySpan<Byte>, Span<Byte>, Int32)
DSA.TryCreateSignature(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)
DSA.TryCreateSignatureCore(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)
DSA.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)
DSA.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)
DSA.TryExportPkcs8PrivateKey(Span<Byte>, Int32)
DSA.TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)
DSA.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)
DSA.TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)
DSA.TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)
DSA.TrySignDataCore(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)
DSA.VerifyData(Byte[], Byte[], HashAlgorithmName)
DSA.VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)
DSA.VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName)
DSA.VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat)
DSA.VerifyData(Stream, Byte[], HashAlgorithmName)
DSA.VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)
DSA.VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)
DSA.VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)
DSA.VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)
DSA.VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)
DSA.VerifySignature(Byte[], Byte[], DSASignatureFormat)
DSA.VerifySignature(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
DSA.VerifySignature(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)
DSA.VerifySignatureCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

Remarks

The purpose of this class is to make it possible to verify signatures without the need to use CryptoAPI, which is not available in some scenarios.

Even though it is possible to generate DSA keys and sign data using this class, but this process has not been optimized for speed and is very slow.

Constructors

Name Description
DSAManaged()

Initializes a new instance of the DSAManaged class with the key size of 1024.

DSAManaged(Int32)

Initializes a new instance of the DSAManaged class with the specified key size.

DSAManaged(Int32, Byte[])

Initializes a new instance of the DSAManaged class with the specified key size and seed.

Properties

Name Description
KeyExchangeAlgorithm

Gets the name of the key exchange algorithm available with this implementation of DSA.

SignatureAlgorithm

Gets the name of the signature algorithm available with this implementation of DSA.

Methods

Name Description
CreateSignature(Byte[])

Creates the DSA signature for the specified data.

Dispose(Boolean)

Releases the unmanaged resources and optionally releases the managed resources.

ExportParameters(Boolean)

Exports the DSAParameters.

FromXmlString(String)

When overridden in a derived class, reconstructs a DSAManaged object from an XML string.

ImportParameters(DSAParameters)

Imports the specified DSAParameters.

SignData(Byte[], HashAlgorithm)

Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.

SignHash(Byte[])

Computes the signature for the specified hash value by signing it with the private key.

ToXmlString(Boolean)

Creates and returns an XML string representation of the current object.

VerifyData(Byte[], HashAlgorithm, Byte[])

Verifies the specified signature data by comparing it to the signature computed for the specified data.

VerifyHash(Byte[], Byte[])

Verifies the specified signature data by comparing it to the signature computed for the specified hash value.

VerifySignature(Byte[], Byte[])

Verifies the DSA signature for the specified data.

In This Article
  • Remarks
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies