mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Fixed variable length macs used by gnutls.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@205 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -698,7 +698,7 @@ static int verify_digest(SSL *ssl, int mode, const uint8_t *buf, int read_len)
|
||||
hmac_offset = read_len-last_blk_size-ssl->cipher_info->digest_size-1;
|
||||
|
||||
/* guard against a timing attack - make sure we do the digest */
|
||||
if (hmac_offset < 0 || last_blk_size > ssl->cipher_info->padding_size)
|
||||
if (hmac_offset < 0)
|
||||
{
|
||||
hmac_offset = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user