Home
last modified time | relevance | path

Searched refs:XMEMCMP (Results 1 – 25 of 62) sorted by relevance

123

/external/dropbear/libtomcrypt/src/encauth/ccm/
Dccm_test.c146 if (XMEMCMP(buf, tests[x].ct, tests[x].ptlen)) { in ccm_test()
149 if (XMEMCMP(tag, tests[x].tag, tests[x].taglen)) { in ccm_test()
164 if (XMEMCMP(buf2, tests[x].pt, tests[x].ptlen)) { in ccm_test()
167 if (XMEMCMP(tag2, tests[x].tag, tests[x].taglen)) { in ccm_test()
/external/dropbear/libtomcrypt/src/encauth/gcm/
Dgcm_test.c350 if (XMEMCMP(out[0], tests[x].C, tests[x].ptlen)) { in gcm_test()
361 if (XMEMCMP(T[0], tests[x].T, 16)) { in gcm_test()
381 if (XMEMCMP(out[1], tests[x].P, tests[x].ptlen)) { in gcm_test()
392 if (XMEMCMP(T[1], tests[x].T, 16)) { in gcm_test()
/external/dropbear/libtomcrypt/src/modes/lrw/
Dlrw_test.c91 if (XMEMCMP(tests[x].expected_tweak, lrw.pad, 16)) { in lrw_test()
102 if (XMEMCMP(buf[0], tests[x].C, 16)) { in lrw_test()
118 if (XMEMCMP(buf[1], tests[x].P, 16)) { in lrw_test()
/external/dropbear/libtomcrypt/src/encauth/ocb/
Docb_test.c185 if (XMEMCMP(outtag, tests[x].tag, len) || XMEMCMP(outct, tests[x].ct, tests[x].ptlen)) { in ocb_test()
208 if ((res != 1) || XMEMCMP(tests[x].pt, outct, tests[x].ptlen)) { in ocb_test()
Docb_done_decrypt.c60 if (taglen <= tagbuflen && XMEMCMP(tagbuf, tag, taglen) == 0) { in ocb_done_decrypt()
/external/dropbear/libtomcrypt/src/encauth/eax/
Deax_test.c234 … if (XMEMCMP(outct, tests[x].ciphertext, tests[x].msglen) || XMEMCMP(outtag, tests[x].tag, len)) { in eax_test()
259 if ((res != 1) || XMEMCMP(outct, tests[x].plaintext, tests[x].msglen)) { in eax_test()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_custom.h45 #ifndef XMEMCMP
49 #define XMEMCMP memcmp macro
/external/dropbear/libtomcrypt/src/ciphers/safer/
Dsafer.c399 if (XMEMCMP(buf[0], k64_ct, 8) != 0 || XMEMCMP(buf[1], k64_pt, 8) != 0) { in safer_k64_test()
429 if (XMEMCMP(buf[0], sk64_ct, 8) != 0 || XMEMCMP(buf[1], sk64_pt, 8) != 0) { in safer_sk64_test()
471 if (XMEMCMP(buf[0], sk128_ct, 8) != 0 || XMEMCMP(buf[1], sk128_pt, 8) != 0) { in safer_sk128_test()
/external/dropbear/libtomcrypt/src/ciphers/
Drc6.c288 if (XMEMCMP(tmp[0], tests[x].ct, 16) || XMEMCMP(tmp[1], tests[x].pt, 16)) { in rc6_test()
291 if (XMEMCMP(tmp[0], tests[x].ct, 16)) { in rc6_test()
298 if (XMEMCMP(tmp[1], tests[x].pt, 16)) { in rc6_test()
Dnoekeon.c245 if (XMEMCMP(tmp[0], tests[i].ct, 16) || XMEMCMP(tmp[1], tests[i].pt, 16)) { in noekeon_test()
248 if (XMEMCMP(tmp[0], tests[i].ct, 16)) { in noekeon_test()
Dkseed.c348 if (XMEMCMP(buf[0], tests[x].ct, 16) || XMEMCMP(buf[1], tests[x].pt, 16)) { in kseed_test()
Danubis.c1503 if (XMEMCMP(buf[0], tests[x].ct, 16) || XMEMCMP(buf[1], tests[x].pt, 16)) { in anubis_test()
1509 if (XMEMCMP(buf[0], tests[x].ct, 16)) { in anubis_test()
Dxtea.c167 if (XMEMCMP(tmp[0], ct, 8) != 0 || XMEMCMP(tmp[1], pt, 8) != 0) { in xtea_test()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_verify_hash.c143 …(XMEMCMP(digestinfo[0].data, hash_descriptor[hash_idx].OID, sizeof(unsigned long) * hash_descripto… in rsa_verify_hash_ex()
145 (XMEMCMP(siginfo[1].data, hash, hashlen) == 0)) { in rsa_verify_hash_ex()
/external/dropbear/libtomcrypt/src/misc/crypt/
Dcrypt_unregister_hash.c32 if (XMEMCMP(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor)) == 0) { in unregister_hash()
Dcrypt_unregister_prng.c32 if (XMEMCMP(&prng_descriptor[x], prng, sizeof(struct ltc_prng_descriptor)) != 0) { in unregister_prng()
Dcrypt_unregister_cipher.c32 if (XMEMCMP(&cipher_descriptor[x], cipher, sizeof(struct ltc_cipher_descriptor)) == 0) { in unregister_cipher()
Dcrypt_find_hash_oid.c24 …if (hash_descriptor[x].name != NULL && hash_descriptor[x].OIDlen == IDlen && !XMEMCMP(hash_descrip… in find_hash_oid()
Dcrypt_register_prng.c32 if (XMEMCMP(&prng_descriptor[x], prng, sizeof(struct ltc_prng_descriptor)) == 0) { in register_prng()
Dcrypt_register_hash.c32 if (XMEMCMP(&hash_descriptor[x], hash, sizeof(struct ltc_hash_descriptor)) == 0) { in register_hash()
/external/dropbear/libtomcrypt/src/mac/f9/
Df9_test.c64 if (taglen != 4 || XMEMCMP(T, tests[x].T, 4)) { in f9_test()
/external/dropbear/libtomcrypt/src/mac/xcbc/
Dxcbc_test.c114 if (taglen != 16 || XMEMCMP(T, tests[x].T, 16)) { in xcbc_test()
/external/dropbear/libtomcrypt/src/modes/f8/
Df8_test_mode.c64 if (XMEMCMP(buf, ct, sizeof(ct))) { in f8_test_mode()
/external/dropbear/libtomcrypt/src/mac/omac/
Domac_test.c93 if (XMEMCMP(out, tests[x].tag, 16) != 0) { in omac_test()
/external/dropbear/libtomcrypt/src/mac/pmac/
Dpmac_test.c141 if (XMEMCMP(outtag, tests[x].tag, len)) { in pmac_test()

123