crypto-es
Version:
A cryptography algorithms library compatible with ES6 and TypeScript
29 lines (27 loc) • 843 B
text/typescript
import { WordArray } from "./core.mjs";
import { BlockCipher, CipherObj } from "./cipher-core.mjs";
//#region src/blowfish.d.ts
/**
* Blowfish block cipher algorithm.
*/
declare class BlowfishAlgo extends BlockCipher {
static keySize: number;
static ivSize: number;
private _keyPriorReset?;
constructor(xformMode: number, key: WordArray, cfg?: any);
protected _doReset(): void;
encryptBlock(M: number[], offset: number): void;
decryptBlock(M: number[], offset: number): void;
}
/**
* Shortcut functions to the cipher's object interface.
*
* @example
*
* var ciphertext = CryptoJS.Blowfish.encrypt(message, key, cfg);
* var plaintext = CryptoJS.Blowfish.decrypt(ciphertext, key, cfg);
*/
declare const Blowfish: CipherObj;
//#endregion
export { Blowfish, BlowfishAlgo };
//# sourceMappingURL=blowfish.d.mts.map