@li0ard/kuznyechik
Version:
Kuznyechik cipher implementation in pure TypeScript
17 lines (16 loc) • 526 B
TypeScript
/**
* Encrypts data using Electronic Codebook (ECB) mode with Kuznyechik cipher.
*
* @param key Encryption key
* @param data Data to be encrypted
* @returns {Uint8Array}
*/
export declare const encryptECB: (key: Uint8Array, data: Uint8Array) => Uint8Array;
/**
* Decrypts data using Electronic Codebook (ECB) mode with Kuznyechik cipher.
*
* @param key Encryption key
* @param data Data to be decrypted
* @returns {Uint8Array}
*/
export declare const decryptECB: (key: Uint8Array, data: Uint8Array) => Uint8Array;