Definitions

# John Herivel

John W. Herivel (born 1918) is a British science historian and former World War II codebreaker at Bletchley Park.

As a codebreaker, Herivel is remembered chiefly for the discovery of what was soon dubbed the Herivel tip or Herivelismus. The "tip" was an insight into the habits of German operators of the Enigma cipher machine that allowed Bletchley Park to easily deduce part of the daily key. For a brief but critical few months from May 1940, the Herivel tip in conjunction with "cillies" (another class of operator error) was the main technique used to solve Enigma.

Herivel has written books and articles on Isaac Newton, Joseph Fourier, Christiaan Huygens, and an autobiographical account of his work at Bletchley Park, 'Herivelismus'.

## Education and recruitment to Bletchley Park

John Herivel was born in Belfast, and attended Methodist College Belfast from 1924 to 1936. In 1937 he was awarded a scholarship to study mathematics at Cambridge University. Shortly thereafter, Herivel was recruited to Bletchley Park by his former supervisor Gordon Welchman, head of the newly formed Hut 6 section created to solve Army and Air Force Enigma. Herivel, then aged 21, arrived at Bletchley on 29 January 1940, and was brought up to speed on Enigma by Alan Turing and Tony Kendrick.

At the time, Hut 6 were having only limited success with the Luftwaffe Enigma network known as "Red". Herivel was working alongside David Rees, another Cambridge mathematician recruited by Welchman, in nearby Elmers School, testing candidate solutions and working out plugboard settings. The process was slow, however, and Herivel was determined to find a method to improve their attack, and would spend his evenings trying to think up ways to do so. One evening in the middle of February 1940 he was considering the procedures followed by a German operator when using Enigma, and identified a potential mistake that could greatly aid the codebreakers.

## Operator error

At the start of each day, the operator would set the "ring settings" (German: Ringstellung) on the Enigma rotors; that is, the position of the ring of letters (or numbers) around the rotor. The ring settings were taken from a codebook, but changed daily, and had to be altered at the start of each day before any messages could be sent. The ring settings could be adjusted before or after inserting the rotors into the machine. Herivel assumed that at least some of the operators would adjust them after. In the normal course of things, adjusting the rotors inside the machine would likely leave the correct ring setting at the top, or near the top, of the rotors.

Furthermore, for each message, the sending operator would follow a standard procedure. He would first select a starting position for the rotors, the ground setting (German: Grundstellung): GKX, for example. He would then use Enigma with the rotors set to GKX to encrypt a second starting position, the message setting, which he might choose to be RTQ; RTQ might encrypt to LLP. (Before May 1940 the message setting would be repeated then encrypted, but this makes no difference to Herivel's observation.) The operator would then turn his rotors to RTQ and encrypt the actual message. Included in the preamble to the message, unencrypted, would be the ground setting (GKX) as well as the encrypted message setting (LLP). A receiving Enigma operator could use this information to recover the message setting and then decrypt the message.

The ground setting (GKX in the above example) should have been chosen at random, but Herivel reasoned that if an operator were lazy, or in a hurry, or otherwise under pressure, he might simply use whatever rotor setting was currently showing on the machine. If this was the first message of the day, and the operator had set the ring settings with the rotors already inside the machine, then the rotor position currently showing on the machine could well be the ring setting itself, or else very close to it. (If this situation occurred in the above example, then GKX would be the ring setting, or very close to it). Moreover, the ground setting was sent unencrypted in the preamble to the message, which could then be easily spotted by the codebreakers at Bletchley Park.

## Exploiting the tip

The next day, Herivel's colleagues agreed that his idea was a possible way into Enigma. Hut 6 began looking for the effect predicted by the Herivel tip, and arranged to have the first messages of the day from each transmitting station to be sent to them early. They plotted the indicators in a grid termed a "Herivel square", an example of which is shown below. The rows and columns of the grid are labelled with the alphabet. Each ground setting received would be entered into the grid by finding the column corresponding to the first letter, the row corresponding to the second letter, and entering the third letter into the cell where the row and column intersected. For example, GKX would be recorded by entering a X in the cell in column G and row K.

`   A B C D E F G H I J K L M N O P Q R S T U V W X Y Z`
`----------------------------------------------------------`
`Z|                                                      |Z`
`Y| S                                                    |Y`
`X|                                                      |X`
`W|                                             L        |W`
`V|                                                      |V`
`U|                       E                              |U`
`T|                                                      |T`
`S|                                                      |S`
`R|                                                 K    |R`
`Q|     S                                                |Q`
`P|                                                      |P`
`O|                                                      |O`
`N|                               N                      |N`
`M|           X                                          |M`
`L|             W                             T          |L`
`K|             X Y                                      |K`
`J|           W   X                                      |J`
`I|                                                      |I`
`H|                                         Q            |H`
`G|                                                      |G`
`F|                                                      |F`
`E|           A                                          |E`
`D|                                                      |D`
`C|                     V                                |C`
`B|                                       J              |B`
`A|   P                                                  |A`
`----------------------------------------------------------`
`   A B C D E F G H I J K L M N O P Q R S T U V W X Y Z`
The Herivel tip suggested that there would be a cluster of entries close together, such as the cluster around GKX in the above example. This would narrow the options for the ring settings down from 17,576 (263) to a small set of possibilities, perhaps 6–30, which could be tested individually.

The effect predicted by Herivel was not immediately apparent in the Enigma traffic, however, and Bletchley Park relied chiefly on a different technique to get into Enigma: the method of "perforated sheets", which had been passed on by Polish cryptologists. The situation changed on 1 May 1940, when the Germans changed their indicating procedure, rendering the perforated sheets obsolete. Hut 6 was suddenly unable to decipher Enigma.

Fortunately for the codebreakers, the pattern predicted by the Herivel tip began to manifest itself. David Rees spotted a cluster in the indicators, and on 22 May an Air Force message sent on 20 May was decoded, the first since the change in procedure. The Herivel tip was used in combination with another class of operator mistake, known as "cillies", in order to solve the settings and decipher the messages. This method was used for several months until specialised codebreaking machines designed by Alan Turing, the so-called "bombes", were ready for use.

Gordon Welchman speculates that the Herivel tip was a vital part of breaking Enigma at Bletchley Park, writing, "If Herivel had not been recruited in January 1940, who would have thought of the Herivel tip, without which we whould have been defeated in May 1940 — unable to maintain continuity until the bombes began to arrive many months later? Let there be no misconceptions about this last point. Loss of continuity would, at all stages, have been very serious, if not disastrous.

Because of the importance of his contribution, Herivel was singled out and introduced to Winston Churchill during a visit to Bletchley Park. He also taught Enigma cryptanalysis to a party of Americans assigned to Hut 6 in an intensive two-week course. Herivel later worked in administration in the "Newmanry", the section responsible for solving German teleprinter ciphers using machine methods such as the Colossus computers, as assistant to the head of the section, mathematician Max Newman.

In 2005, researchers studying a set of Enigma-encrypted messages from World War II noted the occurrence of the Herivel tip in messages from August 1941.

## After World War II

After the end of the war, Herivel taught mathematics in a school for a year, but he found he could not handle the "rumbustious boys". He then lectured at Queen's University Belfast, where he was a reader in the History and Philosophy of Science, and later moved to All Souls College, Oxford. He has published books and articles on Isaac Newton, Joseph Fourier and Christiaan Huygens. His books include:

• The Background to Newton's "Principia": a study of Newton's dynamical researches in the years 1664-84 (Oxford, 1965)
• Joseph Fourier: The Man and the Physicist (Clarendon, 1984)

## References

• Hugh Sebag-Montefiore, Enigma: The Battle for the Code, 2000, ISBN 0-7538-1130-8.
• Herivel, John, Herivelismus and the German Military Enigma, 2008, ISBN 978-0-947712-46-4.
• Gordon Welchman, The Hut Six Story, first published 1982, new edition 1997, published by M & M Baldwin, ISBN 0-947712-34-8.
• Michael Smith, Station X: The Codebreakers of Bletchley Park, 1998, ISBN 0-7522-2189-2.