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: