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 1.5.0 to 1.6.0

esm/deps/jsr.io/@std/internal/1.0.3/build_message.d.ts.map

2

esm/mod.d.ts

@@ -24,3 +24,3 @@ export type { AeadEncryptionContext } from "./src/interfaces/aeadEncryptionContext.js";

export { EMPTY, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH } from "./src/consts.js";
export { concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
export { base64UrlToBytes, concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
//# sourceMappingURL=mod.d.ts.map

@@ -14,2 +14,2 @@ export * from "./src/errors.js";

export { EMPTY, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH } from "./src/consts.js";
export { concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
export { base64UrlToBytes, concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
/**
* The base error class of hpke-js.
* @group Errors
*/
export declare class BaseError extends Error {
export declare class HpkeError extends Error {
constructor(e: unknown);
}
/**
* The base error class of hpke-js.
*/
export declare class HpkeError extends BaseError {
}
/**
* Invalid parameter.
* @group Errors
*/

@@ -19,2 +16,3 @@ export declare class InvalidParamError extends HpkeError {

* KEM input or output validation failure.
* @group Errors
*/

@@ -25,2 +23,3 @@ export declare class ValidationError extends HpkeError {

* Public or private key serialization failure.
* @group Errors
*/

@@ -31,2 +30,3 @@ export declare class SerializeError extends HpkeError {

* Public or private key deserialization failure.
* @group Errors
*/

@@ -37,2 +37,3 @@ export declare class DeserializeError extends HpkeError {

* encap() failure.
* @group Errors
*/

@@ -43,2 +44,3 @@ export declare class EncapError extends HpkeError {

* decap() failure.
* @group Errors
*/

@@ -49,2 +51,3 @@ export declare class DecapError extends HpkeError {

* Secret export failure.
* @group Errors
*/

@@ -55,2 +58,3 @@ export declare class ExportError extends HpkeError {

* seal() failure.
* @group Errors
*/

@@ -61,2 +65,3 @@ export declare class SealError extends HpkeError {

* open() failure.
* @group Errors
*/

@@ -67,2 +72,3 @@ export declare class OpenError extends HpkeError {

* Sequence number overflow on the encryption context.
* @group Errors
*/

@@ -73,2 +79,3 @@ export declare class MessageLimitReachedError extends HpkeError {

* Key pair derivation failure.
* @group Errors
*/

@@ -79,2 +86,3 @@ export declare class DeriveKeyPairError extends HpkeError {

* Not supported failure.
* @group Errors
*/

@@ -81,0 +89,0 @@ export declare class NotSupportedError extends HpkeError {

/**
* The base error class of hpke-js.
* @group Errors
*/
export class BaseError extends Error {
export class HpkeError extends Error {
constructor(e) {

@@ -21,8 +22,4 @@ let message;

/**
* The base error class of hpke-js.
*/
export class HpkeError extends BaseError {
}
/**
* Invalid parameter.
* @group Errors
*/

@@ -33,2 +30,3 @@ export class InvalidParamError extends HpkeError {

* KEM input or output validation failure.
* @group Errors
*/

@@ -39,2 +37,3 @@ export class ValidationError extends HpkeError {

* Public or private key serialization failure.
* @group Errors
*/

@@ -45,2 +44,3 @@ export class SerializeError extends HpkeError {

* Public or private key deserialization failure.
* @group Errors
*/

@@ -51,2 +51,3 @@ export class DeserializeError extends HpkeError {

* encap() failure.
* @group Errors
*/

@@ -57,2 +58,3 @@ export class EncapError extends HpkeError {

* decap() failure.
* @group Errors
*/

@@ -63,2 +65,3 @@ export class DecapError extends HpkeError {

* Secret export failure.
* @group Errors
*/

@@ -69,2 +72,3 @@ export class ExportError extends HpkeError {

* seal() failure.
* @group Errors
*/

@@ -75,2 +79,3 @@ export class SealError extends HpkeError {

* open() failure.
* @group Errors
*/

@@ -81,2 +86,3 @@ export class OpenError extends HpkeError {

* Sequence number overflow on the encryption context.
* @group Errors
*/

@@ -87,2 +93,3 @@ export class MessageLimitReachedError extends HpkeError {

* Key pair derivation failure.
* @group Errors
*/

@@ -93,4 +100,5 @@ export class DeriveKeyPairError extends HpkeError {

* Not supported failure.
* @group Errors
*/
export class NotSupportedError extends HpkeError {
}

@@ -26,2 +26,3 @@ /**

readonly HybridkemX25519Kyber768: 48;
readonly HybridkemXWing: 25722;
};

@@ -28,0 +29,0 @@ /**

@@ -22,2 +22,3 @@ /**

HybridkemX25519Kyber768: 0x0030,
HybridkemXWing: 0x647a,
};

@@ -24,0 +25,0 @@ /**

{
"name": "@hpke/common",
"version": "1.5.0",
"version": "1.6.0",
"description": "A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -24,3 +24,3 @@ export type { AeadEncryptionContext } from "./src/interfaces/aeadEncryptionContext.js";

export { EMPTY, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH } from "./src/consts.js";
export { concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
export { base64UrlToBytes, concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
//# sourceMappingURL=mod.d.ts.map

@@ -26,3 +26,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.xor = exports.loadSubtleCrypto = exports.loadCrypto = exports.kemToKeyGenAlgorithm = exports.isDenoV1 = exports.isDeno = exports.isCryptoKeyPair = exports.i2Osp = exports.hexToBytes = 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.KEM_USAGES = exports.AEAD_USAGES = exports.HkdfSha512Native = exports.HkdfSha384Native = exports.HkdfSha256Native = exports.XCryptoKey = exports.Hybridkem = exports.Ec = exports.Dhkem = exports.Mode = exports.KemId = exports.KdfId = exports.AeadId = exports.NativeAlgorithm = void 0;
exports.xor = exports.loadSubtleCrypto = exports.loadCrypto = exports.kemToKeyGenAlgorithm = exports.isDenoV1 = exports.isDeno = exports.isCryptoKeyPair = exports.i2Osp = exports.hexToBytes = exports.concat = exports.base64UrlToBytes = exports.MINIMUM_PSK_LENGTH = exports.INPUT_LENGTH_LIMIT = exports.EMPTY = exports.SUITE_ID_HEADER_KEM = exports.LABEL_SK = exports.LABEL_DKP_PRK = exports.KEM_USAGES = exports.AEAD_USAGES = exports.HkdfSha512Native = exports.HkdfSha384Native = exports.HkdfSha256Native = exports.XCryptoKey = exports.Hybridkem = exports.Ec = exports.Dhkem = exports.Mode = exports.KemId = exports.KdfId = exports.AeadId = exports.NativeAlgorithm = void 0;
__exportStar(require("./src/errors.js"), exports);

@@ -62,2 +62,3 @@ var algorithm_js_1 = require("./src/algorithm.js");

var misc_js_1 = require("./src/utils/misc.js");
Object.defineProperty(exports, "base64UrlToBytes", { enumerable: true, get: function () { return misc_js_1.base64UrlToBytes; } });
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return misc_js_1.concat; } });

@@ -64,0 +65,0 @@ Object.defineProperty(exports, "hexToBytes", { enumerable: true, get: function () { return misc_js_1.hexToBytes; } });

/**
* The base error class of hpke-js.
* @group Errors
*/
export declare class BaseError extends Error {
export declare class HpkeError extends Error {
constructor(e: unknown);
}
/**
* The base error class of hpke-js.
*/
export declare class HpkeError extends BaseError {
}
/**
* Invalid parameter.
* @group Errors
*/

@@ -19,2 +16,3 @@ export declare class InvalidParamError extends HpkeError {

* KEM input or output validation failure.
* @group Errors
*/

@@ -25,2 +23,3 @@ export declare class ValidationError extends HpkeError {

* Public or private key serialization failure.
* @group Errors
*/

@@ -31,2 +30,3 @@ export declare class SerializeError extends HpkeError {

* Public or private key deserialization failure.
* @group Errors
*/

@@ -37,2 +37,3 @@ export declare class DeserializeError extends HpkeError {

* encap() failure.
* @group Errors
*/

@@ -43,2 +44,3 @@ export declare class EncapError extends HpkeError {

* decap() failure.
* @group Errors
*/

@@ -49,2 +51,3 @@ export declare class DecapError extends HpkeError {

* Secret export failure.
* @group Errors
*/

@@ -55,2 +58,3 @@ export declare class ExportError extends HpkeError {

* seal() failure.
* @group Errors
*/

@@ -61,2 +65,3 @@ export declare class SealError extends HpkeError {

* open() failure.
* @group Errors
*/

@@ -67,2 +72,3 @@ export declare class OpenError extends HpkeError {

* Sequence number overflow on the encryption context.
* @group Errors
*/

@@ -73,2 +79,3 @@ export declare class MessageLimitReachedError extends HpkeError {

* Key pair derivation failure.
* @group Errors
*/

@@ -79,2 +86,3 @@ export declare class DeriveKeyPairError extends HpkeError {

* Not supported failure.
* @group Errors
*/

@@ -81,0 +89,0 @@ export declare class NotSupportedError extends HpkeError {

@@ -12,7 +12,8 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.NotSupportedError = exports.DeriveKeyPairError = exports.MessageLimitReachedError = exports.OpenError = exports.SealError = exports.ExportError = exports.DecapError = exports.EncapError = exports.DeserializeError = exports.SerializeError = exports.ValidationError = exports.InvalidParamError = exports.HpkeError = exports.BaseError = void 0;
exports.NotSupportedError = exports.DeriveKeyPairError = exports.MessageLimitReachedError = exports.OpenError = exports.SealError = exports.ExportError = exports.DecapError = exports.EncapError = exports.DeserializeError = exports.SerializeError = exports.ValidationError = exports.InvalidParamError = exports.HpkeError = void 0;
/**
* The base error class of hpke-js.
* @group Errors
*/
class BaseError extends Error {
class HpkeError extends Error {
constructor(e) {

@@ -33,11 +34,6 @@ let message;

}
exports.BaseError = BaseError;
/**
* The base error class of hpke-js.
*/
class HpkeError extends BaseError {
}
exports.HpkeError = HpkeError;
/**
* Invalid parameter.
* @group Errors
*/

@@ -49,2 +45,3 @@ class InvalidParamError extends HpkeError {

* KEM input or output validation failure.
* @group Errors
*/

@@ -56,2 +53,3 @@ class ValidationError extends HpkeError {

* Public or private key serialization failure.
* @group Errors
*/

@@ -63,2 +61,3 @@ class SerializeError extends HpkeError {

* Public or private key deserialization failure.
* @group Errors
*/

@@ -70,2 +69,3 @@ class DeserializeError extends HpkeError {

* encap() failure.
* @group Errors
*/

@@ -77,2 +77,3 @@ class EncapError extends HpkeError {

* decap() failure.
* @group Errors
*/

@@ -84,2 +85,3 @@ class DecapError extends HpkeError {

* Secret export failure.
* @group Errors
*/

@@ -91,2 +93,3 @@ class ExportError extends HpkeError {

* seal() failure.
* @group Errors
*/

@@ -98,2 +101,3 @@ class SealError extends HpkeError {

* open() failure.
* @group Errors
*/

@@ -105,2 +109,3 @@ class OpenError extends HpkeError {

* Sequence number overflow on the encryption context.
* @group Errors
*/

@@ -112,2 +117,3 @@ class MessageLimitReachedError extends HpkeError {

* Key pair derivation failure.
* @group Errors
*/

@@ -119,2 +125,3 @@ class DeriveKeyPairError extends HpkeError {

* Not supported failure.
* @group Errors
*/

@@ -121,0 +128,0 @@ class NotSupportedError extends HpkeError {

@@ -26,2 +26,3 @@ /**

readonly HybridkemX25519Kyber768: 48;
readonly HybridkemXWing: 25722;
};

@@ -28,0 +29,0 @@ /**

@@ -34,2 +34,3 @@ (function (factory) {

HybridkemX25519Kyber768: 0x0030,
HybridkemXWing: 0x647a,
};

@@ -36,0 +37,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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