Browse Source

code clean. salt is a duplicate of i

pull/171/head
Symeon Huang 10 years ago
parent
commit
e463ba47a8
1 changed files with 1 additions and 3 deletions
  1. 4
      src/encrypt.c

4
src/encrypt.c

@ -246,7 +246,6 @@ unsigned char *enc_md5(const unsigned char *d, size_t n, unsigned char *md)
void enc_table_init(const char *pass)
{
uint32_t i;
uint32_t salt;
uint64_t key = 0;
uint8_t *digest;
@ -263,8 +262,7 @@ void enc_table_init(const char *pass)
enc_table[i] = i;
}
for (i = 1; i < 1024; ++i) {
salt = i;
merge_sort(enc_table, 256, salt, key);
merge_sort(enc_table, 256, i, key);
}
for (i = 0; i < 256; ++i) {
// gen decrypt table from encrypt table

Loading…
Cancel
Save