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

hpke-js

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpke-js - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

1

esm/src/cipherSuite.js

@@ -103,3 +103,2 @@ import { RecipientExporterContext, SenderExporterContext, } from "./exporterContext.js";

this._ctx = { kem: this.kem, kdf: this.kdf, aead: this.aead };
return;
}

@@ -106,0 +105,0 @@ /**

@@ -72,3 +72,2 @@ import { AesGcmKey } from "./aeadKeys/aesGcmKey.js";

};
return;
}

@@ -75,0 +74,0 @@ computeNonce(k) {

@@ -21,3 +21,2 @@ import { WebCrypto } from "./webCrypto.js";

this.exporterSecret = exporterSecret;
return;
}

@@ -24,0 +23,0 @@ async seal(_data, _aad) {

@@ -73,3 +73,2 @@ import { Aead, Kdf } from "./identifiers.js";

}
return;
}

@@ -76,0 +75,0 @@ // private verifyPskInputs(mode: Mode, params: KeyScheduleParams) {

@@ -68,3 +68,2 @@ import { Ec } from "./kemPrimitives/ec.js";

}
return;
}

@@ -71,0 +70,0 @@ async generateKeyPair() {

@@ -14,3 +14,2 @@ import { EMPTY } from "./consts.js";

this.enc = enc;
return;
}

@@ -17,0 +16,0 @@ async seal(data, aad = EMPTY) {

2

package.json

@@ -6,3 +6,3 @@ {

"name": "hpke-js",
"version": "0.11.1",
"version": "0.11.2",
"description": "A Hybrid Public Key Encryption (HPKE) library",

@@ -9,0 +9,0 @@ "repository": {

@@ -15,3 +15,3 @@ <h1 align="center">hpke-js</h1>

implementation build on top of <a href="https://www.w3.org/TR/WebCryptoAPI/">Web Cryptography API</a>.
This library works both on web browsers, Node.js and Deno.
This module works on Deno, Node.js and web browsers.
</div>

@@ -34,3 +34,3 @@

- [Usage](#usage)
- [Base mode](#base-mode) - for browsers, Node.js and Deno.
- [Base mode](#base-mode) - for Deno, Node.js and web browsers.
- [Base mode with Single-Shot APIs](#base-mode-with-single-shot-apis)

@@ -99,8 +99,26 @@ - [Base mode with bidirectional encryption](#base-mode-with-bidirectional-encryption)

Using unpkg CDN:
Using deno.land:
```
import * as hpke from "https://deno.land/x/hpke@v0.11.2/mod.ts";
```
Using npm:
```
npm install hpke-js
```
Using yarn:
```
yarn add hpke-js
```
Using esm.sh CDN:
```html
<!-- use the latest stable version -->
<script type="module">
import * as hpke from "https://unpkg.com/hpke-js/esm/mod.js";
import * as hpke from "https://esm.sh/hpke-js";
// ...

@@ -111,3 +129,3 @@ </script>

<script type="module">
import * as hpke from "https://unpkg.com/hpke-js@0.11.1/esm/mod.js";
import * as hpke from "https://esm.sh/hpke-js@0.11.2";
// ...

@@ -117,14 +135,8 @@ </script>

Using jsDelivr CDN:
Using unpkg CDN:
```html
<!-- use the latest stable version -->
<script type="module">
import * as hpke from "https://cdn.jsdelivr.net/npm/hpke-js/esm/mod.js";
// ...
</script>
<!-- use a specific version -->
<script type="module">
import * as hpke from "https://cdn.jsdelivr.net/npm/hpke-js@0.11.1/esm/mod.js";
import * as hpke from "https://unpkg.com/hpke-js@0.11.2/esm/mod.js";
// ...

@@ -134,20 +146,2 @@ </script>

Using npm:
```
npm install hpke-js
```
Using yarn:
```
yarn add hpke-js
```
Using deno.land:
```
import * as hpke from "https://deno.land/x/hpke@v0.11.1/mod.ts";
```
## Usage

@@ -166,4 +160,4 @@

<script type="module">
// import * as hpke from "https://cdn.jsdelivr.net/npm/hpke-js/esm/mod.js";
import { Kem, Kdf, Aead, CipherSuite } from "https://cdn.jsdelivr.net/npm/hpke-js/esm/mod.js";
// import * as hpke from "https://esm.sh/hpke-js@0.11.2";
import { Kem, Kdf, Aead, CipherSuite } from "https://esm.sh/hpke-js@0.11.2";

@@ -245,3 +239,3 @@ globalThis.doHpke = async () => {

```js
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/hpke@v0.11.1/mod.ts";
import { Kem, Kdf, Aead, CipherSuite } from "https://deno.land/x/hpke@v0.11.2/mod.ts";

@@ -248,0 +242,0 @@ async function doHpke() {

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

this._ctx = { kem: this.kem, kdf: this.kdf, aead: this.aead };
return;
}

@@ -141,0 +140,0 @@ /**

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

};
return;
}

@@ -110,0 +109,0 @@ computeNonce(k) {

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

this.exporterSecret = exporterSecret;
return;
}

@@ -59,0 +58,0 @@ async seal(_data, _aad) {

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

}
return;
}

@@ -111,0 +110,0 @@ // private verifyPskInputs(mode: Mode, params: KeyScheduleParams) {

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

}
return;
}

@@ -106,0 +105,0 @@ async generateKeyPair() {

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

this.enc = enc;
return;
}

@@ -52,0 +51,0 @@ async seal(data, aad = consts_js_1.EMPTY) {

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