Re: advice sought on key/data histogram analysis of rijndael/128 and serpent
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


sci.crypt archive

Re: advice sought on key/data histogram analysis of rijndael/128 and serpent

From: lkcl <lkcl@lkcl.net>
Date: Mon Oct 17 2005 - 14:55:44 CEST

yep: i'm doing this, instead:

analyse_data(input, keybit, databit)
{
    test_data = 4 x 128 blocks

    for i = 1 to 4 (indexing test data)
    {
        key = copy(keybit)
       data = copy(input)

        output = aes_encrypt(key, data)
        key = copy(output)
        data = xor(data, xor(output, databit))

        test_data[i] = output /* chain the 4 encrypts together */
     }

     deviation = deviation_from_average_num_bits(test_data)
     if p_value(deviation) < 0.01
        return 1

  return 0
}

that's better.

will let you know what the output looks like...
Received on Mon Oct 17 20:48:38 2005