UNPKG

@hicaru/ntrup.js

Version:

Pure JavaScript implementation of NTRU Prime post-quantum cryptography algorithm

12 lines 421 B
import { ParamsConfig } from '../params'; import { R3 } from '../poly/r3'; import { Rq } from '../poly/rq'; export declare class PrivKey { f: R3; ginv: R3; constructor(f: R3, ginv: R3); static compute(f: Rq, g: R3, params: ParamsConfig): PrivKey; toBytes(params: ParamsConfig): Uint8Array; static import(skBytes: Uint8Array, params: ParamsConfig): PrivKey; } //# sourceMappingURL=priv_key.d.ts.map