Show / Hide Table of Contents

Class DigestAlgorithm

Inheritance
Object
DigestAlgorithm
Inherited Members
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public abstract class DigestAlgorithm

Fields

MD5

Declaration
public static readonly DigestAlgorithm MD5
Field Value
Type Description
DigestAlgorithm

SHA1

Declaration
public static readonly DigestAlgorithm SHA1
Field Value
Type Description
DigestAlgorithm

SHA256

Declaration
public static readonly DigestAlgorithm SHA256
Field Value
Type Description
DigestAlgorithm

SHA384

Declaration
public static readonly DigestAlgorithm SHA384
Field Value
Type Description
DigestAlgorithm

SHA512

Declaration
public static readonly DigestAlgorithm SHA512
Field Value
Type Description
DigestAlgorithm

Properties

ByteLength

Declaration
public abstract int ByteLength { get; }
Property Value
Type Description
Int32

Name

Declaration
public abstract string Name { get; }
Property Value
Type Description
String

Oid

Declaration
public abstract string Oid { get; }
Property Value
Type Description
String

XmlUri

Declaration
public abstract string XmlUri { get; }
Property Value
Type Description
String

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
Type Description
Byte[]

ComputeHash(Byte[], Int32, Int32)

Declaration
public byte[] ComputeHash(byte[] buffer, int offset, int count)
Parameters
Type Name Description
Byte[] buffer
Int32 offset
Int32 count
Returns
Type Description
Byte[]

ComputeHash(Stream)

Declaration
public byte[] ComputeHash(Stream inputStream)
Parameters
Type Name Description
Stream inputStream
Returns
Type Description
Byte[]

Equals(DigestAlgorithm)

Declaration
public bool Equals(DigestAlgorithm other)
Parameters
Type Name Description
DigestAlgorithm other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)

GetCsp()

Declaration
public abstract HashAlgorithm GetCsp()
Returns
Type Description
HashAlgorithm

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

GetInstanceByName(String)

Declaration
public static DigestAlgorithm GetInstanceByName(string name)
Parameters
Type Name Description
String name
Returns
Type Description
DigestAlgorithm

GetInstanceByOid(String)

Declaration
public static DigestAlgorithm GetInstanceByOid(string oid)
Parameters
Type Name Description
String oid
Returns
Type Description
DigestAlgorithm

GetInstanceByXmlUri(String)

Declaration
public static DigestAlgorithm GetInstanceByXmlUri(string xmlUri)
Parameters
Type Name Description
String xmlUri
Returns
Type Description
DigestAlgorithm

TryGetInstanceByName(String, out DigestAlgorithm)

Declaration
public static bool TryGetInstanceByName(string name, out DigestAlgorithm alg)
Parameters
Type Name Description
String name
DigestAlgorithm alg
Returns
Type Description
Boolean

TryGetInstanceByOid(String, out DigestAlgorithm)

Declaration
public static bool TryGetInstanceByOid(string oid, out DigestAlgorithm alg)
Parameters
Type Name Description
String oid
DigestAlgorithm alg
Returns
Type Description
Boolean

Operators

Equality(DigestAlgorithm, DigestAlgorithm)

Declaration
public static bool operator ==(DigestAlgorithm a, DigestAlgorithm b)
Parameters
Type Name Description
DigestAlgorithm a
DigestAlgorithm b
Returns
Type Description
Boolean

Inequality(DigestAlgorithm, DigestAlgorithm)

Declaration
public static bool operator !=(DigestAlgorithm a, DigestAlgorithm b)
Parameters
Type Name Description
DigestAlgorithm a
DigestAlgorithm b
Returns
Type Description
Boolean
Back to top Copyright © 2015-2020 Lacuna Software