SignHash Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Generates a signature for the specified hash value.
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Function SignHash ( _
hash As Byte(), _
hashAlgorithm As MechanismType _
) As Byte()
public byte[] SignHash(
byte[] hash,
MechanismType hashAlgorithm
)
public:
array<unsigned char>^ SignHash(
array<unsigned char>^ hash,
MechanismType hashAlgorithm
)
member SignHash :
hash:byte[] *
hashAlgorithm:MechanismType -> byte[]
public function SignHash(
hash : byte[],
hashAlgorithm : MechanismType
) : byte[]
Parameters
- hash
Type: array<System. . :: . .Byte> [] () [] []
The hash value of the data to be signed.
- hashAlgorithm
Type: Microsoft.SPOT.Cryptoki. . :: . .MechanismType
The hash algorithm used to create the hash value of the data.
Return Value
Type: array<System. . :: . .Byte> [] () [] []
A digital 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.