CryptoSys API Library Manual

Mac.BytesFromBytes Method

Creates a MAC in byte format from byte input

Syntax

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

Parameters

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

Return Value

MAC in byte format

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: MAC_Bytes

[Contents] [Index]

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

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