crypto/weakcrypto/test/tsymmetric/scripts/Rijndael test data/ecb_iv.readme
author hgs
Thu, 24 Jun 2010 15:39:07 +0530
changeset 72 de46a57f75fb
permissions -rw-r--r--
201023_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
72
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     1
Description of the Intermediate Value Known Answer Test
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     2
--------------------------------------------------------
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     3
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     4
The test encrypts one plaintext with a variable number of rounds.
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     5
In ECB encryption mode, the output PTi is the output after the 
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     6
initial key addition and i rounds (a round ends with a key
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     7
addition). 
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     8
de46a57f75fb 201023_02
hgs
parents:
diff changeset
     9
As explained in the documentation, in ECB decryption mode 
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    10
there are several definitions of a `round' possible. In order
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    11
to make visual inspection more intuitive, we output the
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    12
intermediate values that correspond with the output of the
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    13
encryption mode. 
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    14
These values might actually not occur in a practical decryption,
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    15
especially in an optimised implementation, where various operations
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    16
of different rounds are interchanged.
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    17
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    18
This explains also why the Java and the C code output different
de46a57f75fb 201023_02
hgs
parents:
diff changeset
    19
files for this test.