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.​RSAPKCS1SignatureFormatter

Assembly: System.Security.Cryptography

Inheritance: object → AsymmetricSignatureFormatter → RSAPKCS1SignatureFormatter

Creates an <see cref="T:System.Security.Cryptography.RSA" /> PKCS #1 version 1.5 signature.

Methods

public byte[]
CreateSignature​(byte[] rgbHash)
Creates the <see cref="T:System.Security.Cryptography.RSA" /> PKCS #1 signature for the specified data.
Returns The digital signature for <paramref name="rgbHash" /> .
rgbHash The data to be signed.
public void
SetHashAlgorithm​(string strName)
Sets the hash algorithm to use for creating the signature.
strName The name of the hash algorithm to use for creating the signature.
public void
SetKey​(AsymmetricAlgorithm key)
Sets the private key to use for creating the signature.
key The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the private key.
public byte[]
CreateSignature​(HashAlgorithm hash)
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
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object