summaryrefslogtreecommitdiff
path: root/drivers/arm/ccn/ccn.c
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-01-16 13:25:38 +0000
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-01-24 14:42:12 +0000
commitaa050a7bdb943ca94ab914f2a9dc508e09a57431 (patch)
tree5a97cdc90d14dcfca121ba20ae5c97f92324231e /drivers/arm/ccn/ccn.c
parent34438669d41a648e4dcf6fd93e1a1f1f7eee0482 (diff)
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>
Diffstat (limited to 'drivers/arm/ccn/ccn.c')
0 files changed, 0 insertions, 0 deletions