CryptoSys API Library Manual

Mac.HexFromBytes Method

Creates a keyed-hash MAC in hex-encoded format from byte input

Syntax

[C#]
public static string HexFromBytes(
	byte[] message,
	byte[] key,
	MacAlgorithm macAlg
)
[VB.NET]
Public Shared Function HexFromBytes ( _
	message As Byte(), _
	key As Byte(), _
	macAlg As MacAlgorithm _
) As String

Parameters

message
Message to be signed in byte format
key
Key in byte format
macAlg
MAC algorithm to be used

Return Value

MAC in hex-encoded format

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: MAC_HexFromBytes

[Contents] [Index]

[HOME]   [NEXT: Mac.HexFromHex Method...]

Copyright © 2001-10 D.I. Management Services Pty Ltd. All rights reserved.