UNPKG

@hpke/common

Version:

A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.

20 lines (19 loc) 754 B
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EMPTY = exports.MINIMUM_PSK_LENGTH = exports.INPUT_LENGTH_LIMIT = void 0; // The input length limit (psk, psk_id, info, exporter_context, ikm). exports.INPUT_LENGTH_LIMIT = 8192; // The minimum length of a PSK. exports.MINIMUM_PSK_LENGTH = 32; // b"" exports.EMPTY = new Uint8Array(0); });