os/security/crypto/weakcrypto/test/tsymmetric/scripts/Rijndael test data/ecb_iv.readme
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 Description of the Intermediate Value Known Answer Test
     2 --------------------------------------------------------
     3 
     4 The test encrypts one plaintext with a variable number of rounds.
     5 In ECB encryption mode, the output PTi is the output after the 
     6 initial key addition and i rounds (a round ends with a key
     7 addition). 
     8 
     9 As explained in the documentation, in ECB decryption mode 
    10 there are several definitions of a `round' possible. In order
    11 to make visual inspection more intuitive, we output the
    12 intermediate values that correspond with the output of the
    13 encryption mode. 
    14 These values might actually not occur in a practical decryption,
    15 especially in an optimised implementation, where various operations
    16 of different rounds are interchanged.
    17 
    18 This explains also why the Java and the C code output different
    19 files for this test.