This paper proposes the use of the binary primes sequence to strengthen pseudorandom (PN) decimal sequences for cryptography applications. The binary primes sequence is added to the PN decimal sequence (where one can choose from many arbitrary shift values) and it is shown that the sum sequence has improved autocorrelation properties besides being computationally hard. Also, an analysis on the computational complexity is performed and it is shown that the complexity for the eavesdropper is of exponential complexity and therefore, the proposed method is an attractive procedure for cryptographic applications.
In decentralized network architectures and electronic currency protocols, one needs random sequences with good complexity and correlation properties. This paper examines the properties of the binary primes sequence and proposes their use for strengthening of pseudorandom sequences for generating keys and for signing secure protocols. The paper presents a method to exploit the complexity of the primes sequence and convert that to the randomness of the binary sequence.
The reason why this may not have been examined before is that the primes come along rather slowly with the integer value as we know from the prime number theorem [1]. Our idea to deal with this problem is to use several shifted versions of the binary primes sequence so that the number of 0s and 1s are approximately balanced.
Pseudonoise (PN) sequences are random binary sequences with a maximum period which are generated by using a linear feedback shift registers [2]- [4]. PN sequences are widely used for generating keys even though they are not strong cryptographically. The class of pseudorandom decimal (D) sequences [5] are sometimes used in place of shift register sequences:
where q is a prime number. Generated D sequences possess good autocorrelation properties although they are also cryptographically weak.
We show in this paper that adding a suitable binary primes sequence to the D sequence leads to excellent correlation characteristics of the resultant sequence, which can, therefore, be used in a variety of applications that require random sequences. The binary primes sequence may likewise be added to the PN sequence for computational hardening [6].
The next section presents the preliminaries regarding the binary primes sequence. Subsequent sections investigate this and the composite pseudorandom sequences for their randomness properties.
The binary primes sequence obtained by the mapping:
It is understood that b(k) =0, for k 0.
Since the problem of computing the next primes sequence is computationally intensive, the primes sequence is intuitively random. However, it is not balanced in its distribution of 0s and 1s. Now according to the Prime Number Theorem [6], the number of prime numbers less than an integer N is given by
When we consider first 1000 natural numbers, the number of primes less than 1000 is about 144 or the binary sequence has approximately 144 1s and 856 0s. We propose to balance this sequence by adding several shifted versions of the primes sequence.
The number of shifters required to generate the binary primes sequence will be (5)
The autocorrelation function C(n) for the binary primes sequence B N,L (k) is given by:
where L is the number of shifters and N is the period of b(k). Table 1: Prime sequences with one shift for n=10 (L=1) n = 10 1 2 3 4 5 6 7 8 9 1 0 1s count 0 1 1 0 1 0 1 0 0 0 4 (a 0 =0)
Table 2: Prime sequences with two shifts for n=10 (L=2) n = 10 1 2 3 4 5 6 7 8 9 10 1s count 0 1 1 0 1 0 1 0 0 0 4 (a 0 =0) The randmoness measure for the binary primes sequence, B N,L (k), is given by the metric below [7]:
We consider adding the D sequence, a(k) from equation ( 1), to the binary primes sequence B N,L (k). Let the sum sequence be represented by P(k):
The autocorrelation function of P(k) is calculated by C
where N is the period for the maximum length periodic sequence. Figure 6 presents the average off-peak magnitudes of P(k) and binary primes sequence B N,L (k) for different prime numbers ranging between 40 to 650. We see that the quality of randomness increases with p.
From the point of view of the eavesdropper the determination of the B N,L (k) sequence offers exponental complexity. The eavesdropper must try out not only different values of N and L in the binary primes sequence but also the variables a 0, a 1 ,…a L-1 . Since the a i s can be arbitrary values, the task of the eavesdropper is well high impossible.
According to the attacker’s point of view, there are 3 unknowns factors in the given algorithm.
- The prime number used to generate the random sequence 2. The number of shifters that have been utilized to generate the binary primes sequence, B N,L (k) 3. Different shifts factors used to generate the primes sequence b(k) If the binary primes sequence is generated by employing, a large value integer, N, then the complexity for an attacker is For example if we consider, N ~ 10 6 . Then the complexity order will be The effort in guessing all the above compuational factors cannot be easy to the attacker due to the complexity of the algorithm.
Although this paper used binary primes sequence to strengthen decimal sequences, the method can be likewise employed to strengthen other pseudorandom sequences. We showed that the autocorrelation properties of the resultant sequences are excellent and we related the variation of average off-peak value of it to change in prime numbers. The cost of adding the binary primes sequence is minimal because it can be precomputed and stored in the ap
This content is AI-processed based on open access ArXiv data.