UNPKG

miscreant

Version:

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

20 lines (19 loc) 654 B
"use strict"; // tslint:disable:max-classes-per-file Object.defineProperty(exports, "__esModule", { value: true }); /** 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;