C# Class Org.BouncyCastle.Security.MacUtilities

Utility class for creating HMac object from their names/Oids
Mostra file Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Public Methods

Method Description
DoFinal ( IMac mac ) : byte[]
GetAlgorithmName ( DerObjectIdentifier oid ) : string
GetMac ( DerObjectIdentifier id ) : IMac

/// Returns a ObjectIdentifier for a given digest mechanism. ///

GetMac ( string algorithm ) : IMac

Private Methods

Method Description
MacUtilities ( ) : System.Collections

Method Details

DoFinal() public static method

public static DoFinal ( IMac mac ) : byte[]
mac IMac
return byte[]

GetAlgorithmName() public static method

public static GetAlgorithmName ( DerObjectIdentifier oid ) : string
oid Org.BouncyCastle.Asn1.DerObjectIdentifier
return string

GetMac() public static method

/// Returns a ObjectIdentifier for a given digest mechanism. ///
public static GetMac ( DerObjectIdentifier id ) : IMac
id Org.BouncyCastle.Asn1.DerObjectIdentifier
return IMac

GetMac() public static method

public static GetMac ( string algorithm ) : IMac
algorithm string
return IMac