Show / Hide Table of Contents

# Class DigestAlgorithm

##### Inheritance

object
DigestAlgorithm

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()

###### Namespace: pdftron.Crypto

###### Assembly: PDFNet.dll

##### Syntax

    public sealed class DigestAlgorithm

### Constructors

#### DigestAlgorithm()

##### Declaration

    public DigestAlgorithm()

### Methods

#### CalculateDigest(Type, byte[])

##### Declaration

    public static byte[] CalculateDigest(DigestAlgorithm.Type in_digest_algorithm_type, byte[] in_message_buf)

##### Parameters

Type | Name | Description
--- | --- | ---
DigestAlgorithm.Type | in_digest_algorithm_type |
byte[] | in_message_buf |

##### Returns

Type | Description
--- | ---
byte[] |

#### SignDigest(byte[], Type, byte[], string)

##### Declaration

    public static byte[] SignDigest(byte[] digest_buf, DigestAlgorithm.Type digest_algorithm_type, byte[] pkcs12_buf, string pkcs12_password)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | digest_buf |
DigestAlgorithm.Type | digest_algorithm_type |
byte[] | pkcs12_buf |
string | pkcs12_password |

##### Returns

Type | Description
--- | ---
byte[] |

#### SignDigest(byte[], Type, string, string)

##### Declaration

    public static byte[] SignDigest(byte[] digest_buf, DigestAlgorithm.Type digest_algorithm_type, string pkcs12_keyfile_path, string pkcs12_password)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | digest_buf |
DigestAlgorithm.Type | digest_algorithm_type |
string | pkcs12_keyfile_path |
string | pkcs12_password |

##### Returns

Type | Description
--- | ---
byte[] |