Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- rgbHash
Type: array<System. . :: . .Byte> [] () [] []
The hash value of the data to be signed.
- algorithm
Type: Microsoft.SPOT.Cryptoki. . :: . .MechanismType
The hash algorithm used to create the hash value of the data.
Return Value
Type: array<System. . :: . .Byte> [] () [] []
The RSA signature for the specified hash value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.