KASUMI | |
Designers: | Mitsubishi Electric |
Derived From: | MISTY1 |
Key Size: | 128 bits |
Block Size: | 64 bits |
Structure: | Feistel network |
Rounds: | 8 |
KASUMI is a block cipher used in UMTS, GSM, and GPRS mobile 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 developmenton 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 tomeet 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]
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 functionsin the main Feistel network are irreversible Feistel-like networktransformations. In each round the round function uses a round keywhich consists of eight 16-bit sub keysderived from the original 128-bit key using a fixed key schedule.
The 128-bit key K is divided into eight 16-bit sub keys Ki:
K=K1\|K2\|K3\|K4\|K5\|K6\|K7\|K8
Additionally a modified key K, similarly divided into 16-bitsub keys K'i, is used. The modified key is derived fromthe 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 leftby a given amount and from the modified sub keys (unchanged).
The round keys are as follows:
\begin{array}{lcl} KLi,1&=&{\rmROL}(Ki,1)\\ KLi,2&=&K'i+2\\ KOi,1&=&{\rmROL}(Ki+1,5)\\ KOi,2&=&{\rmROL}(Ki+5,8)\\ KOi,3&=&{\rmROL}(Ki+6,13)\\ KIi,1&=&K'i+4\\ KIi,2&=&K'i+3\\ KIi,3&=&K'i+7\end{array}
Sub key index additions are cyclic so that if i+j is greater than 8one has to subtract 8 from the result to get the actual sub key index.
KASUMI algorithm processes the 64-bit word in two 32-bit halves, left (
Li
Ri
{\rminput}=R0\|L0
In each round the right half is XOR'ed with the output of the round functionafter which the halves are swapped:
\begin{array}{rcl}Li&=&Fi(KLi,KOi,KIi,Li-1) ⊕ Ri-1\ Ri&=&Li-1\end{array}
where KLi, KOi, KIi are round keysfor the ith round.
The round functions for even and odd rounds are slightly different. In each casethe round function is a composition of two functions FLi and FOi.For an odd round
Fi(Ki,Li-1)=FO(KOi,KIi,FL(KLi,Li-1))
and for an even round
Fi(Ki,Li-1)=FL(KLi,FO(KOi,KIi,Li-1))
The output is the concatenation of the outputs of the last round.
{\rmoutput}=R8\|L8
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 isan irreversible three round Feistel-like network.
The 32-bit input x of
FL(KLi,x)
x=l\|r
l
KLi,1
r
r'
r'={\rmROL}(l\wedgeKLi,1,1) ⊕ r
Then the right half of the output
r'
KLi,2
l
l'
l'={\rmROL}(r'\veeKLi,2,1) ⊕ l
Output of the function is concatenation of the left and right halves
x'=l'\|r'
The 32-bit input x of
FO(KOi,KIi,x)
x=l0\|r0
In each of the three rounds (indexed by j that takes values 1, 2, and 3) the left half is modifiedto get the new right half and the right half is made the left half of the next round.
\begin{array}{lcl} rj&=&FI(KIi,j,lj-1 ⊕ KOi,j) ⊕ rj-1\\ lj&=&rj-1\end{array}
The output of the function is
x'=l3\|r3
The function FI is an irregular Feistel-like network.
The 16-bit input
x
FI(Ki,x)
x=l0\|r0
l0
r0
Bits in the left half
l0
r0
r1
r1=S9(l0) ⊕ (00\|r0)
Bits of the right half
r0
r1
l1
l1=S7(r0) ⊕ LS7(r1)
The intermediate word
x1=l1\|r1
x2=l2\|r2
l2
r2
x2=KI ⊕ x1
Bits in the right half
r2
l2
r3
r3=S9(r2) ⊕ (00\|l2)
Finally the bits of the left half
l2
r3
l3
l3=S7(l2) ⊕ LS7(r3)
The output is the concatenation of the final left and right halves
x'=l3\|r3
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 usethe look-up tables even in the HW design.
S7 is defined by the following array:
S9 is defined by the following array:
In 2001, an impossible differential attack on six rounds of KASUMI was presented by Kühn (2001).[7]
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-key rectangle (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. 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.