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

@hpke/chacha20poly1305

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpke/chacha20poly1305 - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

7

esm/src/aeads/chacha20Poly1305.d.ts

@@ -22,8 +22,9 @@ import type { AeadEncryptionContext } from "../interfaces/aeadEncryptionContext.js";

* @example
*
* ```ts
* import { KemId, KdfId, CipherSuite } from "http://deno.land/x/hpke/core/mod.ts";
* import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256 } from "http://deno.land/x/hpke/core/mod.ts";
* import { Chacha20Poly1305 } from "https://deno.land/x/hpke/x/chach20poly1305/mod.ts";
* const suite = new CipherSuite({
* kem: KemId.DhkemP256HkdfSha256,
* kdf: KdfId.HkdfSha256,
* kem: new DhkemP256HkdfSha256(),
* kdf: new HkdfSha256(),
* aead: new Chacha20Poly1305(),

@@ -30,0 +31,0 @@ * });

@@ -43,8 +43,9 @@ // @ts-ignore: for "npm:"

* @example
*
* ```ts
* import { KemId, KdfId, CipherSuite } from "http://deno.land/x/hpke/core/mod.ts";
* import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256 } from "http://deno.land/x/hpke/core/mod.ts";
* import { Chacha20Poly1305 } from "https://deno.land/x/hpke/x/chach20poly1305/mod.ts";
* const suite = new CipherSuite({
* kem: KemId.DhkemP256HkdfSha256,
* kdf: KdfId.HkdfSha256,
* kem: new DhkemP256HkdfSha256(),
* kdf: new HkdfSha256(),
* aead: new Chacha20Poly1305(),

@@ -51,0 +52,0 @@ * });

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

"name": "@hpke/chacha20poly1305",
"version": "1.1.1",
"version": "1.2.0",
"description": "A Hybrid Public Key Encryption (HPKE) module extension for ChaCha20/Poly1305",

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

@@ -9,3 +9,6 @@ <h1 align="center">@hpke/chacha20poly1305</h1>

Documentation: [deno.land](https://doc.deno.land/https://deno.land/x/hpke/x/chacha20poly1305/mod.ts) | [pages(only for the latest ver.)](https://dajiaji.github.io/hpke-js/chacha20poly1305/docs/)
Documentation:
[deno.land](https://doc.deno.land/https://deno.land/x/hpke/x/chacha20poly1305/mod.ts)
|
[pages(only for the latest ver.)](https://dajiaji.github.io/hpke-js/chacha20poly1305/docs/)

@@ -35,4 +38,4 @@ </div>

<script type="module">
import * as hpke from "https://esm.sh/@hpke/core@1.1.1";
import * as chacha20 from "https://esm.sh/@hpke/chacha20poly1305@1.1.1";
import * as hpke from "https://esm.sh/@hpke/core@1.2.0";
import * as chacha20 from "https://esm.sh/@hpke/chacha20poly1305@1.2.0";
// ...

@@ -54,4 +57,4 @@ </script>

<script type="module">
import * as hpke from "https://unpkg.com/@hpke/core@1.1.1/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/chacha20poly1305@1.1.1/esm/mod.js";
import * as hpke from "https://unpkg.com/@hpke/core@1.2.0/esm/mod.js";
import * as chacha20 from "https://unpkg.com/@hpke/chacha20poly1305@1.2.0/esm/mod.js";
// ...

@@ -81,4 +84,4 @@ </script>

// use a specific version
import * as hpke from "https://deno.land/x/hpke@1.1.1/core/mod.ts";
import * as chacha20 from "https://deno.land/x/hpke@1.1.1/x/chacha20poly1305/mod.ts";
import * as hpke from "https://deno.land/x/hpke@1.2.0/core/mod.ts";
import * as chacha20 from "https://deno.land/x/hpke@1.2.0/x/chacha20poly1305/mod.ts";

@@ -111,5 +114,7 @@ // use the latest stable version

<script type="module">
// import * as hpke from "https://esm.sh/hpke-js@1.1.1";
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/core@1.1.1";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/chacha20poly1305@1.1.1";
// import * as hpke from "https://esm.sh/hpke-js@1.2.0";
import {
CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
} from "https://esm.sh/@hpke/core@1.2.0";
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/chacha20poly1305@1.2.0";

@@ -119,4 +124,4 @@ globalThis.doHpke = async () => {

const suite = new CipherSuite({
kem: KemId.DhkemP256HkdfSha256,
kdf: KdfId.HkdfSha256,
kem: new DhkemP256HkdfSha256(),
kdf: new HkdfSha256(),
aead: new Chacha20Poly1305()

@@ -159,3 +164,3 @@ });

```js
import { KemId, KdfId, CipherSuite } from "@hpke/core";
import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256 } from "@hpke/core";
import { Chacha20Poly1305 } from "@hpke/chacha20poly1305";

@@ -167,4 +172,4 @@ // const { Chacha20Poly1305 } = require("@hpke/chacha20poly1305");

const suite = new CipherSuite({
kem: KemId.DhkemP256HkdfSha256,
kdf: KdfId.HkdfSha256,
kem: new DhkemP256HkdfSha256(),
kdf: new HkdfSha256(),
aead: new Chacha20Poly1305(),

@@ -204,4 +209,6 @@ });

```js
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/hpke@1.1.1/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.1.1/x/chacha20poly1305/mod.ts";
import {
CipherSuite, DhkemP256HkdfSha256, HkdfSha256,
} from "https://deno.land/x/hpke@1.2.0/core/mod.ts";
import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.0/x/chacha20poly1305/mod.ts";

@@ -211,4 +218,4 @@ async function doHpke() {

const suite = new CipherSuite({
kem: KemId.DhkemP256HkdfSha256,
kdf: KdfId.HkdfSha256,
kem: new DhkemP256HkdfSha256(),
kdf: new HkdfSha256(),
aead: new Chacha20Poly1305(),

@@ -215,0 +222,0 @@ });

@@ -22,8 +22,9 @@ import type { AeadEncryptionContext } from "../interfaces/aeadEncryptionContext.js";

* @example
*
* ```ts
* import { KemId, KdfId, CipherSuite } from "http://deno.land/x/hpke/core/mod.ts";
* import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256 } from "http://deno.land/x/hpke/core/mod.ts";
* import { Chacha20Poly1305 } from "https://deno.land/x/hpke/x/chach20poly1305/mod.ts";
* const suite = new CipherSuite({
* kem: KemId.DhkemP256HkdfSha256,
* kdf: KdfId.HkdfSha256,
* kem: new DhkemP256HkdfSha256(),
* kdf: new HkdfSha256(),
* aead: new Chacha20Poly1305(),

@@ -30,0 +31,0 @@ * });

@@ -56,8 +56,9 @@ (function (factory) {

* @example
*
* ```ts
* import { KemId, KdfId, CipherSuite } from "http://deno.land/x/hpke/core/mod.ts";
* import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256 } from "http://deno.land/x/hpke/core/mod.ts";
* import { Chacha20Poly1305 } from "https://deno.land/x/hpke/x/chach20poly1305/mod.ts";
* const suite = new CipherSuite({
* kem: KemId.DhkemP256HkdfSha256,
* kdf: KdfId.HkdfSha256,
* kem: new DhkemP256HkdfSha256(),
* kdf: new HkdfSha256(),
* aead: new Chacha20Poly1305(),

@@ -64,0 +65,0 @@ * });

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