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