December 2014
S M T W T F S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031  

Recent Posts

DiceLock-x 8.0.0.1 for Linux, CFB_Mode class (Cipher feedback CFB block cipher operation mode algorithm), 8-bit CFB mode, verified with TDEA, VarKey test set and DefaultCryptoRandomStream class (default virtual memory management)

DiceLock-x 8.0.0.1 for Linux is the cryptographic architecture that ensures that ciphertext it’s not just encrypted but also randomized.

DiceLock cipher architecture presents two main configurations:
Dicelock Digested, and
Dicelock Indexed.

DiceLock encryption architecture improves symmetric ciphers like block cipher as Advanced Encryption Standard, Camellia, Serpent, Twofish (128, 192 and 256 bit key lengths) with different block cipher operation modes (like CBC, CFB, OFB and XTS) and stream ciphers as HC 128, HC 256, Rabbit, Salsa 20/20, Sosemanuk and others.

DiceLock (both configurations) makes use of the following random number tests: Frequency Test, Block Frequency Test, Cumulative Sum Forward Test, Cumulative Sum Reverse Test, Runs Test, Longest Run Of Ones Test, Rank Test, Universal Test, Approximate Entropy Test, Serial Test and Discrete Fourier Transform Test.

Additionally DiceLock Digested configuration makes use currently of following hash digest algorithms: Sha 1, Sha 224, Sha 256, Sha 384, Sha 512, Ripemd 128, Ripemd 160, Ripemd 256, Ripemd 320, Md2, Md4 and Md5.

Previous version DiceLock-x 7.0.0.1 for Linux incorporated XTS-AES (XEX-based tweaked-codebook mode with ciphertext stealing XTS block cipher operation mode algorithm) for Advanced Encryption Algorithm (AES) for 128 and 256 bit symmetric keys.

New version DiceLock-x 8.0.0.1 for Linux has made significant improvements:
- added block encryption ciphers like Camellia, Serpent and Twofish with all accepted key lengths of 128, 192 and 256 bits,
- added stream ciphers like Rabbit, Salsa 20/20 with 128 and 256 bit key lengths, and general Sosemanuk, as well as Sosemanuk with 128 and 256 bit key lengths,
- added old hash algorithms like Message Digest 2, Message Digest 4 and Message Digest 5,
- modified DiceLockIndexed and DiceLockDigested classes to be used with encryption ciphers that does not make use of initialization vector (IV),
- created DiceLockIVDigested and DiceLockIVIndexed classes to be used with encryption ciphers that makes use of initialization vector (IV),
- extended DiceLockXTSDigested and DiceLockXTSIndexed classes to be use with newly added Camellia, Serpent and Twofish block ciphers and all three key lengths (128, 192 and 256 bit key lengths),
- added old encryption ciphers like DEA (Data Encryption Algorithm), TDEA (Triple Data Encryption Algorithm), and ARC4 (alleged RC4) for compatibillity reasons.

As the new version DiceLock-x 8.0.0.1 for Linux is developed, all individual components must be tested and verified, and in this article we verify Cipher feedback CFB class (computing Cipher feedback CFB block cipher algorithm).

At the bottom of the post you can find C++ source code being used to perform this test.


Verified DiceLock-x 8.0.0.1 for Linux

Verification components:

– Block cipher operation mode encryption algorithm: CFB_Mode class
– Block cipher encryption algorithm: TDEA class
– Test set : VarKey
– Bit stream memory management: DefaultCryptoRandomStream class (default virtual memory management)

Memory characteristic used in this test:

DefaultCryptoRandomStream class makes use of default virtual memory where the system can move pages of physical memory to and from a paging file on disk (manipulation of physical memory by the system is completely transparent to applications).

 

CFB_Mode class block cipher operation mode is executed as 8-bit CFB mode, that is, each plaintext segment and ciphertext segment consists of 8 bits.

Once computed we’ve got the following results:

VarKey, # 1

Input plaintext: 00
Key: 800101010101010180010101010101018001010101010101
IV: 0000000000000000
Expected ciphertext: 95
Computed ciphertext: 95 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 2

Input plaintext: 00
Key: 400101010101010140010101010101014001010101010101
IV: 0000000000000000
Expected ciphertext: 0e
Computed ciphertext: 0e OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 3

Input plaintext: 00
Key: 200101010101010120010101010101012001010101010101
IV: 0000000000000000
Expected ciphertext: 7a
Computed ciphertext: 7a OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 4

Input plaintext: 00
Key: 100101010101010110010101010101011001010101010101
IV: 0000000000000000
Expected ciphertext: d3
Computed ciphertext: d3 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 5

Input plaintext: 00
Key: 080101010101010108010101010101010801010101010101
IV: 0000000000000000
Expected ciphertext: 80
Computed ciphertext: 80 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 6

Input plaintext: 00
Key: 040101010101010104010101010101010401010101010101
IV: 0000000000000000
Expected ciphertext: c0
Computed ciphertext: c0 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 7

Input plaintext: 00
Key: 020101010101010102010101010101010201010101010101
IV: 0000000000000000
Expected ciphertext: 46
Computed ciphertext: 46 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 8

Input plaintext: 00
Key: 018001010101010101800101010101010180010101010101
IV: 0000000000000000
Expected ciphertext: 20
Computed ciphertext: 20 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 9

Input plaintext: 00
Key: 014001010101010101400101010101010140010101010101
IV: 0000000000000000
Expected ciphertext: df
Computed ciphertext: df OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 10

Input plaintext: 00
Key: 012001010101010101200101010101010120010101010101
IV: 0000000000000000
Expected ciphertext: 31
Computed ciphertext: 31 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 11

Input plaintext: 00
Key: 011001010101010101100101010101010110010101010101
IV: 0000000000000000
Expected ciphertext: df
Computed ciphertext: df OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 12

Input plaintext: 00
Key: 010801010101010101080101010101010108010101010101
IV: 0000000000000000
Expected ciphertext: 17
Computed ciphertext: 17 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 13

Input plaintext: 00
Key: 010401010101010101040101010101010104010101010101
IV: 0000000000000000
Expected ciphertext: 50
Computed ciphertext: 50 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 14

Input plaintext: 00
Key: 010201010101010101020101010101010102010101010101
IV: 0000000000000000
Expected ciphertext: a8
Computed ciphertext: a8 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 15

Input plaintext: 00
Key: 010180010101010101018001010101010101800101010101
IV: 0000000000000000
Expected ciphertext: a2
Computed ciphertext: a2 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 16

Input plaintext: 00
Key: 010140010101010101014001010101010101400101010101
IV: 0000000000000000
Expected ciphertext: ca
Computed ciphertext: ca OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 17

Input plaintext: 00
Key: 010120010101010101012001010101010101200101010101
IV: 0000000000000000
Expected ciphertext: 90
Computed ciphertext: 90 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 18

Input plaintext: 00
Key: 010110010101010101011001010101010101100101010101
IV: 0000000000000000
Expected ciphertext: ce
Computed ciphertext: ce OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 19

Input plaintext: 00
Key: 010108010101010101010801010101010101080101010101
IV: 0000000000000000
Expected ciphertext: 88
Computed ciphertext: 88 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 20

Input plaintext: 00
Key: 010104010101010101010401010101010101040101010101
IV: 0000000000000000
Expected ciphertext: 25
Computed ciphertext: 25 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 21

Input plaintext: 00
Key: 010102010101010101010201010101010101020101010101
IV: 0000000000000000
Expected ciphertext: c7
Computed ciphertext: c7 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 22

Input plaintext: 00
Key: 010101800101010101010180010101010101018001010101
IV: 0000000000000000
Expected ciphertext: 51
Computed ciphertext: 51 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 23

Input plaintext: 00
Key: 010101400101010101010140010101010101014001010101
IV: 0000000000000000
Expected ciphertext: c2
Computed ciphertext: c2 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 24

Input plaintext: 00
Key: 010101200101010101010120010101010101012001010101
IV: 0000000000000000
Expected ciphertext: ee
Computed ciphertext: ee OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 25

Input plaintext: 00
Key: 010101100101010101010110010101010101011001010101
IV: 0000000000000000
Expected ciphertext: a8
Computed ciphertext: a8 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 26

Input plaintext: 00
Key: 010101080101010101010108010101010101010801010101
IV: 0000000000000000
Expected ciphertext: 4f
Computed ciphertext: 4f OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 27

Input plaintext: 00
Key: 010101040101010101010104010101010101010401010101
IV: 0000000000000000
Expected ciphertext: 1a
Computed ciphertext: 1a OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 28

Input plaintext: 00
Key: 010101020101010101010102010101010101010201010101
IV: 0000000000000000
Expected ciphertext: b3
Computed ciphertext: b3 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 29

Input plaintext: 00
Key: 010101018001010101010101800101010101010180010101
IV: 0000000000000000
Expected ciphertext: 19
Computed ciphertext: 19 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 30

Input plaintext: 00
Key: 010101014001010101010101400101010101010140010101
IV: 0000000000000000
Expected ciphertext: 3c
Computed ciphertext: 3c OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 31

Input plaintext: 00
Key: 010101012001010101010101200101010101010120010101
IV: 0000000000000000
Expected ciphertext: b7
Computed ciphertext: b7 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 32

Input plaintext: 00
Key: 010101011001010101010101100101010101010110010101
IV: 0000000000000000
Expected ciphertext: 9d
Computed ciphertext: 9d OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 33

Input plaintext: 00
Key: 010101010801010101010101080101010101010108010101
IV: 0000000000000000
Expected ciphertext: 81
Computed ciphertext: 81 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 34

Input plaintext: 00
Key: 010101010401010101010101040101010101010104010101
IV: 0000000000000000
Expected ciphertext: 93
Computed ciphertext: 93 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 35

Input plaintext: 00
Key: 010101010201010101010101020101010101010102010101
IV: 0000000000000000
Expected ciphertext: 55
Computed ciphertext: 55 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 36

Input plaintext: 00
Key: 010101010180010101010101018001010101010101800101
IV: 0000000000000000
Expected ciphertext: 86
Computed ciphertext: 86 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 37

Input plaintext: 00
Key: 010101010140010101010101014001010101010101400101
IV: 0000000000000000
Expected ciphertext: 41
Computed ciphertext: 41 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 38

Input plaintext: 00
Key: 010101010120010101010101012001010101010101200101
IV: 0000000000000000
Expected ciphertext: 7a
Computed ciphertext: 7a OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 39

Input plaintext: 00
Key: 010101010110010101010101011001010101010101100101
IV: 0000000000000000
Expected ciphertext: 29
Computed ciphertext: 29 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 40

Input plaintext: 00
Key: 010101010108010101010101010801010101010101080101
IV: 0000000000000000
Expected ciphertext: 54
Computed ciphertext: 54 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 41

Input plaintext: 00
Key: 010101010104010101010101010401010101010101040101
IV: 0000000000000000
Expected ciphertext: ae
Computed ciphertext: ae OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 42

Input plaintext: 00
Key: 010101010102010101010101010201010101010101020101
IV: 0000000000000000
Expected ciphertext: 02
Computed ciphertext: 02 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 43

Input plaintext: 00
Key: 010101010101800101010101010180010101010101018001
IV: 0000000000000000
Expected ciphertext: d1
Computed ciphertext: d1 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 44

Input plaintext: 00
Key: 010101010101400101010101010140010101010101014001
IV: 0000000000000000
Expected ciphertext: 14
Computed ciphertext: 14 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 45

Input plaintext: 00
Key: 010101010101200101010101010120010101010101012001
IV: 0000000000000000
Expected ciphertext: 1d
Computed ciphertext: 1d OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 46

Input plaintext: 00
Key: 010101010101100101010101010110010101010101011001
IV: 0000000000000000
Expected ciphertext: e9
Computed ciphertext: e9 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 47

Input plaintext: 00
Key: 010101010101080101010101010108010101010101010801
IV: 0000000000000000
Expected ciphertext: da
Computed ciphertext: da OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 48

Input plaintext: 00
Key: 010101010101040101010101010104010101010101010401
IV: 0000000000000000
Expected ciphertext: b7
Computed ciphertext: b7 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 49

Input plaintext: 00
Key: 010101010101020101010101010102010101010101010201
IV: 0000000000000000
Expected ciphertext: ae
Computed ciphertext: ae OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 50

Input plaintext: 00
Key: 010101010101018001010101010101800101010101010180
IV: 0000000000000000
Expected ciphertext: 9c
Computed ciphertext: 9c OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 51

Input plaintext: 00
Key: 010101010101014001010101010101400101010101010140
IV: 0000000000000000
Expected ciphertext: d8
Computed ciphertext: d8 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 52

Input plaintext: 00
Key: 010101010101012001010101010101200101010101010120
IV: 0000000000000000
Expected ciphertext: a1
Computed ciphertext: a1 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 53

Input plaintext: 00
Key: 010101010101011001010101010101100101010101010110
IV: 0000000000000000
Expected ciphertext: 08
Computed ciphertext: 08 OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 54

Input plaintext: 00
Key: 010101010101010801010101010101080101010101010108
IV: 0000000000000000
Expected ciphertext: 5a
Computed ciphertext: 5a OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 55

Input plaintext: 00
Key: 010101010101010401010101010101040101010101010104
IV: 0000000000000000
Expected ciphertext: fc
Computed ciphertext: fc OK
DECIPHERING Deciphered text: 00 OK

 

VarKey, # 56

Input plaintext: 00
Key: 010101010101010201010101010101020101010101010102
IV: 0000000000000000
Expected ciphertext: 86
Computed ciphertext: 86 OK
DECIPHERING Deciphered text: 00 OK

 

DiceLock-x 8.0.0.1 for Linux C++ source code used in this test:

DiceLock-x 8.0.0.1 for Linux

DiceLockCipher.h
cryptoRandomStreams.h
baseCryptoRandomStream.h
baseCryptoRandomStream.cpp
defaultCryptoRandomStream.h
defaultCryptoRandomStream.cpp
baseSymmetricCipher.h
baseSymmetricCipher.cpp
baseSymmetricStreamer.h
baseSymmetricStreamer.cpp
blockCipherOperationModes.h
baseBlockCipherOperationMode_with_IV.h
baseBlockCipherOperationMode_with_IV.cpp
CFB_Mode.h
CFB_Mode.cpp
blockCiphers.h
baseBlockCipher.h
baseBlockCipher.cpp
DEA.h
DEA.cpp
TDEA.h
TDEA.cpp



So, DiceLock cipher test and analysis can go on …

DiceLock is a trademark or registered trademark of his owner where applies. DiceLock research is the research to implement Self-corrector randomisation-encryption and method, european patent EP1182777 granted 08/21/2003 and US patent US7508945 granted 03/24/2009.

Leave a Reply