switch-l4t-atf/drivers
Antonio Nino Diaz b621fb503c tbbr: Use constant-time bcmp() to compare hashes
To avoid timing side-channel attacks, it is needed to use a constant
time memory comparison function when comparing hashes. The affected
code only cheks for equality so it isn't needed to use any variant of
memcmp(), bcmp() is enough.

Also, timingsafe_bcmp() is as fast as memcmp() when the two compared
regions are equal, so this change incurrs no performance hit in said
case. In case they are unequal, the boot sequence wouldn't continue as
normal, so performance is not an issue.

Change-Id: I1c7c70ddfa4438e6031c8814411fef79fd3bb4df
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2017-01-24 14:42:13 +00:00
..
arm Use #ifdef for IMAGE_BL* instead of #if 2017-01-24 01:01:21 +09:00
auth tbbr: Use constant-time bcmp() to compare hashes 2017-01-24 14:42:13 +00:00
cadence/uart Move console drivers to AArch64 folder 2016-08-09 17:33:57 +01:00
console AArch32: Add console driver 2016-08-10 12:35:46 +01:00
delay_timer Implement generic delay timer 2016-05-20 15:29:30 +01:00
emmc emmc: support CMD23 2016-08-12 11:41:00 +08:00
gpio gpio: support gpio set/get pull status 2016-05-27 09:39:56 +08:00
io io: block: fix unaligned buffer 2016-08-04 09:53:29 +08:00
partition partition: check GPT partition table 2016-09-20 13:19:32 +08:00
synopsys/emmc drivers: add designware emmc driver 2017-01-23 22:08:45 +08:00
ti/uart uart: 16550: Fix getc 2017-01-10 09:36:44 -06:00