/[mldonkey]/mldonkey/src/networks/fasttrack/fst_crypt_ml.c
ViewVC logotype

Diff of /mldonkey/src/networks/fasttrack/fst_crypt_ml.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mldonkey, Mon Nov 1 11:23:01 2004 UTC revision 1.7 by spiralvoice, Mon Aug 1 23:53:54 2005 UTC
# Line 77  value ml_cipher_packet_get(value s_v, va Line 77  value ml_cipher_packet_get(value s_v, va
77    
78    seed = htonl  (((unsigned int*)(s+pos))[0]);    seed = htonl  (((unsigned int*)(s+pos))[0]);
79    enc_type = htonl (((unsigned int*)(s+pos+4))[0]);    enc_type = htonl (((unsigned int*)(s+pos+4))[0]);
80    enc_type = fst_cipher_decode_enc_type (seed, enc_type);    enc_type = fst_cipher_mangle_enc_type (seed, enc_type);
81    
82    in_cipher->seed = seed;    in_cipher->seed = seed;
83    in_cipher->enc_type = enc_type;    in_cipher->enc_type = enc_type;
# Line 118  value ml_cipher_packet_set(value cipher_ Line 118  value ml_cipher_packet_set(value cipher_
118    
119    ((unsigned int*)(s+pos))[0] = htonl(cipher->seed);    ((unsigned int*)(s+pos))[0] = htonl(cipher->seed);
120    ((unsigned int*)(s+pos+4))[0] = htonl(    ((unsigned int*)(s+pos+4))[0] = htonl(
121      fst_cipher_encode_enc_type(cipher->seed, cipher->enc_type));      fst_cipher_mangle_enc_type(cipher->seed, cipher->enc_type));
122    
123    return Val_unit;    return Val_unit;
124  }  }
# Line 141  value ml_cipher_packet_set_xored(value c Line 141  value ml_cipher_packet_set_xored(value c
141    seed ^= xor_cipher->seed;    seed ^= xor_cipher->seed;
142    ((unsigned int*)(s+pos))[0] = htonl(seed);    ((unsigned int*)(s+pos))[0] = htonl(seed);
143    ((unsigned int*)(s+pos+4))[0] = htonl(    ((unsigned int*)(s+pos+4))[0] = htonl(
144      fst_cipher_encode_enc_type(cipher->seed, cipher->enc_type));      fst_cipher_mangle_enc_type(cipher->seed, cipher->enc_type));
145    
146    return Val_unit;    return Val_unit;
147  }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26