mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 16:51:08 +00:00
Fix misleading comment in test function
Everything works at the byte level, not bit level. Flipping the lsb is just one convenient way to corrupt a byte, but don't really care about individual bits. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
864abbff4e
commit
b51f04466f
|
@ -3601,7 +3601,7 @@ void ssl_decrypt_non_etm_cbc( int cipher_type, int hash_id, int trunc_hmac,
|
|||
rec.buf = buf;
|
||||
memcpy( buf, buf_save, buflen );
|
||||
|
||||
/* Flip one bit of the data (could be plaintext, MAC or padding) */
|
||||
/* Corrupt one byte of the data (could be plaintext, MAC or padding) */
|
||||
rec.buf[i] ^= 0x01;
|
||||
|
||||
/* Encrypt */
|
||||
|
|
Loading…
Reference in a new issue