mirror of
https://github.com/gchq/CyberChef
synced 2025-01-01 07:18:47 +00:00
Switch XOR input and output differential logic. Fixes #1155
This commit is contained in:
parent
84011371b7
commit
c423de545f
1 changed files with 2 additions and 2 deletions
|
@ -34,10 +34,10 @@ export function bitOp (input, key, func, nullPreserving, scheme) {
|
|||
!(nullPreserving && (o === 0 || o === k))) {
|
||||
switch (scheme) {
|
||||
case "Input differential":
|
||||
key[i % key.length] = x;
|
||||
key[i % key.length] = o;
|
||||
break;
|
||||
case "Output differential":
|
||||
key[i % key.length] = o;
|
||||
key[i % key.length] = x;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue