Dela via


MacAlgorithmProvider.MacLength Property

Definition

Gets the length, in bytes, of the message authentication code.

public:
 property unsigned int MacLength { unsigned int get(); };
uint32_t MacLength();
public uint MacLength { get; }
var uInt32 = macAlgorithmProvider.macLength;
Public ReadOnly Property MacLength As UInteger

Property Value

UInt32

unsigned int

uint32_t

Number of bytes in the MAC.

Remarks

You should verify that the length of the computed HMAC equals the length supported by the specified algorithm. For more information, see the following example.

Applies to