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; |
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 |
} |
} |
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 |
} |
} |