Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RSA::SignHash Method (array<Byte>^, HashAlgorithmName, RSASignaturePadding^)

 

When overridden in a derived class, computes the signature for the specified hash value by encrypting it with the private key using the specified padding.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual array<unsigned char>^ SignHash(
	array<unsigned char>^ hash,
	HashAlgorithmName hashAlgorithm,
	RSASignaturePadding^ padding
)

Parameters

hash
Type: array<System::Byte>^

The hash value of the data to be signed.

hashAlgorithm
Type: System.Security.Cryptography::HashAlgorithmName

The hash algorithm used to create the hash value of the data.

padding
Type: System.Security.Cryptography::RSASignaturePadding^

The padding.

Return Value

Type: array<System::Byte>^

The RSA signature for the specified hash value.

Exception Condition
NotImplementedException

A derived class must override this method.

.NET Framework
Available since 4.6
Return to top
Show:
© 2017 Microsoft