Class: DigestAlgorithm

Core.PDFNet. DigestAlgorithm


new DigestAlgorithm()

[Missing documentation]

Members


<static> Type

Properties:
Name Type Description
e_SHA1 number
e_SHA256 number
e_SHA384 number
e_SHA512 number
e_RIPEMD160 number
e_unknown_digest_algorithm number

Methods


<static> calculateDigest(in_algorithm, in_buffer)

Parameters:
Name Type Description
in_algorithm number
PDFNet.DigestAlgorithm.Type = {
	e_SHA1 : 0
	e_SHA256 : 1
	e_SHA384 : 2
	e_SHA512 : 3
	e_RIPEMD160 : 4
	e_unknown_digest_algorithm : 5
}
in_buffer ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray
Returns:
A promise that resolves to an object of type: "Uint8Array"
Type
Promise.<Uint8Array>