ICryptographyProvider.ComputeHmacSha256Hash Method
Computes the Hash-based Message Authentication Code (HMAC) by using the sha256 hash function.
Namespace: Microsoft.WindowsAzure.Common.Platform
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Usage
'Usage
Dim instance As ICryptographyProvider
Dim key As Byte()
Dim data As Byte()
Dim returnValue As Byte()
returnValue = instance.ComputeHmacSha256Hash(key, data)
Syntax
'Declaration
Function ComputeHmacSha256Hash ( _
key As Byte(), _
data As Byte() _
) As Byte()
byte[] ComputeHmacSha256Hash (
byte[] key,
byte[] data
)
array<unsigned char>^ ComputeHmacSha256Hash (
array<unsigned char>^ key,
array<unsigned char>^ data
)
byte[] ComputeHmacSha256Hash (
byte[] key,
byte[] data
)
function ComputeHmacSha256Hash (
key : byte[],
data : byte[]
) : byte[]
Parameters
- key
The cryptography key.
- data
The value of the computed hash code.
Return Value
The computed HMAC.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
ICryptographyProvider Interface
ICryptographyProvider Members
Microsoft.WindowsAzure.Common.Platform Namespace