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)
rgbHash
The data to be signed.
Returns The digital signature for the specified data.
Creates the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) PKCS #1 signature for the specified data.
public
void
SetHashAlgorithm​(string strName)
strName
The name of the hash algorithm to use for the signature formatter.
Specifies the hash algorithm for the Digital Signature Algorithm ( <see cref="T:System.Security.Cryptography.DSA" /> ) signature formatter.
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 formatter.
public
byte[]
CreateSignature​(HashAlgorithm hash)
Inherited from AsymmetricSignatureFormatter
hash
The hash algorithm to use to create the signature.
Returns The signature for the specified hash value.
Creates 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
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object