/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/crypto-sha@2.1.1/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import webcrypto from"tiny-webcrypto";import toHex from"uint8-to-hex";const encoder=new TextEncoder,makeHash=e=>{const a=a=>(a="string"==typeof a?encoder.encode(a):a,webcrypto.subtle.digest(e,a)),t=async e=>new Uint8Array(await a(e)),s=async e=>toHex(await t(e));return s.buffer=a,s.hex=s,s.uint8=t,s},sha1=makeHash("SHA-1"),sha256=makeHash("SHA-256"),sha384=makeHash("SHA-384"),sha512=makeHash("SHA-512");export{sha1,sha256,sha384,sha512};
//# sourceMappingURL=/sm/36cb356be1c7f87d98a952607744c0628bbbb90c206b02001976e5d97c59b780.map