Class DigestAlgorithm
Inheritance
DigestAlgorithm
Assembly: Lacuna.Pki.dll
Syntax
public abstract class DigestAlgorithm
Fields
MD5
Declaration
public static readonly DigestAlgorithm MD5
Field Value
SHA1
Declaration
public static readonly DigestAlgorithm SHA1
Field Value
SHA256
Declaration
public static readonly DigestAlgorithm SHA256
Field Value
SHA384
Declaration
public static readonly DigestAlgorithm SHA384
Field Value
SHA512
Declaration
public static readonly DigestAlgorithm SHA512
Field Value
Properties
ByteLength
Declaration
public abstract int ByteLength { get; }
Property Value
Name
Declaration
public abstract string Name { get; }
Property Value
Oid
Declaration
public abstract string Oid { get; }
Property Value
XmlUri
Declaration
public abstract string XmlUri { get; }
Property Value
Methods
CheckLength(Byte[])
Declaration
public void CheckLength(byte[] digestValue)
Parameters
Type |
Name |
Description |
Byte[] |
digestValue |
|
ComputeHash(Byte[])
Declaration
public byte[] ComputeHash(byte[] buffer)
Parameters
Type |
Name |
Description |
Byte[] |
buffer |
|
Returns
ComputeHash(Byte[], Int32, Int32)
Declaration
public byte[] ComputeHash(byte[] buffer, int offset, int count)
Parameters
Returns
ComputeHash(Stream)
Declaration
public byte[] ComputeHash(Stream inputStream)
Parameters
Type |
Name |
Description |
Stream |
inputStream |
|
Returns
Equals(DigestAlgorithm)
Declaration
public bool Equals(DigestAlgorithm other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetCsp()
Declaration
public abstract HashAlgorithm GetCsp()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetInstanceByName(String)
Declaration
public static DigestAlgorithm GetInstanceByName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetInstanceByOid(String)
Declaration
public static DigestAlgorithm GetInstanceByOid(string oid)
Parameters
Type |
Name |
Description |
String |
oid |
|
Returns
GetInstanceByXmlUri(String)
Declaration
public static DigestAlgorithm GetInstanceByXmlUri(string xmlUri)
Parameters
Type |
Name |
Description |
String |
xmlUri |
|
Returns
TryGetInstanceByName(String, out DigestAlgorithm)
Declaration
public static bool TryGetInstanceByName(string name, out DigestAlgorithm alg)
Parameters
Returns
TryGetInstanceByOid(String, out DigestAlgorithm)
Declaration
public static bool TryGetInstanceByOid(string oid, out DigestAlgorithm alg)
Parameters
Returns
Operators
Equality(DigestAlgorithm, DigestAlgorithm)
Declaration
public static bool operator ==(DigestAlgorithm a, DigestAlgorithm b)
Parameters
Returns
Inequality(DigestAlgorithm, DigestAlgorithm)
Declaration
public static bool operator !=(DigestAlgorithm a, DigestAlgorithm b)
Parameters
Returns