C# Class Org.BouncyCastle.Security.DigestUtilities

Utility class for creating IDigest objects from their names/Oids
显示文件 Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
DoFinal ( IDigest digest ) : byte[]
GetAlgorithmName ( DerObjectIdentifier oid ) : string
GetDigest ( DerObjectIdentifier id ) : IDigest
GetDigest ( string algorithm ) : IDigest
GetObjectIdentifier ( string mechanism ) : DerObjectIdentifier

Returns a ObjectIdentifier for a given digest mechanism.

Private Methods

Method Description
DigestUtilities ( ) : System.Collections

Method Details

DoFinal() public static method

public static DoFinal ( IDigest digest ) : byte[]
digest IDigest
return byte[]

GetAlgorithmName() public static method

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

GetDigest() public static method

public static GetDigest ( DerObjectIdentifier id ) : IDigest
id DerObjectIdentifier
return IDigest

GetDigest() public static method

public static GetDigest ( string algorithm ) : IDigest
algorithm string
return IDigest

GetObjectIdentifier() public static method

Returns a ObjectIdentifier for a given digest mechanism.
public static GetObjectIdentifier ( string mechanism ) : DerObjectIdentifier
mechanism string A string representation of the digest meanism.
return DerObjectIdentifier