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.​DSASignatureFormatter
Assembly: System.Security.Cryptography
Inheritance: object → AsymmetricSignatureFormatter → DSASignatureFormatter
Creates a Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature.
Methods
public
byte[]
CreateSignature​(byte[] rgbHash)
Creates the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) PKCS #1 signature for the specified data.
Returns The digital signature for the specified data.
rgbHash
The data to be signed.
public
void
SetHashAlgorithm​(string strName)
Specifies the hash algorithm for the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature formatter.
strName
The name of the hash algorithm to use for the signature formatter.
public
void
SetKey​(AsymmetricAlgorithm key)
Specifies the key to be used for the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature formatter.
key
The instance of <see cref="T:System.Security.Cryptography.DSA" /> that holds the key.
public
byte[]
CreateSignature​(HashAlgorithm hash)
Inherited from AsymmetricSignatureFormatter
Creates the signature from the specified hash value.
Returns The signature for the specified hash value.
hash
The hash algorithm to use to create the signature.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object