RMIT University
Browse

Testing stream ciphers by finding the longest substring of a given density

conference contribution
posted on 2024-10-31, 09:27 authored by Serdar BoztasSerdar Boztas, Simon Puglisi, Andrew Turpin
Given a string x[1..n] drawn from the alphabet {0,1}, and a rational density parameter 0 ≤ θ ≤ 1, this paper considers algorithms for finding the longest substring of x with density θ. That is, if the length of the substring is m, the number of one-bits in the substring is exactly θ×m. It is surprisingly difficult to devise an algorithm that has worst case time less than the obvious brute-force algorithm's O(n²). We present three new approaches to reducing the running time, and an algorithm that solves the problem in O(nlogn) expected time. We then apply the new algorithm, as well as an empirical estimate of the lim-sup and the lim-inf of a centred statistic which is expected to obey a law of the iterated logarithm, to the randomness testing of (a) the output of the BSD function Random, and (b) the output of the stream cipher Dragon. The results for these outputs warrant further study.

History

Volume

5594

Start page

122

End page

133

Total pages

12

Outlet

Proceedings of the Information Security and Privacy: 14th Australasian Conference, ACISP 2009 Brisbane, Australia, July 1-3, 2009

Editors

Colin Boyd, Juan González Nieto

Name of conference

ACISP 2009

Publisher

Springer

Place published

Germany

Start date

2009-07-01

End date

2009-07-03

Language

English

Former Identifier

2006016520

Esploro creation date

2020-06-22

Fedora creation date

2010-12-14