From 993e27685829d0b4800211bde115ee64e2b8bacf Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 29 Mar 2022 12:45:42 +0100 Subject: [PATCH] Tidied up Bletchley ops --- src/core/operations/Bombe.mjs | 3 +++ src/core/operations/Colossus.mjs | 3 +++ src/core/operations/Enigma.mjs | 3 +++ src/core/operations/Lorenz.mjs | 3 +++ src/core/operations/SIGABA.mjs | 4 ++-- src/core/operations/Typex.mjs | 3 +++ 6 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/core/operations/Bombe.mjs b/src/core/operations/Bombe.mjs index d1cae416..a635b430 100644 --- a/src/core/operations/Bombe.mjs +++ b/src/core/operations/Bombe.mjs @@ -1,6 +1,9 @@ /** * Emulation of the Bombe machine. * + * Tested against the Bombe Rebuild at Bletchley Park's TNMOC + * using a variety of inputs and settings to confirm correctness. + * * @author s2224834 * @copyright Crown Copyright 2019 * @license Apache-2.0 diff --git a/src/core/operations/Colossus.mjs b/src/core/operations/Colossus.mjs index 8aa9cf07..e9f00cf1 100644 --- a/src/core/operations/Colossus.mjs +++ b/src/core/operations/Colossus.mjs @@ -1,6 +1,9 @@ /** * Emulation of Colossus. * + * Tested against the Colossus Rebuild at Bletchley Park's TNMOC + * using a variety of inputs and settings to confirm correctness. + * * @author VirtualColossus [martin@virtualcolossus.co.uk] * @copyright Crown Copyright 2019 * @license Apache-2.0 diff --git a/src/core/operations/Enigma.mjs b/src/core/operations/Enigma.mjs index 01fc63e7..c0a75841 100644 --- a/src/core/operations/Enigma.mjs +++ b/src/core/operations/Enigma.mjs @@ -1,6 +1,9 @@ /** * Emulation of the Enigma machine. * + * Tested against various genuine Enigma machines using a variety of inputs + * and settings to confirm correctness. + * * @author s2224834 * @copyright Crown Copyright 2019 * @license Apache-2.0 diff --git a/src/core/operations/Lorenz.mjs b/src/core/operations/Lorenz.mjs index a9c2029b..28ac3bf7 100644 --- a/src/core/operations/Lorenz.mjs +++ b/src/core/operations/Lorenz.mjs @@ -1,6 +1,9 @@ /** * Emulation of the Lorenz SZ40/42a/42b cipher attachment. * + * Tested against the Colossus Rebuild at Bletchley Park's TNMOC + * using a variety of inputs and settings to confirm correctness. + * * @author VirtualColossus [martin@virtualcolossus.co.uk] * @copyright Crown Copyright 2019 * @license Apache-2.0 diff --git a/src/core/operations/SIGABA.mjs b/src/core/operations/SIGABA.mjs index 42d1a9f3..274f09f6 100644 --- a/src/core/operations/SIGABA.mjs +++ b/src/core/operations/SIGABA.mjs @@ -22,9 +22,9 @@ class Sigaba extends Operation { super(); this.name = "SIGABA"; - this.module = "SIGABA"; + this.module = "Bletchley"; this.description = "Encipher/decipher with the WW2 SIGABA machine.

SIGABA, otherwise known as ECM Mark II, was used by the United States for message encryption during WW2 up to the 1950s. It was developed in the 1930s by the US Army and Navy, and has up to this day never been broken. Consisting of 15 rotors: 5 cipher rotors and 10 rotors (5 control rotors and 5 index rotors) controlling the stepping of the cipher rotors, the rotor stepping for SIGABA is much more complex than other rotor machines of its time, such as Enigma. All example rotor wirings are random example sets.

To configure rotor wirings, for the cipher and control rotors enter a string of letters which map from A to Z, and for the index rotors enter a sequence of numbers which map from 0 to 9. Note that encryption is not the same as decryption, so first choose the desired mode.

Note: Whilst this has been tested against other software emulators, it has not been tested against hardware."; - this.infoURL = "https://en.wikipedia.org/wiki/SIGABA"; + this.infoURL = "https://wikipedia.org/wiki/SIGABA"; this.inputType = "string"; this.outputType = "string"; this.args = [ diff --git a/src/core/operations/Typex.mjs b/src/core/operations/Typex.mjs index 46d99aa5..5c9d952e 100644 --- a/src/core/operations/Typex.mjs +++ b/src/core/operations/Typex.mjs @@ -1,6 +1,9 @@ /** * Emulation of the Typex machine. * + * Tested against a genuine Typex machine using a variety of inputs + * and settings to confirm correctness. + * * @author s2224834 * @copyright Crown Copyright 2019 * @license Apache-2.0