Searched refs:SafeMemcmp (Results 1 – 6 of 6) sorted by relevance
/external/vboot_reference/tests/ |
D | utility_tests.c | 54 TEST_EQ(0, SafeMemcmp("APPLE", "TIGER", 0), "SafeMemcmp() size=0"); in SafeMemcmpTest() 57 TEST_EQ(0, SafeMemcmp("clonebob", "clonebob", 8), "SafeMemcmp() equal"); in SafeMemcmpTest() 59 TEST_EQ(0, SafeMemcmp("clonebob", "clonedan", 5), "SafeMemcmp() equal2"); in SafeMemcmpTest() 61 TEST_EQ(1, SafeMemcmp("APPLE", "TIGER", 5), "SafeMemcmp() unequal"); in SafeMemcmpTest() 62 TEST_EQ(1, SafeMemcmp("APPLE", "APPLe", 5), "SafeMemcmp() unequal 2"); in SafeMemcmpTest()
|
/external/vboot_reference/firmware/lib/ |
D | utility.c | 12 int SafeMemcmp(const void *s1, const void *s2, size_t n) { in SafeMemcmp() function
|
D | vboot_common.c | 197 if (SafeMemcmp(block->magic, KEY_BLOCK_MAGIC, KEY_BLOCK_MAGIC_SIZE)) { in KeyBlockVerify() 246 rv = SafeMemcmp(header_checksum, GetSignatureDataC(sig), in KeyBlockVerify()
|
D | vboot_api_kernel.c | 767 need_update = SafeMemcmp(ec_hash, rw_hash, SHA256_DIGEST_SIZE); in VbEcSoftwareSync() 804 need_update = SafeMemcmp(ec_hash, expected_hash, in VbEcSoftwareSync() 807 SafeMemcmp(rw_hash, expected_hash, SHA256_DIGEST_SIZE)) { in VbEcSoftwareSync()
|
/external/vboot_reference/firmware/lib/cryptolib/ |
D | rsa.c | 173 if (SafeMemcmp(buf, padding, padding_len)) { in RSAVerify() 179 if (SafeMemcmp(buf + padding_len, hash, sig_len - padding_len)) { in RSAVerify()
|
/external/vboot_reference/firmware/lib/include/ |
D | utility.h | 82 int SafeMemcmp(const void *s1, const void *s2, size_t n);
|