@nfen/webcrypto-ts
Version:
Enforced Webcrypto wrapper
23 lines • 557 B
TypeScript
/**
* Code related to SHA_384
* @module
*/
import { Sha384ArrayBuffer } from "./shared.js";
/**
* Get the digest of the buffer
* @example
* ```ts
* const buffer = new TextEncoder().encode("a file");
* const digest = SHA_384.digest(buffer);
* ```
*/
export declare const digest: (data: BufferSource) => Promise<Sha384ArrayBuffer>;
/**
* Get the hex string of the digest
* @example
* ```ts
* const hash = SHA_384.hexify(digest);
* ```
*/
export declare const hexify: (digest: Sha384ArrayBuffer) => string;
//# sourceMappingURL=sha_384.d.ts.map