Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hpke/common

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpke/common - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

esm/_dnt.shims.d.ts

16

esm/mod.d.ts
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";

5

package.json
{
"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

39

script/mod.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc