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:
Manuel Pégourié-Gonnard 2020-07-21 10:40:25 +02:00
parent 864abbff4e
commit b51f04466f

View file

@ -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 */