1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

dir changes - things are broken at the moment

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@116 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2007-08-29 09:15:39 +00:00
parent a1bfbe6b07
commit f9ee197cff
40 changed files with 432 additions and 901 deletions

View File

@ -190,16 +190,16 @@ static int p8_decrypt(const char *uni_pass, int uni_pass_len,
}
/* get the key - no IV since we are using RC4 */
SHA1Init(&sha_ctx);
SHA1Update(&sha_ctx, d, sizeof(d));
SHA1Update(&sha_ctx, p, sizeof(p));
SHA1Final(&sha_ctx, Ai);
SHA1_Init(&sha_ctx);
SHA1_Update(&sha_ctx, d, sizeof(d));
SHA1_Update(&sha_ctx, p, sizeof(p));
SHA1_Final(Ai, &sha_ctx);
for (i = 1; i < iter; i++)
{
SHA1Init(&sha_ctx);
SHA1Update(&sha_ctx, Ai, SHA1_SIZE);
SHA1Final(&sha_ctx, Ai);
SHA1_Init(&sha_ctx);
SHA1_Update(&sha_ctx, Ai, SHA1_SIZE);
SHA1_Final(Ai, &sha_ctx);
}
/* do the decryption */