Home
last modified time | relevance | path

Searched refs:SafeMemcmp (Results 1 – 6 of 6) sorted by relevance

/external/vboot_reference/tests/
Dutility_tests.c54 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/
Dutility.c12 int SafeMemcmp(const void *s1, const void *s2, size_t n) { in SafeMemcmp() function
Dvboot_common.c197 if (SafeMemcmp(block->magic, KEY_BLOCK_MAGIC, KEY_BLOCK_MAGIC_SIZE)) { in KeyBlockVerify()
246 rv = SafeMemcmp(header_checksum, GetSignatureDataC(sig), in KeyBlockVerify()
Dvboot_api_kernel.c767 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/
Drsa.c173 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/
Dutility.h82 int SafeMemcmp(const void *s1, const void *s2, size_t n);