@hpke/common
Advanced tools
Comparing version 0.1.0 to 0.2.0
export type { AeadEncryptionContext } from "./src/interfaces/aeadEncryptionContext.js"; | ||
export type { AeadInterface } from "./src/interfaces/aeadInterface.js"; | ||
export type { DhkemPrimitives } from "./src/interfaces/dhkemPrimitives.js"; | ||
export type { DhkemInterface } from "./src/interfaces/dhkemInterface.js"; | ||
export type { KdfInterface } from "./src/interfaces/kdfInterface.js"; | ||
export type { KemInterface } from "./src/interfaces/kemInterface.js"; | ||
export type { KeyScheduleParams } from "./src/interfaces/keyScheduleParams.js"; | ||
export type { PreSharedKey } from "./src/interfaces/preSharedKey.js"; | ||
export type { RecipientContextParams } from "./src/interfaces/recipientContextParams.js"; | ||
export type { SenderContextParams } from "./src/interfaces/senderContextParams.js"; | ||
export * from "./src/errors.js"; | ||
export { NativeAlgorithm } from "./src/algorithm.js"; | ||
export { AeadId, KdfId, KemId, Mode } from "./src/identifiers.js"; | ||
export { Dhkem } from "./src/kems/dhkem.js"; | ||
export { Ec } from "./src/kems/dhkemPrimitives/ec.js"; | ||
export { AEAD_USAGES } from "./src/interfaces/aeadEncryptionContext.js"; | ||
export { LABEL_DKP_PRK, LABEL_SK } from "./src/interfaces/dhkemPrimitives.js"; | ||
export { SUITE_ID_HEADER_KEM } from "./src/interfaces/kemInterface.js"; | ||
export { EMPTY, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH } from "./src/consts.js"; | ||
export { concat, i2Osp, isCryptoKeyPair, xor } from "./src/utils/misc.js"; | ||
//# sourceMappingURL=mod.d.ts.map |
@@ -0,2 +1,10 @@ | ||
export * from "./src/errors.js"; | ||
export { NativeAlgorithm } from "./src/algorithm.js"; | ||
export { AeadId, KdfId, KemId, Mode } from "./src/identifiers.js"; | ||
export { Dhkem } from "./src/kems/dhkem.js"; | ||
export { Ec } from "./src/kems/dhkemPrimitives/ec.js"; | ||
export { AEAD_USAGES } from "./src/interfaces/aeadEncryptionContext.js"; | ||
export { LABEL_DKP_PRK, LABEL_SK } from "./src/interfaces/dhkemPrimitives.js"; | ||
export { SUITE_ID_HEADER_KEM } from "./src/interfaces/kemInterface.js"; | ||
export { EMPTY, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH } from "./src/consts.js"; | ||
export { concat, i2Osp, isCryptoKeyPair, xor } from "./src/utils/misc.js"; |
{ | ||
"name": "@hpke/common", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.", | ||
@@ -42,5 +42,6 @@ "keywords": [ | ||
"@types/node": "^20.9.0", | ||
"picocolors": "^1.0.0" | ||
"picocolors": "^1.0.0", | ||
"@deno/shim-deno": "~0.18.0" | ||
}, | ||
"_generatedBy": "dnt@dev" | ||
} |
export type { AeadEncryptionContext } from "./src/interfaces/aeadEncryptionContext.js"; | ||
export type { AeadInterface } from "./src/interfaces/aeadInterface.js"; | ||
export type { DhkemPrimitives } from "./src/interfaces/dhkemPrimitives.js"; | ||
export type { DhkemInterface } from "./src/interfaces/dhkemInterface.js"; | ||
export type { KdfInterface } from "./src/interfaces/kdfInterface.js"; | ||
export type { KemInterface } from "./src/interfaces/kemInterface.js"; | ||
export type { KeyScheduleParams } from "./src/interfaces/keyScheduleParams.js"; | ||
export type { PreSharedKey } from "./src/interfaces/preSharedKey.js"; | ||
export type { RecipientContextParams } from "./src/interfaces/recipientContextParams.js"; | ||
export type { SenderContextParams } from "./src/interfaces/senderContextParams.js"; | ||
export * from "./src/errors.js"; | ||
export { NativeAlgorithm } from "./src/algorithm.js"; | ||
export { AeadId, KdfId, KemId, Mode } from "./src/identifiers.js"; | ||
export { Dhkem } from "./src/kems/dhkem.js"; | ||
export { Ec } from "./src/kems/dhkemPrimitives/ec.js"; | ||
export { AEAD_USAGES } from "./src/interfaces/aeadEncryptionContext.js"; | ||
export { LABEL_DKP_PRK, LABEL_SK } from "./src/interfaces/dhkemPrimitives.js"; | ||
export { SUITE_ID_HEADER_KEM } from "./src/interfaces/kemInterface.js"; | ||
export { EMPTY, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH } from "./src/consts.js"; | ||
export { concat, i2Osp, isCryptoKeyPair, xor } from "./src/utils/misc.js"; | ||
//# sourceMappingURL=mod.d.ts.map |
@@ -0,1 +1,15 @@ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
(function (factory) { | ||
@@ -7,3 +21,3 @@ if (typeof module === "object" && typeof module.exports === "object") { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./src/identifiers.js", "./src/interfaces/aeadEncryptionContext.js"], factory); | ||
define(["require", "exports", "./src/errors.js", "./src/algorithm.js", "./src/identifiers.js", "./src/kems/dhkem.js", "./src/kems/dhkemPrimitives/ec.js", "./src/interfaces/aeadEncryptionContext.js", "./src/interfaces/dhkemPrimitives.js", "./src/interfaces/kemInterface.js", "./src/consts.js", "./src/utils/misc.js"], factory); | ||
} | ||
@@ -13,3 +27,6 @@ })(function (require, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AEAD_USAGES = exports.Mode = exports.KemId = exports.KdfId = exports.AeadId = void 0; | ||
exports.xor = exports.isCryptoKeyPair = exports.i2Osp = exports.concat = exports.MINIMUM_PSK_LENGTH = exports.INPUT_LENGTH_LIMIT = exports.EMPTY = exports.SUITE_ID_HEADER_KEM = exports.LABEL_SK = exports.LABEL_DKP_PRK = exports.AEAD_USAGES = exports.Ec = exports.Dhkem = exports.Mode = exports.KemId = exports.KdfId = exports.AeadId = exports.NativeAlgorithm = void 0; | ||
__exportStar(require("./src/errors.js"), exports); | ||
var algorithm_js_1 = require("./src/algorithm.js"); | ||
Object.defineProperty(exports, "NativeAlgorithm", { enumerable: true, get: function () { return algorithm_js_1.NativeAlgorithm; } }); | ||
var identifiers_js_1 = require("./src/identifiers.js"); | ||
@@ -20,4 +37,22 @@ Object.defineProperty(exports, "AeadId", { enumerable: true, get: function () { return identifiers_js_1.AeadId; } }); | ||
Object.defineProperty(exports, "Mode", { enumerable: true, get: function () { return identifiers_js_1.Mode; } }); | ||
var dhkem_js_1 = require("./src/kems/dhkem.js"); | ||
Object.defineProperty(exports, "Dhkem", { enumerable: true, get: function () { return dhkem_js_1.Dhkem; } }); | ||
var ec_js_1 = require("./src/kems/dhkemPrimitives/ec.js"); | ||
Object.defineProperty(exports, "Ec", { enumerable: true, get: function () { return ec_js_1.Ec; } }); | ||
var aeadEncryptionContext_js_1 = require("./src/interfaces/aeadEncryptionContext.js"); | ||
Object.defineProperty(exports, "AEAD_USAGES", { enumerable: true, get: function () { return aeadEncryptionContext_js_1.AEAD_USAGES; } }); | ||
var dhkemPrimitives_js_1 = require("./src/interfaces/dhkemPrimitives.js"); | ||
Object.defineProperty(exports, "LABEL_DKP_PRK", { enumerable: true, get: function () { return dhkemPrimitives_js_1.LABEL_DKP_PRK; } }); | ||
Object.defineProperty(exports, "LABEL_SK", { enumerable: true, get: function () { return dhkemPrimitives_js_1.LABEL_SK; } }); | ||
var kemInterface_js_1 = require("./src/interfaces/kemInterface.js"); | ||
Object.defineProperty(exports, "SUITE_ID_HEADER_KEM", { enumerable: true, get: function () { return kemInterface_js_1.SUITE_ID_HEADER_KEM; } }); | ||
var consts_js_1 = require("./src/consts.js"); | ||
Object.defineProperty(exports, "EMPTY", { enumerable: true, get: function () { return consts_js_1.EMPTY; } }); | ||
Object.defineProperty(exports, "INPUT_LENGTH_LIMIT", { enumerable: true, get: function () { return consts_js_1.INPUT_LENGTH_LIMIT; } }); | ||
Object.defineProperty(exports, "MINIMUM_PSK_LENGTH", { enumerable: true, get: function () { return consts_js_1.MINIMUM_PSK_LENGTH; } }); | ||
var misc_js_1 = require("./src/utils/misc.js"); | ||
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return misc_js_1.concat; } }); | ||
Object.defineProperty(exports, "i2Osp", { enumerable: true, get: function () { return misc_js_1.i2Osp; } }); | ||
Object.defineProperty(exports, "isCryptoKeyPair", { enumerable: true, get: function () { return misc_js_1.isCryptoKeyPair; } }); | ||
Object.defineProperty(exports, "xor", { enumerable: true, get: function () { return misc_js_1.xor; } }); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191023
207
3134
3
1
1