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) 310 B
import SoftAes from "./soft/aes.dist.mjs"; import SoftAesCtr from "./soft/aes_ctr.dist.mjs"; export class SoftCryptoProvider { constructor() {} async importBlockCipherKey(keyData) { return new SoftAes(keyData); } async importCTRKey(keyData) { return new SoftAesCtr(new SoftAes(keyData)); } }