Interface Sha2DigestParams

The Sha2DigestParams interface defines the algorithm-specific parameters that should be passed into the digest() method when using the SHA-2 algorithm.

interface Sha2DigestParams {
    algorithm: "SHA-256";
    data: Uint8Array;
}

Hierarchy (view full)

Properties

Properties

algorithm: "SHA-256"

A string defining the name of hash function to use. The value must be one of the following:

  • "SHA-256": Generates a 256-bit digest.
data: Uint8Array

Data to be digested.