* imported implementation of MOUSTIQUE (test suite still does not support self-synchronizing stream ciphers, though).
Reference code for Moustique Design by Joan Daemen and Paris Kitsos This includes the following files: ecrypt-Moustique_cipher.c: contains reference code ecrypt-ssyn.h: header file of reference code main.c: contains program to generate testvalues Moustique_testvalues.txt: contains testvalues Moustique_testval_in.txt: contains input file to generate testvalues readme.txt: this file On the reference code Moustique has an internal state and this is kept in a structure ECRYPT_ctx specified in the file "ecrypt-ssyn.h" When a new instance of this structure is created, one shall perform an initialization by calling the function "void init_ctx(ECRYPT_ctx *s)". On the representation of testvalues Moustique operates on single bits. Still, we use a byte-oriented notation in these files. The bit that appears first is the bit with the lowest (time)-index. - keys have a length of 12 bytes, - IV values have a length of 13 bytes, - plaintext and ciphertext both have a length of 16 bytes. On the range of testvalues The file "testvalues.txt" contains: - 64 ciphertext values corresponding to 4 plaintext values encrypted using 4 different key values and using 4 different IV values. - 64 plaintext values corresponding to 4 ciphertext values encrypted using 4 different key values and using 4 different IV values. The contents of this file can be regenerated using the main program in "main.c" with as input the file "testval_in.txt". The key values: 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF 01 23 45 67 89 AB CD EF 01 23 45 67 FE DC BA 98 76 54 32 10 FE DC BA 98 The IV values 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF 01 23 45 67 89 AB CD EF 01 23 45 67 89 FE DC BA 98 76 54 32 10 FE DC BA 98 76 The plaintext values: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 23 45 67 89 AB CD EF 01 23 45 67 89 AB CD EF FE DC BA 98 76 54 32 10 FE DC BA 98 76 54 32 10 The ciphertext values: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 23 45 67 89 AB CD EF 01 23 45 67 89 AB CD EF FE DC BA 98 76 54 32 10 FE DC BA 98 76 54 32 10
|
eSTREAM Project Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |