Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump noble/ciphers to 0.2.0. #239

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/aeads/chacha20Poly1305.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore: for "npm:"
import { chacha20_poly1305 } from "npm:@noble/ciphers@0.1.4/chacha";
import { chacha20poly1305 } from "npm:@noble/ciphers@0.2.0/chacha";

import type { AeadEncryptionContext } from "../interfaces/aeadEncryptionContext.ts";
import type { AeadInterface } from "../interfaces/aeadInterface.ts";
Expand Down Expand Up @@ -38,7 +38,7 @@ export class Chacha20Poly1305Context implements AeadEncryptionContext {
aad: ArrayBuffer,
): Promise<ArrayBuffer> {
return new Promise((resolve) => {
const ret = chacha20_poly1305(
const ret = chacha20poly1305(
this._key,
new Uint8Array(iv),
new Uint8Array(aad),
Expand All @@ -53,7 +53,7 @@ export class Chacha20Poly1305Context implements AeadEncryptionContext {
aad: ArrayBuffer,
): Promise<ArrayBuffer> {
return new Promise((resolve) => {
const ret = chacha20_poly1305(
const ret = chacha20poly1305(
this._key,
new Uint8Array(iv),
new Uint8Array(aad),
Expand Down
Loading