Merge branch 'master' of https://github.com/PenguinGeorge/CyberChef
This commit is contained in:
commit
6f53a791af
@ -35,7 +35,6 @@ const BitwiseOp = {
|
|||||||
if (scheme === "Cascade") k = input[i + 1] || 0;
|
if (scheme === "Cascade") k = input[i + 1] || 0;
|
||||||
o = input[i];
|
o = input[i];
|
||||||
x = nullPreserving && (o === 0 || o === k) ? o : func(o, k);
|
x = nullPreserving && (o === 0 || o === k) ? o : func(o, k);
|
||||||
result.push(x);
|
|
||||||
if (scheme &&
|
if (scheme &&
|
||||||
scheme !== "Standard" &&
|
scheme !== "Standard" &&
|
||||||
!(nullPreserving && (o === 0 || o === k))) {
|
!(nullPreserving && (o === 0 || o === k))) {
|
||||||
@ -46,8 +45,13 @@ const BitwiseOp = {
|
|||||||
case "Output differential":
|
case "Output differential":
|
||||||
key[i % key.length] = o;
|
key[i % key.length] = o;
|
||||||
break;
|
break;
|
||||||
|
case "Cascade":
|
||||||
|
k ^= input[i + 1];
|
||||||
|
x = nullPreserving && (o === 0 || o === k) ? o : func(o, k);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
result.push(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user