From d9f22269c04965b3eae0df03bce9be6e8baef0aa Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 4 Mar 2026 11:17:48 +0100 Subject: [PATCH] crypto: add missing AES dictionaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/62099 Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig --- lib/internal/crypto/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/internal/crypto/util.js b/lib/internal/crypto/util.js index a91a60e09c0..5ec1d409ec0 100644 --- a/lib/internal/crypto/util.js +++ b/lib/internal/crypto/util.js @@ -480,6 +480,8 @@ function createSupportedAlgorithms(algorithmDefs) { const kSupportedAlgorithms = createSupportedAlgorithms(kAlgorithmDefinitions); const simpleAlgorithmDictionaries = { + AesCbcParams: { iv: 'BufferSource' }, + AesCtrParams: { counter: 'BufferSource' }, AeadParams: { iv: 'BufferSource', additionalData: 'BufferSource' }, // publicExponent is not strictly a BufferSource but it is a Uint8Array that we normalize // this way