Rotational Cryptanalysis on ChaCha Stream Cipher
Open Access
Abstract
In this paper we consider the ChaCha20 stream cipher in the related-key scenario and we study how to obtain rotational-XOR pairs with nonzero probability after the application of the first quarter round. The ChaCha20 input can be viewed as a matrix of 32-bit words, where the first row of the matrix is fixed to a constant value, the second two rows represent the key, and the fourth some initialization values. Under some reasonable independence assumptions and a suitable selection of the input, we show that the aforementioned probability is about , a value greater than , which is the one expected from a random permutation. We also investigate the existence of constants, different from the ones used in the first row of the ChaCha20 input, for which the rotational-XOR probability increases, representing a potential weakness in variants of the ChaCha20 stream cipher. So far, to our knowledge, this is the first analysis of the ChaCha20 stream cipher from a rotational-XOR perspective.
Keywords
Funding Information
- Politecnico di Torino
This publication has 13 references indexed in Scilit:
- ChaCha20 and Poly1305 for IETF Protocols2018
- Rotational Cryptanalysis of ARX Revisited2015
- SPHINCS: Practical Stateless Hash-Based Signatures2015
- Rotational Cryptanalysis of Round-Reduced Keccak2014
- Analysis of BLAKE22014
- Rotational Cryptanalysis of ARX2010
- Rotational Rebound Attacks on Reduced Skein2010
- SEA: A Scalable Encryption Algorithm for Small Embedded ApplicationsLecture Notes in Computer Science, 2006
- Related-key cryptanalysis of 3-WAY, Biham-DES,CAST, DES-X, NewDES, RC2, and TEA1997
- New types of cryptanalytic attacks using related keysJournal of Cryptology, 1994