UNPKG

@li0ard/kuznyechik

Version:

Kuznyechik cipher implementation in pure TypeScript

17 lines (16 loc) 558 B
/** Block size */ export declare const BLOCK_SIZE = 16; /** Key size */ export declare const KEY_SIZE = 32; /** Cipher rounds */ export declare const ROUNDS = 10; /** Constant `PI` aka S-Box for substitution */ export declare const PI: Uint8Array; /** Constant `PI_REV` aka reversed S-Box for substitution */ export declare const PI_REV: Uint8Array; /** Constant `L` for linear transformation */ export declare const L: Uint8Array; /** Wrapper for default `Error` class */ export declare class CipherError extends Error { constructor(message: string); }