fcrypt_b.c (59191) | fcrypt_b.c (109998) |
---|---|
1/* crypto/des/fcrypt_b.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 63 unchanged lines hidden (view full) --- 72#define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\ 73 (b)^=(t),\ 74 (a)^=((t)<<(n))) 75 76#undef HPERM_OP 77#define HPERM_OP(a,t,n,m) ((t)=((((a)<<(16-(n)))^(a))&(m)),\ 78 (a)=(a)^(t)^(t>>(16-(n))))\ 79 | 1/* crypto/des/fcrypt_b.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 63 unchanged lines hidden (view full) --- 72#define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\ 73 (b)^=(t),\ 74 (a)^=((t)<<(n))) 75 76#undef HPERM_OP 77#define HPERM_OP(a,t,n,m) ((t)=((((a)<<(16-(n)))^(a))&(m)),\ 78 (a)=(a)^(t)^(t>>(16-(n))))\ 79 |
80void fcrypt_body(DES_LONG *out, des_key_schedule ks, DES_LONG Eswap0, 81 DES_LONG Eswap1) | 80void fcrypt_body(DES_LONG *out, DES_key_schedule *ks, DES_LONG Eswap0, 81 DES_LONG Eswap1) |
82 { 83 register DES_LONG l,r,t,u; 84#ifdef DES_PTR | 82 { 83 register DES_LONG l,r,t,u; 84#ifdef DES_PTR |
85 register const unsigned char *des_SP=(const unsigned char *)des_SPtrans; | 85 register const unsigned char *des_SP=(const unsigned char *)DES_SPtrans; |
86#endif 87 register DES_LONG *s; 88 register int j; 89 register DES_LONG E0,E1; 90 91 l=0; 92 r=0; 93 --- 52 unchanged lines hidden --- | 86#endif 87 register DES_LONG *s; 88 register int j; 89 register DES_LONG E0,E1; 90 91 l=0; 92 r=0; 93 --- 52 unchanged lines hidden --- |