From d3f943bee4329786efac09def0fcfed72d3156b8 Mon Sep 17 00:00:00 2001 From: Ryan Chernoff Date: Mon, 21 Apr 2025 14:58:37 -0400 Subject: [PATCH] Removed input extraction from try catch block to seperate input errors from key errors --- src/core/operations/XOR.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/XOR.mjs b/src/core/operations/XOR.mjs index 0b867236..87e4ebb3 100644 --- a/src/core/operations/XOR.mjs +++ b/src/core/operations/XOR.mjs @@ -52,8 +52,8 @@ class XOR extends Operation { * @returns {byteArray} */ run(input, args) { + input = new Uint8Array(input); try { - input = new Uint8Array(input); const key = Utils.convertToByteArray(args[0].string || "", args[0].option), [, scheme, nullPreserving] = args;