303
303
mysql_sha1_result(&sha1_context, hash_stage2);
304
304
/* create crypt string as sha1(message, hash_stage2) */;
305
305
mysql_sha1_reset(&sha1_context);
307
307
mysql_sha1_input(&sha1_context, hash_stage2, SHA1_HASH_SIZE);
308
308
/* xor allows 'from' and 'to' overlap: lets take advantage of it */
310
310
my_crypt(to, (const uchar *) to, hash_stage1, SCRAMBLE_LENGTH);