| OLD | NEW |
| 1 /* crypto/des/fcrypt_b.c */ | 1 /* crypto/des/fcrypt_b.c */ |
| 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
| 6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
| 7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
| 8 * | 8 * |
| 9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
| 10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 s=(DES_LONG *)ks; | 94 s=(DES_LONG *)ks; |
| 95 E0=Eswap0; | 95 E0=Eswap0; |
| 96 E1=Eswap1; | 96 E1=Eswap1; |
| 97 | 97 |
| 98 for (j=0; j<25; j++) | 98 for (j=0; j<25; j++) |
| 99 { | 99 { |
| 100 #ifndef DES_UNROLL | 100 #ifndef DES_UNROLL |
| 101 register int i; | 101 register int i; |
| 102 | 102 |
| 103 » » for (i=0; i<32; i+=8) | 103 » » for (i=0; i<32; i+=4) |
| 104 { | 104 { |
| 105 D_ENCRYPT(l,r,i+0); /* 1 */ | 105 D_ENCRYPT(l,r,i+0); /* 1 */ |
| 106 D_ENCRYPT(r,l,i+2); /* 2 */ | 106 D_ENCRYPT(r,l,i+2); /* 2 */ |
| 107 D_ENCRYPT(l,r,i+4); /* 1 */ | |
| 108 D_ENCRYPT(r,l,i+6); /* 2 */ | |
| 109 } | 107 } |
| 110 #else | 108 #else |
| 111 D_ENCRYPT(l,r, 0); /* 1 */ | 109 D_ENCRYPT(l,r, 0); /* 1 */ |
| 112 D_ENCRYPT(r,l, 2); /* 2 */ | 110 D_ENCRYPT(r,l, 2); /* 2 */ |
| 113 D_ENCRYPT(l,r, 4); /* 3 */ | 111 D_ENCRYPT(l,r, 4); /* 3 */ |
| 114 D_ENCRYPT(r,l, 6); /* 4 */ | 112 D_ENCRYPT(r,l, 6); /* 4 */ |
| 115 D_ENCRYPT(l,r, 8); /* 5 */ | 113 D_ENCRYPT(l,r, 8); /* 5 */ |
| 116 D_ENCRYPT(r,l,10); /* 6 */ | 114 D_ENCRYPT(r,l,10); /* 6 */ |
| 117 D_ENCRYPT(l,r,12); /* 7 */ | 115 D_ENCRYPT(l,r,12); /* 7 */ |
| 118 D_ENCRYPT(r,l,14); /* 8 */ | 116 D_ENCRYPT(r,l,14); /* 8 */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 136 PERM_OP(l,r,t, 1,0x55555555L); | 134 PERM_OP(l,r,t, 1,0x55555555L); |
| 137 PERM_OP(r,l,t, 8,0x00ff00ffL); | 135 PERM_OP(r,l,t, 8,0x00ff00ffL); |
| 138 PERM_OP(l,r,t, 2,0x33333333L); | 136 PERM_OP(l,r,t, 2,0x33333333L); |
| 139 PERM_OP(r,l,t,16,0x0000ffffL); | 137 PERM_OP(r,l,t,16,0x0000ffffL); |
| 140 PERM_OP(l,r,t, 4,0x0f0f0f0fL); | 138 PERM_OP(l,r,t, 4,0x0f0f0f0fL); |
| 141 | 139 |
| 142 out[0]=r; | 140 out[0]=r; |
| 143 out[1]=l; | 141 out[1]=l; |
| 144 } | 142 } |
| 145 | 143 |
| OLD | NEW |