crypto-es
Version:
A cryptography algorithms library compatible with ES6 and TypeScript
42 lines (40 loc) • 929 B
text/typescript
import { HMACHashFn, HashFn, WordArray } from "./core.mjs";
import { SHA512Algo } from "./sha512.mjs";
//#region src/sha384.d.ts
/**
* SHA-384 hash algorithm.
*/
declare class SHA384Algo extends SHA512Algo {
_doReset(): void;
_doFinalize(): WordArray;
clone(): this;
}
/**
* Shortcut function to the hasher's object interface.
*
* @param message - The message to hash.
* @returns The hash.
*
* @example
* ```js
* const hash = CryptoJS.SHA384('message');
* const hash = CryptoJS.SHA384(wordArray);
* ```
*/
declare const SHA384: HashFn;
/**
* Shortcut function to the HMAC's object interface.
*
* @param message - The message to hash.
* @param key - The secret key.
* @returns The HMAC.
*
* @example
* ```js
* const hmac = CryptoJS.HmacSHA384(message, key);
* ```
*/
declare const HmacSHA384: HMACHashFn;
//#endregion
export { HmacSHA384, SHA384, SHA384Algo };
//# sourceMappingURL=sha384.d.mts.map