Skip to content

Commit

Permalink
Bump @noble/hashes to 1.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Aug 4, 2024
1 parent af89507 commit c6e27cb
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 21 deletions.
6 changes: 5 additions & 1 deletion deno.lock

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

4 changes: 2 additions & 2 deletions src/kdfs/hkdfSha256.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore: for "npm:"
import { hmac } from "npm:@noble/hashes@1.3.3/hmac";
import { hmac } from "npm:@noble/hashes@1.4.0/hmac";
// @ts-ignore: for "npm:"
import { sha256 } from "npm:@noble/hashes@1.3.3/sha256";
import { sha256 } from "npm:@noble/hashes@1.4.0/sha256";

import { HkdfSha256Native } from "./hkdf.ts";

Expand Down
4 changes: 2 additions & 2 deletions src/kdfs/hkdfSha384.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore: for "npm:"
import { hmac } from "npm:@noble/hashes@1.3.3/hmac";
import { hmac } from "npm:@noble/hashes@1.4.0/hmac";
// @ts-ignore: for "npm:"
import { sha384 } from "npm:@noble/hashes@1.3.3/sha512";
import { sha384 } from "npm:@noble/hashes@1.4.0/sha512";

import { HkdfSha384Native } from "./hkdf.ts";

Expand Down
4 changes: 2 additions & 2 deletions src/kdfs/hkdfSha512.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore: for "npm:"
import { hmac } from "npm:@noble/hashes@1.3.3/hmac";
import { hmac } from "npm:@noble/hashes@1.4.0/hmac";
// @ts-ignore: for "npm:"
import { sha512 } from "npm:@noble/hashes@1.3.3/sha512";
import { sha512 } from "npm:@noble/hashes@1.4.0/sha512";

import { HkdfSha512Native } from "./hkdf.ts";

Expand Down
2 changes: 1 addition & 1 deletion src/kems/primitives/kyber/kyberBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
shake128,
shake256,
// @ts-ignore: for "npm:"
} from "npm:@noble/hashes@1.3.3/sha3";
} from "npm:@noble/hashes@1.4.0/sha3";

import { N, NTT_ZETAS, NTT_ZETAS_INV, Q, Q_INV } from "./consts.ts";
import { KyberError } from "./errors.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/kems/primitives/kyber/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore: for "npm:"
import { shake256 } from "npm:@noble/hashes@1.3.3/sha3";
import { shake256 } from "npm:@noble/hashes@1.4.0/sha3";

export function byte(n: number): number {
return n % 256;
Expand Down
12 changes: 8 additions & 4 deletions x/dhkem-secp256k1/deno.lock

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

12 changes: 8 additions & 4 deletions x/dhkem-x25519/deno.lock

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

12 changes: 8 additions & 4 deletions x/dhkem-x448/deno.lock

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

0 comments on commit c6e27cb

Please sign in to comment.