Changeset 3999 for trunk/cscrypt/rc6.h


Ignore:
Timestamp:
11/26/10 13:20:01 (10 years ago)
Author:
schlocke
Message:

cccam: added rc6 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cscrypt/rc6.h

    r3996 r3999  
    2222 */
    2323   
    24 #define w 32    /* word size in bits */
    25 #define r 20    /* based on security estimates */
    26    
    27 #define P32 0xB7E15163  /* Magic constants for key setup */
    28 #define Q32 0x9E3779B9
    29    
    30 /* derived constants */
    31 #define bytes   (w / 8)                         /* bytes per word */
    32 #define c       ((b + bytes - 1) / bytes)       /* key in words, rounded up */
    33 #define R24     (2 * r + 4)
    34 #define lgw     5                               /* log2(w) -- wussed out */
    35    
    36 #define rc6keylen R24 - 1                      /* Key schedule */
     24#define rc6keylen 43
    3725
    3826typedef unsigned int RC6KEY[rc6keylen];
Note: See TracChangeset for help on using the changeset viewer.