/linux/include/crypto/ |
A D | curve25519.h | 42 return crypto_memneq(mypublic, curve25519_null_point, in curve25519() 50 if (unlikely(!crypto_memneq(secret, curve25519_null_point, in curve25519_generate_public() 58 return crypto_memneq(pub, curve25519_null_point, CURVE25519_KEY_SIZE); in curve25519_generate_public()
|
A D | xts.h | 22 if (fips_enabled && !crypto_memneq(key, key + (keylen / 2), keylen / 2)) in xts_check_key() 41 !crypto_memneq(key, key + (keylen / 2), keylen / 2)) in xts_verify_key()
|
A D | algapi.h | 244 static inline int crypto_memneq(const void *a, const void *b, size_t size) in crypto_memneq() function
|
/linux/lib/crypto/ |
A D | chacha20poly1305.c | 159 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt() 311 ret = !crypto_memneq(b.mac[0], in chacha20poly1305_crypt_sg_inplace() 324 !crypto_memneq(b.mac[0], b.mac[1], POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
|
/linux/net/bluetooth/ |
A D | smp.c | 1515 if (crypto_memneq(smp->pcnf, cfm, 16)) in sc_passkey_round() 2178 if (crypto_memneq(smp->pcnf, cfm, 16)) in smp_cmd_pairing_random() 2909 if (crypto_memneq(check->e, e, 16)) in smp_cmd_dhkey_check() 3480 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key() 3500 if (crypto_memneq(res, exp, 3)) in test_ah() 3530 if (crypto_memneq(res, exp, 16)) in test_c1() 3555 if (crypto_memneq(res, exp, 16)) in test_s1() 3587 if (crypto_memneq(res, exp, 16)) in test_f4() 3624 if (crypto_memneq(ltk, exp_ltk, 16)) in test_f5() 3657 if (crypto_memneq(res, exp, 16)) in test_f6() [all …]
|
/linux/drivers/net/wireguard/ |
A D | cookie.c | 132 if (crypto_memneq(computed_mac, macs->mac1, COOKIE_LEN)) in wg_cookie_validate_packet() 143 if (crypto_memneq(computed_mac, macs->mac2, COOKIE_LEN)) in wg_cookie_validate_packet()
|
A D | netlink.c | 551 if (!crypto_memneq(wg->static_identity.static_private, in wg_set_device()
|
/linux/crypto/ |
A D | curve25519-generic.c | 17 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
|
A D | ccm.c | 339 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 387 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
|
A D | authencesn.c | 245 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail()
|
A D | authenc.c | 246 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
|
A D | aegis128-core.c | 431 if (unlikely(crypto_memneq(tag.bytes, zeros, authsize))) { in crypto_aegis128_decrypt_generic()
|
A D | rsa-pkcs1pad.c | 479 if (crypto_memneq(out_buf + pos, digest_info->data, in pkcs1pad_verify_complete()
|
/linux/arch/arm/crypto/ |
A D | curve25519-glue.c | 57 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
|
/linux/net/mac80211/ |
A D | wpa.c | 163 if (crypto_memneq(mic, data + data_len, MICHAEL_MIC_LEN)) in ieee80211_rx_h_michael_mic_verify() 1070 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_decrypt() 1120 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_256_decrypt() 1227 crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_gmac_decrypt()
|
/linux/net/ipv4/ |
A D | ah4.c | 284 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input_done() 422 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input()
|
/linux/arch/x86/crypto/ |
A D | aegis128-aesni-glue.c | 227 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128_aesni_decrypt()
|
/linux/fs/crypto/ |
A D | keysetup_v1.c | 204 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
|
/linux/net/ipv6/ |
A D | ah6.c | 476 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input_done() 625 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input()
|
/linux/arch/arm64/crypto/ |
A D | aes-ce-ccm-glue.c | 259 if (crypto_memneq(mac, buf, authsize)) in ccm_decrypt()
|
/linux/fs/ubifs/ |
A D | auth.c | 465 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
|
A D | ubifs.h | 1579 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash() 1594 return crypto_memneq(expected, got, c->hmac_desc_len); in ubifs_check_hmac()
|
/linux/drivers/crypto/nx/ |
A D | nx-aes-ccm.c | 400 rc = crypto_memneq(csbcpb->cpb.aes_ccm.out_pat_or_mac, priv->oauth_tag, in ccm_nx_decrypt()
|
A D | nx-aes-gcm.c | 407 rc = crypto_memneq(itag, otag, in gcm_aes_nx_crypt()
|
/linux/security/integrity/evm/ |
A D | evm_main.c | 224 rc = crypto_memneq(xattr_data->data, digest.digest, in evm_verify_hmac()
|