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:
14
ssl/p12.c
14
ssl/p12.c
@ -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 */
|
||||
|
Reference in New Issue
Block a user