Prince (cipher) explained

Prince
Publish Date:2012
Derived From:AES, PRESENT
Key Size:128 bits
Block Size:64 bits
Structure:SPN
Rounds:11 (but 12 non-linear layers)
Cryptanalysis:a single key can be recovered with a computational complexity of 2125.47 using the structural linear relations.

In the related key setting, the data complexity is 233 and the time complexity 264.

Using related key boomerang attack the complexity is 239 for both data and time.

Prince is a block cipher targeting low latency, unrolled hardware implementations. It is based on the so-called FX construction.[1] Its most notable feature is the alpha reflection: the decryption is the encryption with a related key which is very cheap to compute. Unlike most other "lightweight" ciphers, it has a small number of rounds and the layers constituting a round have low logic depth. As a result, fully unrolled implementation are able to reach much higher frequencies than AES or PRESENT. According to the authors, for the same time constraints and technologies, PRINCE uses 6–7 times less area than PRESENT-80 and 14–15 times less area than AES-128.[2]

Overview

The block size is 64 bits and the key size is 128 bits. The key is split into two 64 bit keys

K0

and

K1

. The input is XORed with

K0

, then is processed by a core function using

K1

. The output of the core function is xored by

K'0

to produce the final output (

K0'

is a value derived from

K0

). The decryption is done by exchanging

K0

and

K'0

and by feeding the core function with

K1

xored with a constant denoted alpha.[3]

The core function contain 5 "forward" rounds, a middle round, and 5 "backward" rounds, for 11 rounds in total. The original paper mentions 12 rounds without explicitly depicting them; if the middle round is counted as two rounds (as it contains two nonlinear layers), then the total number of rounds is 12.

A forward round starts with a round constant XORed with

K1

, then a nonlinear layer

S

, and finally a linear layer

M

. The "backward" rounds are exactly the inverse of the "forward" rounds except for the round constants.

The nonlinear layer is based on a single 4-bit S-box which can be chosen among the affine-equivalent of 8 specified S-boxes.

The linear layer consists of multiplication by a 64x64 matrix

M'

and a shift row similar to the one in AES but operating on 4-bit nibbles rather than bytes.

M'

is constructed from 16x16 matrices

M0

and

M1

in such a way that the multiplication by

M'

can be computed by four smaller multiplications, two using

M0

and two using

M1

.

The middle round consists of the

S

layer followed by

M'

followed by the

S-1

layer.

Cryptanalysis

To encourage cryptanalysis of the Prince cipher, the organizations behind it created the Web site: Prince challenge. 2016-10-09. 2016-10-23. https://web.archive.org/web/20161023201531/https://www.emsec.rub.de/research/research_startseite/prince-challenge/. dead.

The paper "Security analysis of PRINCE"[4] presents several attacks on full and round reduced variants, in particular, an attack of complexity 2125.1 and a related key attack requiring 233 data.

A generic time–memory–data tradeoff for FX constructions has been published, with an application to Prince.[5] The paper argues that the FX construction is a fine solution to improve the security of a widely deployed cipher (like DES-X did for DES) but that it is a questionable choice for new designs. It presents a tweak to the Prince cipher to strengthen it against this particular kind of attack.

A biclique cryptanalysis attack has been published on the full cipher. It is somewhat inline with the estimation of the designers since it reduces the key search space by 21.28 (the original paper mentions a factor 2).[6]

The paper "Reflection Cryptanalysis of PRINCE-Like Ciphers" focuses on the alpha reflection and establishes choice criteria for the alpha constant. It shows that a poorly chosen alpha would lead to efficient attacks on the full cipher; but the value randomly chosen by the designers is not among the weak ones.[7]

Several meet-in-the-middle attacks have been published on round reduced versions.[8] [9] [10]

An attack in the multi-user setting can find the keys of 2 users among a set of 232 users in time 265.[11]

An attack on 10 rounds with overall complexity of 118.56 bits has been published.[12]

An attack on 7 rounds with time complexity of 257 operations has been published.[13]

A differential fault attack has been published using 7 faulty cipher texts under random 4 bit nibble fault model.[14]

The paper "New approaches for round-reduced PRINCE cipher cryptanalysis"[15] presents boomerang attack and known-plaintext attack on reduced round versions up to 6 rounds.

In 2015 few additional attacks have been published but are not freely available.[16] [17]

Most practical attacks on reduced round versions

Number of roundsTimeDataMethod
4data-sort-value="43.4" 243.433Meet-in-the-middle
4data-sort-value="8.5" 5*2880Integral
5data-sort-value="29" 22996Integral
6data-sort-value="33.7" 225.130574Differential cryptanalysis
6data-sort-value="41" 241393216Integral
6data-sort-value="34" 234data-sort-value="2000000.32" 232Boomerang
8data-sort-value="50.7" 250.7data-sort-value="2000000.16" 216Meet-in-the-middle

External links

Notes and References

  1. Book: 10.1007/3-540-68697-5_20. How to Protect DES Against Exhaustive Key Search. Advances in Cryptology – CRYPTO '96. 1109. 252–267. Lecture Notes in Computer Science. 1996. Kilian. Joe. Rogaway. Phillip. 978-3-540-61512-5.
  2. Julia. Borghoff. Anne. Canteaut. Anne Canteaut. Tim. Guneysu. Elif. Bilge Kavun. Miroslav. Knezevic. Lars R.. Knudsen. Gregor. Leander. Ventzislav. Nikov. Christof. Paar. Christian. Rechberger. Peter. Rombouts. Søren S.. Thomsen. Tolga. Yalcın. PRINCE – A Low-latency Block Cipher for Pervasive Computing Applications.
  3. Book: Advances in cryptology--ASiACRYPT 2012: 18th international conference on the theory and application of cryptology and information security, Beijing, China, December 2-6, 2012 proceedings . 2012 . Springer . 978-3-642-34961-4 . International Conference on the Theory and Application of Cryptology and Information Security . Lecture notes in computer science . Heidelberg New York.
  4. Jean . Jérémy . Nikolic . Ivica . Peyrin . Thomas . Wang . Lei . Wu . Shuang . 2013 . Security analysis of PRINCE . Fast Software Encryption.
  5. Itai. Dinur. Cryptanalytic Time-Memory-Data Tradeoffs for FX-Constructions with Applications to PRINCE and PRIDE.
  6. Farzaneh. Abed. Eik. List. Stefan. Lucks. On the Security of the Core of PRINCE Against Biclique and Differential Cryptanalysis.
  7. Hadi. Soleimany. Céline. Blondeau. Xiaoli. Yu. Wenling. Wu. Kaisa. Nyberg. Huiling. Zhang. Lei. Zhang. Yanfeng. Wang. Reflection Cryptanalysis of PRINCE-Like Ciphers.
  8. Leo. Perrin. P.. Derbez. Meet-in-the-Middle Attacks and Structural Analysis of Round-Reduced PRINCE.
  9. Leibo. Li. Keting. Jia. Xiaoyun. Wang. Improved Meet-in-the-Middle Attacks on AES-192 and PRINCE.
  10. Book: A.. Canteaut. Anne Canteaut. M.. Naya-Plasencia. B.. Vayssière. Advances in Cryptology – CRYPTO 2013 . Sieve-in-the-Middle: Improved MITM Attacks . Lecture Notes in Computer Science . 2013 . 8042 . 222–240 . 10.1007/978-3-642-40041-4_13 . 978-3-642-40040-7 .
  11. Pierre-Alain. Fouque. Antoine. Joux. Chrysanthi. Mavromati. Multi-user collisions: Applications to Discrete Logs, Even-Mansour and Prince.
  12. Anne. Canteaut. Anne Canteaut. Thomas. Fuhr. Henri. Gilbert. Maria. Naya-Plasencia. Jean-René. Reinhard. Multiple Differential Cryptanalysis of Round-Reduced PRINCE.
  13. P.. Morawiecki. Practical Attacks on the Round-reduced PRINCE.
  14. Ling. Song. Lei. Hu. Differential Fault Attack on the PRINCE Block Cipher.
  15. R.. Posteuca. C.. Duta. G.. Negara. New approaches for round-reduced PRINCE cipher cryptanalysis.
  16. R.. Posteuca. G.. Negara. Integral cryptanalysis of round-reduced PRINCE cipher. Proceedings of the Romanian Academy. Series A. Mathematics, Physics, Technical Sciences, Information Science . 16 . 2015 .
  17. G.. Zhao. B.. Sun. C.. Li. J.. Su. Truncated differential cryptanalysis of PRINCE. Security and Communication Networks . 8. 16. 2875–2887. 2015. 10.1002/sec.1213. 30147147 .