UNPKG

@hackbg/miscreant-esm

Version:

(ESM port) Misuse resistant symmetric encryption library providing AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions

12 lines (11 loc) 431 B
import { IBlockCipher, ICryptoProvider, ICTRLike } from "../interfaces.dist"; /** * Pure JavaScript cryptography implementations * * WARNING: Not constant time! May leak keys or have other security issues. */ export declare class SoftCryptoProvider implements ICryptoProvider { constructor(); importBlockCipherKey(keyData: Uint8Array): Promise<IBlockCipher>; importCTRKey(keyData: Uint8Array): Promise<ICTRLike>; }