Table of Contents

Class MacAlgorithm

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll

RFC 2246

public abstract class MacAlgorithm
Inheritance
MacAlgorithm
Inherited Members

Remarks

Note that the values here are implementation-specific and arbitrary. It is recommended not to depend on the particular values (e.g. serialization).

Fields

cls_null

public const int cls_null = 0

Field Value

int

hmac_md5

public const int hmac_md5 = 1

Field Value

int

hmac_sha1

public const int hmac_sha1 = 2

Field Value

int

hmac_sha256

public const int hmac_sha256 = 3

Field Value

int

hmac_sha384

public const int hmac_sha384 = 4

Field Value

int

hmac_sha512

public const int hmac_sha512 = 5

Field Value

int

md5

public const int md5 = 1

Field Value

int

sha

public const int sha = 2

Field Value

int

Methods

GetName(int)

public static string GetName(int macAlgorithm)

Parameters

macAlgorithm int

Returns

string

GetText(int)

public static string GetText(int macAlgorithm)

Parameters

macAlgorithm int

Returns

string

IsHmac(int)

public static bool IsHmac(int macAlgorithm)

Parameters

macAlgorithm int

Returns

bool