mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
PPP, MPPE. fixed port mistake on SHA1 computation
This commit is contained in:
parent
3cf3b78192
commit
ea6f624b58
@ -99,7 +99,7 @@ static void get_new_key_from_sha(struct ppp_mppe_state * state)
|
||||
u8_t i;
|
||||
|
||||
sha1_starts(&sha1);
|
||||
sha1_update(&sha1, state->master_key, state->master_key);
|
||||
sha1_update(&sha1, state->master_key, state->keylen);
|
||||
|
||||
/* first padding, 256 bytes of 0x00 */
|
||||
memset(pad, 0x00, sizeof(pad));
|
||||
|
Loading…
x
Reference in New Issue
Block a user