KASUMI is a block cipher used in UMTS, GSM, and GPRSmobile communications systems.
In UMTS, KASUMI is used in the confidentiality (f8) and integrity algorithms (f9) with names UEA1 and UIA1, respectively.[1]
In GSM, KASUMI is used in the A5/3 key stream generator and in GPRS in the GEA3 key stream generator.
KASUMI was designed for 3GPP to be used in UMTS security system by the Security Algorithms Group of Experts
(SAGE), a part of the European standards body ETSI.[2]
Because of schedule pressures in 3GPP standardization, instead of developing a new cipher, SAGE agreed with
3GPP technical specification group (TSG) for system aspects of 3G security (SA3) to base the development
on an existing algorithm that had already undergone some evaluation.[2]
They chose the cipher algorithm MISTY1 developed[3]
and patented[4]
by Mitsubishi Electric Corporation.
The original algorithm was slightly modified for easier hardware implementation and to
meet other requirements set for 3G mobile communications security.
KASUMI is named after the original algorithm MISTY1 — 霞み (hiragana かすみ, romaji kasumi) is the Japanese word for "mist".
In January 2010, Orr Dunkelman, Nathan Keller and Adi Shamir released a paper showing that they could break Kasumi with a related-key attack and very modest computational resources; this attack is ineffective against MISTY1.[5]
Description
KASUMI algorithm is specified in a 3GPP technical specification.[6]
KASUMI is a block cipher with 128-bit key and 64-bit input and output.
The core of KASUMI is an eight-round Feistel network. The round functions
in the main Feistel network are irreversible Feistel-like network
transformations. In each round the round function uses a round key
which consists of eight 16-bit sub keys
derived from the original 128-bit key using a fixed key schedule.
Key schedule
The 128-bit key K is divided into eight 16-bit sub keys Ki:
Additionally a modified key K', similarly divided into 16-bit
sub keys K'i, is used. The modified key is derived from
the original key by XORing with 0x123456789ABCDEFFEDCBA9876543210 (chosen as a "nothing up my sleeve" number).
Round keys are either derived from the sub keys by bitwise rotation to left
by a given amount and from the modified sub keys (unchanged).
The round keys are as follows:
Sub key index additions are cyclic so that if i+j is greater than 8
one has to subtract 8 from the result to get the actual sub key index.
The algorithm
KASUMI algorithm processes the 64-bit word in two 32-bit halves, left ()
and right ().
The input word is concatenation of the left and right halves of the first round:
.
In each round the right half is XOR'ed with the output of the round function
after which the halves are swapped:
where KLi, KOi, KIi are round keys
for the ith round.
The round functions for even and odd rounds are slightly different. In each case
the round function is a composition of two functions FLi and FOi.
For an odd round
and for an even round
.
The output is the concatenation of the outputs of the last round.
.
Both FL and FO functions divide the 32-bit input data to two 16-bit halves.
The FL function is an irreversible bit manipulation while the FO function is
an irreversible three round Feistel-like network.
Function FL
The 32-bit input x of is divided to two 16-bit halves .
First the left half of the input is ANDed bitwise with round key and rotated
left by one bit. The result of that is XOR'ed to the right half of the input to get the right
half of the output .
Then the right half of the output is ORed bitwise with the round key and rotated
left by one bit. The result of that is XOR'ed to the left half of the input to get the left
half of the output .
Output of the function is concatenation of the left and right halves .
Function FO
The 32-bit input x of is divided into two 16-bit halves , and passed through three rounds of a Feistel network.
In each of the three rounds (indexed by j that takes values 1, 2, and 3) the left half is modified
to get the new right half and the right half is made the left half of the next round.
The output of the function is .
Function FI
The function FI is an irregular Feistel-like network.
The 16-bit input of the function is divided to two halves
of which is 9 bits wide and is 7 bits wide.
Bits in the left half are first shuffled by 9-bit substitution box (S-box) S9 and the result is XOR'ed with
the zero-extended right half to get the new 9-bit right half .
Bits of the right half are shuffled by 7-bit S-box S7 and the result is XOR'ed with
the seven least significant bits (LS7) of the new right half to get the new 7-bit left half .
The intermediate word is XORed with the round key KI to get
of which is 7 bits wide and is 9 bits wide.
Bits in the right half are then shuffled by 9-bit S-box S9 and the result is XOR'ed with
the zero-extended left half to get the new 9-bit right half of the output .
Finally the bits of the left half are shuffled by 7-bit S-box S7 and the result is XOR'ed with
the seven least significant bits (LS7) of the right half of the output to get the 7-bit left
half of the output.
The output is the concatenation of the final left and right halves .
Substitution boxes
The substitution boxes (S-boxes) S7 and S9 are defined by both bit-wise AND-XOR expressions and look-up tables in the specification.
The bit-wise expressions are intended to hardware implementation but nowadays it is customary to use
the look-up tables even in the HW design.
In 2003 Elad Barkan, Eli Biham and Nathan Keller demonstrated man-in-the-middle attacks against the GSM protocol which avoided the A5/3 cipher and thus breaking the protocol. This approach does not attack the A5/3 cipher, however.[8] The full version of their paper was published later in 2006.[9]
In 2005, Israeli researchers Eli Biham, Orr Dunkelman and Nathan Keller published a related-keyrectangle (boomerang) attack on KASUMI that can break all 8 rounds faster than exhaustive search.[10]
The attack requires 254.6 chosen plaintexts, each of which has been encrypted under one of four related keys, and has a time complexity equivalent to 276.1 KASUMI encryptions. While this is obviously not a practical attack, it invalidates some proofs about the security of the 3GPP protocols that had relied on the presumed strength of KASUMI.
In 2010, Dunkelman, Keller and Shamir published a new attack that allows an adversary to recover a full A5/3 key by related-key attack.[5] The time and space complexities of the attack are low enough that the authors carried out the attack in two hours on an Intel Core 2 Duo desktop computer even using the unoptimized reference KASUMI implementation. The authors note that this attack may not be applicable to the way A5/3 is used in 3G systems; their main purpose was to discredit 3GPP's assurances that their changes to MISTY wouldn't significantly impact the security of the algorithm.