switch-l4t-atf/lib/stdlib
Antonio Nino Diaz aa050a7bdb stdlib: Import timingsafe_bcmp() from FreeBSD
Some side-channel attacks involve an attacker inferring something from
the time taken for a memory compare operation to complete, for example
when comparing hashes during image authentication. To mitigate this,
timingsafe_bcmp() must be used for such operations instead of the
standard memcmp().

This function executes in constant time and so doesn't leak any timing
information to the caller.

Change-Id: I470a723dc3626a0ee6d5e3f7fd48d0a57b8aa5fd
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2017-01-24 14:42:12 +00:00
..
abort.c Rationalize console log output 2014-08-12 16:51:18 +01:00
assert.c Rationalize console log output 2014-08-12 16:51:18 +01:00
exit.c stdlib: add missing features to build PolarSSL 2015-01-28 18:26:59 +00:00
mem.c stdlib: Fix signedness issue in memcmp() 2016-12-13 11:16:31 +00:00
printf.c Update year in copyright text to 2014 2014-01-17 10:27:53 +00:00
putchar.c Update year in copyright text to 2014 2014-01-17 10:27:53 +00:00
puts.c Update year in copyright text to 2014 2014-01-17 10:27:53 +00:00
sscanf.c stdlib: add missing features to build PolarSSL 2015-01-28 18:26:59 +00:00
stdlib.mk stdlib: Import timingsafe_bcmp() from FreeBSD 2017-01-24 14:42:12 +00:00
strchr.c Update year in copyright text to 2014 2014-01-17 10:27:53 +00:00
strcmp.c stdlib: add missing features to build PolarSSL 2015-01-28 18:26:59 +00:00
strlen.c Update year in copyright text to 2014 2014-01-17 10:27:53 +00:00
strncmp.c Add IO abstraction framework 2014-02-17 18:51:43 +00:00
strnlen.c Add strnlen() to local C library 2017-01-24 10:28:41 +00:00
subr_prf.c Update year in copyright text to 2014 2014-01-17 10:27:53 +00:00
timingsafe_bcmp.c stdlib: Import timingsafe_bcmp() from FreeBSD 2017-01-24 14:42:12 +00:00