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;