CryptoSys PKI Toolkit Manual

Hmac.BytesFromBytes Method

Creates a keyed-hash HMAC in byte format from byte input

Syntax

[C#]
public static byte[] BytesFromBytes(
	byte[] message,
	byte[] key,
	HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function BytesFromBytes ( _
	message As Byte(), _
	key As Byte(), _
	hashAlg As HashAlgorithm _
) As Byte()

Parameters

message
Message to be signed in byte format
key
Key in byte format
hashAlg
Type: HashAlgorithm
Hash algorithm to be used

Return Value

HMAC in byte format

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: HMAC_Bytes

[Contents] [Index]

[HOME]   [NEXT: Hmac.HexFromBytes Method...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.