Share via


SignHash Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Computes the signature for the specified hash value by encrypting it with the private key.

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

Syntax

'Declaration
Public Function SignHash ( _
    rgbHash As Byte(), _
    algorithm As MechanismType _
) As Byte()
public byte[] SignHash(
    byte[] rgbHash,
    MechanismType algorithm
)
public:
array<unsigned char>^ SignHash(
    array<unsigned char>^ rgbHash, 
    MechanismType algorithm
)
member SignHash : 
        rgbHash:byte[] * 
        algorithm:MechanismType -> byte[] 
public function SignHash(
    rgbHash : byte[], 
    algorithm : MechanismType
) : byte[]

Parameters

Return Value

Type: array<System. . :: . .Byte> [] () [] []
The RSA signature for the specified hash value.

.NET Framework Security

See Also

Reference

RSACryptoServiceProvider Class

System.Security.Cryptography Namespace