mirror of
https://github.com/gchq/CyberChef.git
synced 2025-07-03 19:32:22 -04:00
Merge branch 'master' of https://github.com/PenguinGeorge/CyberChef
This commit is contained in:
commit
6f53a791af
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,6 @@ const BitwiseOp = {
|
|||
if (scheme === "Cascade") k = input[i + 1] || 0;
|
||||
o = input[i];
|
||||
x = nullPreserving && (o === 0 || o === k) ? o : func(o, k);
|
||||
result.push(x);
|
||||
if (scheme &&
|
||||
scheme !== "Standard" &&
|
||||
!(nullPreserving && (o === 0 || o === k))) {
|
||||
|
@ -46,8 +45,13 @@ const BitwiseOp = {
|
|||
case "Output differential":
|
||||
key[i % key.length] = o;
|
||||
break;
|
||||
case "Cascade":
|
||||
k ^= input[i + 1];
|
||||
x = nullPreserving && (o === 0 || o === k) ? o : func(o, k);
|
||||
break;
|
||||
}
|
||||
}
|
||||
result.push(x);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue