commit | 61f412eb587dcb842c9388b93505bc078a58aac4 | [log] [tgz] |
---|---|---|
author | Teppo Järvelin <teppo.jarvelin@arm.com> | Thu Oct 03 12:25:22 2019 +0300 |
committer | Teppo Järvelin <teppo.jarvelin@arm.com> | Thu Oct 03 13:14:33 2019 +0300 |
tree | aeec04ea080257880d100f8e848b7d91bbe739e1 | |
parent | 51f65e4b86f59c7976168eeb61dbe16bbda88356 [diff] [blame] |
Changed every memcmp to SCA equivalent mbedtls_platform_memcmp This makes physical attacks more difficult. Selftest memcmp functions were not changed.
diff --git a/library/asn1write.c b/library/asn1write.c index c0b4622..6e5badb 100644 --- a/library/asn1write.c +++ b/library/asn1write.c
@@ -347,7 +347,7 @@ while( list != NULL ) { if( list->oid.len == len && - memcmp( list->oid.p, oid, len ) == 0 ) + mbedtls_platform_memcmp( list->oid.p, oid, len ) == 0 ) { break; }