mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-26 01:31:08 +00:00
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
2810110bba
commit
2da9a54559
|
@ -1669,10 +1669,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…
Reference in a new issue