UNPKG

@peculiar/webcrypto

Version:
16 lines (15 loc) • 397 B
/** * Copyright (c) 2019-2026, Peculiar Ventures * SPDX-License-Identifier: MIT */ import { ShaCrypto } from "./crypto.js"; import * as core from "webcrypto-core"; // src/mechs/sha/sha_256.ts var Sha256Provider = class extends core.ProviderCrypto { name = "SHA-256"; usages = []; async onDigest(algorithm, data) { return ShaCrypto.digest(algorithm, data); } }; export { Sha256Provider };