Tuesday, 22 May 2012
  DiceLock improves symmetric ciphers like AES (Advanced Encryption Standard) and others.
  Providing maximum information security privacy with little time.
Runs 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 Runs 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.860 140 99,860 % 0,140 %
AES 192 - CBC mode 99.816 184 99,816 % 0,184 %
AES 256 - CBC mode 99.944 56 99,944 % 0,056 %
AES 128 - CFB mode 99.857 143 99,857 % 0,143 %
AES 192 - CFB mode 99.814 186 99,814 % 0,186 %
AES 256 - CFB mode 99.944 56 99,944 % 0,056 %
AES 128 - OFB mode 99.857 143 99,857 % 0,143 %
AES 192 - OFB mode 99.814 186 99,814 % 0,186 %
AES 256 - OFB mode 99.944 56 99,944 % 0,056 %
HC 128 99.967 33 99,967 % 0,033 %
HC 256 99.964 36 99,964 % 0,036 %

We can see that the worst number of non random encrypted sequences with runs random number test is 186 non random of 100.000 encrypted sequences tested. This is accomplished with AES 192 with CFB mode and OFB mode 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 runs test with a probability greater than 99,814 %.

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
Runs confidence Random confidence level in runs test
Runs 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 runs test
Random ciphertext sequences (percentage) Percentage of ciphertext sequences thar are random based on runs 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 Runs test with data.e file
Checked Runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.860
Non random ciphertext sequences 140
Random ciphertext sequences (percentage) 99,860 %
Non random ciphertext sequences (percentage) 0,140 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 128 (Advanced Encryption Standard) in CBC mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.816
Non random ciphertext sequences 184
Random ciphertext sequences (percentage) 99,816 %
Non random ciphertext sequences (percentage) 0,184 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 192 (Advanced Encryption Standard) in CBC mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.944
Non random ciphertext sequences 56
Random ciphertext sequences (percentage) 99,944 %
Non random ciphertext sequences (percentage) 0,056 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 256 (Advanced Encryption Standard) in CBC mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.857
Non random ciphertext sequences 143
Random ciphertext sequences (percentage) 99,857 %
Non random ciphertext sequences (percentage) 0,143 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 128 (Advanced Encryption Standard) in CFB mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.814
Non random ciphertext sequences 186
Random ciphertext sequences (percentage) 99,814 %
Non random ciphertext sequences (percentage) 0,186 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 192 (Advanced Encryption Standard) in CFB mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.944
Non random ciphertext sequences 56
Random ciphertext sequences (percentage) 99,944 %
Non random ciphertext sequences (percentage) 0,056 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 256 (Advanced Encryption Standard) in CFB mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.857
Non random ciphertext sequences 143
Random ciphertext sequences (percentage) 99,857 %
Non random ciphertext sequences (percentage) 0,143 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 128 (Advanced Encryption Standard) in OFB mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.814
Non random ciphertext sequences 186
Random ciphertext sequences (percentage) 99,814 %
Non random ciphertext sequences (percentage) 0,186 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 192 (Advanced Encryption Standard) in OFB mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.944
Non random ciphertext sequences 56
Random ciphertext sequences (percentage) 99,944 %
Non random ciphertext sequences (percentage) 0,056 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: AES 256 (Advanced Encryption Standard) in OFB mode generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.967
Non random ciphertext sequences 33
Random ciphertext sequences (percentage) 99,967 %
Non random ciphertext sequences (percentage) 0,033 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: HC 128 cipher stream (eSTREAM candidate) generates randomized encrypted text checked with runs 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.
Runs confidence 99,9%
Runs p-value 0.001

Results:

Random ciphertext sequences 99.964
Non random ciphertext sequences 36
Random ciphertext sequences (percentage) 99,964 %
Non random ciphertext sequences (percentage) 0,036 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Runs test with data.e file
YES

Blog: HC 256 cipher stream (eSTREAM candidate) generates randomized encrypted text checked with runs 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 !!!