Fix typos in comments
Co-authored-by: Janos Follath <janos.follath@arm.com> Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
2b2f956f22
commit
94fd8dc066
1 changed files with 4 additions and 4 deletions
|
@ -1815,10 +1815,10 @@ static int ssl_encrypt_buf( mbedtls_ssl_context *ssl )
|
||||||
* Use only bit operations to avoid branches that could be used by some
|
* Use only bit operations to avoid branches that could be used by some
|
||||||
* compilers on some platforms to translate comparison operators.
|
* compilers on some platforms to translate comparison operators.
|
||||||
*/
|
*/
|
||||||
static void mbedtls_ssl_cf_memcpy_if_eq(unsigned char *dst,
|
static void mbedtls_ssl_cf_memcpy_if_eq( unsigned char *dst,
|
||||||
const unsigned char *src,
|
const unsigned char *src,
|
||||||
size_t len,
|
size_t len,
|
||||||
size_t c1, size_t c2 )
|
size_t c1, size_t c2 )
|
||||||
{
|
{
|
||||||
/* diff = 0 if c1 == c2, non-zero otherwise */
|
/* diff = 0 if c1 == c2, non-zero otherwise */
|
||||||
const size_t diff = c1 ^ c2;
|
const size_t diff = c1 ^ c2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue