diff --git a/package-lock.json b/package-lock.json index 1a7dd67f..4755d979 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "LGPL-3.0+", "devDependencies": { "@eslint/js": "^9.37.0", - "@noble/ciphers": "^1.3.0", + "@noble/ciphers": "^2.0.1", "@noble/curves": "^2.0.1", "@noble/hashes": "^2.0.1", "@openpgp/jsdoc": "^3.6.11", @@ -1028,13 +1028,13 @@ } }, "node_modules/@noble/ciphers": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz", - "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-2.0.1.tgz", + "integrity": "sha512-xHK3XHPUW8DTAobU+G0XT+/w+JLM7/8k1UFdB5xg/zTFPnFCobhftzw8wl4Lw2aq/Rvir5pxfZV5fEazmeCJ2g==", "dev": true, "license": "MIT", "engines": { - "node": "^14.21.3 || >=16" + "node": ">= 20.19.0" }, "funding": { "url": "https://paulmillr.com/funding/" diff --git a/package.json b/package.json index 3a72bb22..5e4429a2 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ }, "devDependencies": { "@eslint/js": "^9.37.0", - "@noble/ciphers": "^1.3.0", + "@noble/ciphers": "^2.0.1", "@noble/curves": "^2.0.1", "@noble/hashes": "^2.0.1", "@openpgp/jsdoc": "^3.6.11", diff --git a/src/crypto/aes_kw.js b/src/crypto/aes_kw.js index 87a1c9fd..204833f7 100644 --- a/src/crypto/aes_kw.js +++ b/src/crypto/aes_kw.js @@ -21,7 +21,7 @@ * @module crypto/aes_kw */ -import { aeskw as nobleAesKW } from '@noble/ciphers/aes'; +import { aeskw as nobleAesKW } from '@noble/ciphers/aes.js'; import { getCipherParams } from './cipher'; import util from '../util'; diff --git a/src/crypto/cipherMode/cfb.js b/src/crypto/cipherMode/cfb.js index 79bcdb2c..8771133f 100644 --- a/src/crypto/cipherMode/cfb.js +++ b/src/crypto/cipherMode/cfb.js @@ -21,7 +21,7 @@ * @module crypto/mode/cfb */ -import { cfb as nobleAesCfb, unsafe as nobleAesHelpers } from '@noble/ciphers/aes'; +import { cfb as nobleAesCfb, unsafe as nobleAesHelpers } from '@noble/ciphers/aes.js'; import { transform as streamTransform } from '@openpgp/web-stream-tools'; import util from '../../util'; diff --git a/src/crypto/cipherMode/eax.js b/src/crypto/cipherMode/eax.js index bcdb266b..ccfde650 100644 --- a/src/crypto/cipherMode/eax.js +++ b/src/crypto/cipherMode/eax.js @@ -21,7 +21,7 @@ * @module crypto/mode/eax */ -import { ctr as nobleAesCtr } from '@noble/ciphers/aes'; +import { ctr as nobleAesCtr } from '@noble/ciphers/aes.js'; import CMAC from '../cmac'; import util from '../../util'; import enums from '../../enums'; diff --git a/src/crypto/cipherMode/gcm.js b/src/crypto/cipherMode/gcm.js index 226d3eb9..171d4d6a 100644 --- a/src/crypto/cipherMode/gcm.js +++ b/src/crypto/cipherMode/gcm.js @@ -21,7 +21,7 @@ * @module crypto/mode/gcm */ -import { gcm as nobleAesGcm } from '@noble/ciphers/aes'; +import { gcm as nobleAesGcm } from '@noble/ciphers/aes.js'; import util from '../../util'; import enums from '../../enums'; diff --git a/src/crypto/cipherMode/ocb.js b/src/crypto/cipherMode/ocb.js index 7b989426..598b4609 100644 --- a/src/crypto/cipherMode/ocb.js +++ b/src/crypto/cipherMode/ocb.js @@ -20,7 +20,7 @@ * @module crypto/mode/ocb */ -import { cbc as nobleAesCbc } from '@noble/ciphers/aes'; +import { cbc as nobleAesCbc } from '@noble/ciphers/aes.js'; import { getCipherParams } from '../cipher'; import util from '../../util'; diff --git a/src/crypto/cmac.js b/src/crypto/cmac.js index 8dbf6a99..6ab25fd4 100644 --- a/src/crypto/cmac.js +++ b/src/crypto/cmac.js @@ -4,7 +4,7 @@ * @module crypto/cmac */ -import { cbc as nobleAesCbc } from '@noble/ciphers/aes'; +import { cbc as nobleAesCbc } from '@noble/ciphers/aes.js'; import util from '../util'; const webCrypto = util.getWebCrypto();