@hackbg/miscreant-esm
Version:
(ESM port) Misuse resistant symmetric encryption library providing AES-SIV (RFC 5297), AES-PMAC-SIV, and STREAM constructions
9 lines (8 loc) • 406 B
TypeScript
import { IBlockCipher, ICryptoProvider, ICTRLike } from "../interfaces.dist";
/** Placeholder backend for using pure JavaScript crypto implementations */
export declare class WebCryptoProvider implements ICryptoProvider {
private crypto;
constructor(crypto?: Crypto);
importBlockCipherKey(keyData: Uint8Array): Promise<IBlockCipher>;
importCTRKey(keyData: Uint8Array): Promise<ICTRLike>;
}