Tuesday, 22 May 2012
  DiceLock improves symmetric ciphers like AES (Advanced Encryption Standard) and others.
  Providing maximum information security privacy with little time.
Longest Run Of Ones Test

National Institute of Standards and Technology (NIST) published Special Publication 800-22 rev1a, “A statistical test suite for random and pseudorandom number generators for cryptographic applications”.

This suite has been estabished as a standard of random number testing.

Once research with Frequency test has shown that different streamers can produce randomized-encrypted sequences. So, it's now time to verify that checked streamers produce good randomized-encrypted text sequences with Longest Run Of Ones random number test.

Tests performed
AES 128 with CBC mode
AES 192 with CBC mode
AES 256 with CBC mode
AES 128 with CFB mode
AES 192 with CFB mode
AES 256 with CFB mode
AES 128 with OFB mode
AES 192 with OFB mode
AES 256 with OFB mode
HC 128
HC 256

Summary

100.000 randomized-encrypted text sequences checked for each cipher:

Ciphers checked Random streams Non random streams Random streams (%) Non random streams (%)
AES 128 - CBC mode 99.985 15 99,985 % 0,015 %
AES 192 - CBC mode 99.972 28 99,972 % 0,028 %
AES 256 - CBC mode 99.947 53 99,947 % 0,053 %
AES 128 - CFB mode 99.984 16 99,984 % 0,016 %
AES 192 - CFB mode 99.973 27 99,973 % 0,027 %
AES 256 - CFB mode 99.948 52 99,948 % 0,052 %
AES 128 - OFB mode 99.984 16 99,984 % 0,016 %
AES 192 - OFB mode 99.973 27 99,973 % 0,027 %
AES 256 - OFB mode 99.948 52 99,948 % 0,052 %
HC 128 99.885 115 99,885 % 0,115 %
HC 256 99.779 221 99,779 % 0,221 %

We can see that the worst number of non random encrypted sequences with longest run of ones random number test is 221 non random of 100.000 encrypted sequences tested. This is accomplished with HC 256 stream cipher.

That is, all streamer ciphers (all AES with all operation modes and HC 128 and HC 256 stream cipher) generate randomized encrypted sequences checked with longest run of ones test with a probability greater than 99,779 %.

So, we can continue with DiceLock product research cause it shows that the targets can be achieved.

Tests performed and results are shown in the following way:

Encryption algorithm and operation mode if proceeds

Inputs:

Number of plaintext sequences tested The number of sequences tested
Plaintext sequence lengths Lengths of the sequences been tested
Plaintext sequence content Plaintext values being tested
Encryption key length Encryption key length in bytes
Encryption key values Encryption key values per byte
Initialization vector length Initialization vector length in bytes
Initialization vector values Initialization vector values per byte
Longest Run Of Ones confidence Random confidence level in longest run of ones test
Longest Run Of Ones p-value Assigned p-value in accordance to confidence level setted

Results:

Random ciphertext sequences The number of ciphertext sequences thar are random based on frequency test
Non random ciphertext sequences The number of ciphertext sequences thar are NOT random based on longest run of ones test
Random ciphertext sequences (percentage) Percentage of ciphertext sequences thar are random based on longest run of ones test
Non random ciphertext sequences (percentage) Percentage of ciphertext sequences thar are NOT random based on frequency frequency test
Correct deciphered texts
Number of correct deciphered sequences (to see that encryption algorithms are woking properly)
Incorrect deciphered texts Number of incorrect deciphered sequences (to see that encryption algorithms are woking properly)
Checked Longest Run Of Ones test with data.e file
Checked Longest Run Of Ones random number test with NIST data.e test file

Blog: [link to post showing result screenshot]

AES 128 with CBC mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 128 bits (16 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.985
Non random ciphertext sequences 15
Random ciphertext sequences (percentage) 99,985 %
Non random ciphertext sequences (percentage) 0,015 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 128 (Advanced Encryption Standard) in CBC mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 192 with CBC mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 192 bits (24 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.972
Non random ciphertext sequences 28
Random ciphertext sequences (percentage) 99,972 %
Non random ciphertext sequences (percentage) 0,028 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 192 (Advanced Encryption Standard) in CBC mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 256 with CBC mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 256 bits (32 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.947
Non random ciphertext sequences 53
Random ciphertext sequences (percentage) 99,947 %
Non random ciphertext sequences (percentage) 0,053 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 256 (Advanced Encryption Standard) in CBC mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 128 with CFB mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 128 bits (16 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.984
Non random ciphertext sequences 16
Random ciphertext sequences (percentage) 99,984 %
Non random ciphertext sequences (percentage) 0,016 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 128 (Advanced Encryption Standard) in CFB mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 192 with CFB mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 192 bits (24 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.973
Non random ciphertext sequences 27
Random ciphertext sequences (percentage) 99,973 %
Non random ciphertext sequences (percentage) 0,027 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 192 (Advanced Encryption Standard) in CFB mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 256 with CFB mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 256 bits (32 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.948
Non random ciphertext sequences 52
Random ciphertext sequences (percentage) 99,948 %
Non random ciphertext sequences (percentage) 0,052 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 256 (Advanced Encryption Standard) in CFB mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 128 with OFB mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 128 bits (16 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.984
Non random ciphertext sequences 16
Random ciphertext sequences (percentage) 99,984 %
Non random ciphertext sequences (percentage) 0,016 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 128 (Advanced Encryption Standard) in OFB mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 192 with OFB mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 192 bits (24 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.973
Non random ciphertext sequences 27
Random ciphertext sequences (percentage) 99,973 %
Non random ciphertext sequences (percentage) 0,027 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 192 (Advanced Encryption Standard) in OFB mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

AES 256 with OFB mode

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 256 bits (32 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.948
Non random ciphertext sequences 52
Random ciphertext sequences (percentage) 99,948 %
Non random ciphertext sequences (percentage) 0,052 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: AES 256 (Advanced Encryption Standard) in OFB mode generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

HC 128

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 128 bits (16 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 128 bits (16 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.885
Non random ciphertext sequences 115
Random ciphertext sequences (percentage) 99,885 %
Non random ciphertext sequences (percentage) 0,115 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: HC 128 cipher stream (eSTREAM candidate) generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence

HC 256

Inputs:

Number of plaintext sequences tested 100.000 sequences
Plaintext sequence lengths from 1.000 bits to 801.000 bits (from 125 to 100.125 bytes, length incremented 1 byte each test)
Plaintext sequence content All bytes to value 0 (0x00)
Encryption key length 256 bits (32 bytes)
Encryption key values each key tested has the same byte value for all bytes, values go from 0×00 to 0xff
Initialization vector length 256 bits (32 bytes)
Initialization vector values each initialization vector tested has the same byte value for all bytes, values go from 0×00 to 0xff.
Longest Run Of Ones confidence 99,9%
Longest Run Of Ones p-value 0.001

Results:

Random ciphertext sequences 99.779
Non random ciphertext sequences 221
Random ciphertext sequences (percentage) 99,779 %
Non random ciphertext sequences (percentage) 0,221 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Longest Run Of Ones test with data.e file
YES

Blog: HC 256 cipher stream (eSTREAM candidate) generates randomized encrypted text checked with longest run of ones random number test at 99,9 per cent confidence
 
Cart
Your Cart is currently empty.

ECB Converter
Customer Login

Newsletter Subscription

Subscribe to our Newsletter. If you want to know the purpose of our Newsletter, click here !!!