UNPKG

@hackbg/miscreant-esm

Version:

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

21 lines 755 B
"use strict"; // tslint:disable:max-classes-per-file Object.defineProperty(exports, "__esModule", { value: true }); exports.NotImplementedError = exports.IntegrityError = void 0; /** Thrown when ciphertext fails to verify as authentic */ class IntegrityError extends Error { constructor(m) { super(m); Object.setPrototypeOf(this, IntegrityError.prototype); } } exports.IntegrityError = IntegrityError; /** Thrown when we attempt to use an unsupported crypto algorithm via WebCrypto */ class NotImplementedError extends Error { constructor(m) { super(m); Object.setPrototypeOf(this, NotImplementedError.prototype); } } exports.NotImplementedError = NotImplementedError; //# sourceMappingURL=exceptions.js.map