From 00328dd0c3b64fad30a7514f50f50df96bb03e48 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 19 Jul 2015 08:20:33 -0700 Subject: [PATCH] Documentation about Ringstellung --- Enigma/Components.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Enigma/Components.swift b/Enigma/Components.swift index cf8aceb..73db1ae 100644 --- a/Enigma/Components.swift +++ b/Enigma/Components.swift @@ -76,7 +76,7 @@ class FixedRotor: Cryptor, Encoder { } -/** Rotors are FixedRotors that have a variable position, which offsets the alphabet from the series and changes which character is substituted for a given input. */ +/** Rotors are FixedRotors that _not_ fixed. They have a variable position, which offsets the alphabet from the series and changes which character is substituted for a given input. Rotors also have a variable `ringPosition`, _Ringstellung_ in German, which offsets the alphabet further. The Ringstellung was set as part of the machine setup, while the position changed based on how many characters were encoded. */ class Rotor: FixedRotor { /** Standard rotor wirings for various iterations of Enigma machine. Most Enigma machines had three rotors in place. Some variations also had additional rotors that could be swapped in. UKW is the reflector, the _Umkehrwalze_ in German. ETW is the entry plate, the _Eintrittswalze_ in German. The ETW was a simple pass-through in the German Enigma machine, but in other variations did another substitution. */ enum Wiring: String {