Ignore:
Timestamp:
Dec 8, 2008, 7:35:28 AM (13 years ago)
Author:
Gerhard Junker
Message:

Whirlpool: Debug Output disabled (to increase performance)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Whirlpool/whirlpool.cs

    r122 r126  
    131131                        }
    132132
    133                         // process data in chunks of 8 bits (a more efficient approach would be to take whole-word chunks):
     133                        // process data in chunks of 8 bits
     134                        // (a more efficient approach would be to take whole-word chunks):
    134135                        while (sourceBits > 8)
    135136                        {
     
    844845                        ulong[] L     = new ulong[8];
    845846
    846 #if DEBUG
     847#if DEBUG2
    847848                        Debug.WriteLine("The 8x8 matrix Z' derived from the data-string is as follows.");
    848849                        for (int ibuffer = 0; ibuffer < WBLOCKBYTES; ibuffer += 8)
     
    881882                        state[7] = block[7] ^ (K[7] = hash[7]);
    882883
    883 #if DEBUG
     884#if DEBUG2
    884885                        Debug.WriteLine("The K_0 matrix (from the initialization value IV) and X'' matrix are as follows.\n");
    885886
     
    10721073                                state[6] = L[6];
    10731074                                state[7] = L[7];
    1074 #if DEBUG
     1075#if DEBUG2
    10751076                                Debug.WriteLine("i = " + r + "\n");
    10761077                                for (int i = 0; i < DIGESTBYTES / 8; i++)
     
    10941095                        hash[7] ^= state[7] ^ block[7];
    10951096
    1096 #if DEBUG
     1097#if DEBUG2
    10971098                        //printf("Intermediate hash value (after Miyaguchi-Preneel):\n");
    10981099                        Debug.WriteLine("The value of Y' output from the round-function is as follows.\n");
Note: See TracChangeset for help on using the changeset viewer.