Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Security.​Cryptography.​DSASignatureDeformatter

Assembly: System.Security.Cryptography

Inheritance: object → AsymmetricSignatureDeformatter → DSASignatureDeformatter

Verifies a Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) PKCS#1 v1.5 signature.

Methods

public void
SetHashAlgorithm​(string strName)
strName The name of the hash algorithm to use for the signature deformatter.
Specifies the hash algorithm for the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature deformatter.
public void
SetKey​(AsymmetricAlgorithm key)
key The instance of <see cref="T:System.Security.Cryptography.DSA" /> that holds the key.
Specifies the key to be used for the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature deformatter.
public bool
VerifySignature​(byte[] rgbHash, byte[] rgbSignature)
rgbHash The data signed with <paramref name="rgbSignature" /> .
rgbSignature The signature to be verified for <paramref name="rgbHash" /> .
Returns <see langword="true" /> if the signature is valid for the data; otherwise, <see langword="false" /> .
Verifies the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature on the data.
public bool
VerifySignature​(HashAlgorithm hash, byte[] rgbSignature)
hash The hash algorithm to use to verify the signature.
rgbSignature The signature to be verified.
Returns <see langword="true" /> if the signature is valid for the hash; otherwise, <see langword="false" /> .
Verifies the signature from the specified hash value.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object