Tuesday, 22 May 2012
  DiceLock improves symmetric ciphers like AES (Advanced Encryption Standard) and others.
  Providing maximum information security privacy with little time.
Approximate Entropy 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 Approximate Entropy 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.801 199 99,801 % 0,199 %
AES 192 - CBC mode 99.824 176 99,824 % 0,176 %
AES 256 - CBC mode 99.848 152 99,848 % 0,152 %
AES 128 - CFB mode 99.801 199 99,801 % 0,199 %
AES 192 - CFB mode 99.829 171 99,829 % 0,171 %
AES 256 - CFB mode 99.850 150 99,850 % 0,150 %
AES 128 - OFB mode 99.801 199 99,801 % 0,199 %
AES 192 - OFB mode 99.829 171 99,829 % 0,171 %
AES 256 - OFB mode 99.850 150 99,850 % 0,150 %
HC 128 99.673 327 99,673 % 0,327 %
HC 256 99.898 102 99,898 % 0,102 %

We can see that the worst number of non random encrypted sequences with approximate entropy random number test is 257 non random of 100.000 encrypted sequences tested. This is accomplished with HC 128 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 approximate entropy test with a probability greater than 99,743 %.

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

Results:

Random ciphertext sequences 99.801
Non random ciphertext sequences 199
Random ciphertext sequences (percentage) 99,801 %
Non random ciphertext sequences (percentage) 0,199 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.824
Non random ciphertext sequences 176
Random ciphertext sequences (percentage) 99,824 %
Non random ciphertext sequences (percentage) 0,176 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.848
Non random ciphertext sequences 152
Random ciphertext sequences (percentage) 99,848 %
Non random ciphertext sequences (percentage) 0,152 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.801
Non random ciphertext sequences 199
Random ciphertext sequences (percentage) 99,801 %
Non random ciphertext sequences (percentage) 0,199 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.829
Non random ciphertext sequences 171
Random ciphertext sequences (percentage) 99,829 %
Non random ciphertext sequences (percentage) 0,171 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.850
Non random ciphertext sequences 150
Random ciphertext sequences (percentage) 99,850 %
Non random ciphertext sequences (percentage) 0,150 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.801
Non random ciphertext sequences 199
Random ciphertext sequences (percentage) 99,801 %
Non random ciphertext sequences (percentage) 0,199 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.829
Non random ciphertext sequences 171
Random ciphertext sequences (percentage) 99,829 %
Non random ciphertext sequences (percentage) 0,171 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.850
Non random ciphertext sequences 150
Random ciphertext sequences (percentage) 99,850 %
Non random ciphertext sequences (percentage) 0,150 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.673
Non random ciphertext sequences 327
Random ciphertext sequences (percentage) 99,673 %
Non random ciphertext sequences (percentage) 0,327 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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

Results:

Random ciphertext sequences 99.898
Non random ciphertext sequences 102
Random ciphertext sequences (percentage) 99,898 %
Non random ciphertext sequences (percentage) 0,102 %
Correct deciphered texts
100.000
Incorrect deciphered texts 0
Checked Approximate Entropy test with data.e file
YES

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