| /linux-6.15/include/crypto/ |
| H 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()
|
| H A D | xts.h | 34 !crypto_memneq(key, key + (keylen / 2), keylen / 2)) in xts_verify_key()
|
| H A D | utils.h | 68 static inline int crypto_memneq(const void *a, const void *b, size_t size) in crypto_memneq() function
|
| /linux-6.15/lib/crypto/ |
| H A D | chacha20poly1305.c | 158 ret = crypto_memneq(b.mac, src + dst_len, POLY1305_DIGEST_SIZE); in __chacha20poly1305_decrypt() 310 ret = !crypto_memneq(b.mac[0], in chacha20poly1305_crypt_sg_inplace() 323 !crypto_memneq(b.mac[0], b.mac[1], POLY1305_DIGEST_SIZE); in chacha20poly1305_crypt_sg_inplace()
|
| H A D | aesgcm.c | 189 if (crypto_memneq(authtag, tagbuf, ctx->authsize)) { in aesgcm_decrypt()
|
| /linux-6.15/net/bluetooth/ |
| H A D | smp.c | 1523 if (crypto_memneq(smp->pcnf, cfm, 16)) in sc_passkey_round() 2185 if (crypto_memneq(smp->pcnf, cfm, 16)) in smp_cmd_pairing_random() 2923 if (crypto_memneq(check->e, e, 16)) in smp_cmd_dhkey_check() 3486 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key() 3506 if (crypto_memneq(res, exp, 3)) in test_ah() 3536 if (crypto_memneq(res, exp, 16)) in test_c1() 3561 if (crypto_memneq(res, exp, 16)) in test_s1() 3593 if (crypto_memneq(res, exp, 16)) in test_f4() 3630 if (crypto_memneq(ltk, exp_ltk, 16)) in test_f5() 3663 if (crypto_memneq(res, exp, 16)) in test_f6() [all …]
|
| /linux-6.15/crypto/ |
| H A D | curve25519-generic.c | 17 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
|
| H A D | rsassa-pkcs1.c | 287 if (crypto_memneq(out_buf + pos, hash_prefix->data, hash_prefix->size)) in rsassa_pkcs1_verify()
|
| H 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()
|
| H A D | authenc.c | 242 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
|
| H A D | krb5enc.c | 258 if (crypto_memneq(msg_hash, calc_hash, authsize)) in krb5enc_verify_hash()
|
| /linux-6.15/drivers/net/wireguard/ |
| H 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()
|
| /linux-6.15/arch/arm/crypto/ |
| H A D | curve25519-glue.c | 57 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
|
| /linux-6.15/net/mac80211/ |
| H A D | wpa.c | 163 if (crypto_memneq(mic, data + data_len, MICHAEL_MIC_LEN)) in ieee80211_rx_h_michael_mic_verify() 961 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_decrypt() 1011 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_256_decrypt() 1122 crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_gmac_decrypt()
|
| /linux-6.15/net/ipv4/ |
| H A D | ah4.c | 281 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input_done() 419 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input()
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | aegis128-aesni-glue.c | 222 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128_aesni_decrypt()
|
| /linux-6.15/fs/crypto/ |
| H A D | keysetup_v1.c | 206 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
|
| /linux-6.15/arch/arm64/crypto/ |
| H A D | sm4-ce-gcm-glue.c | 231 if (crypto_memneq(authtag, ghash, authsize)) in gcm_decrypt()
|
| H A D | sm4-ce-ccm-glue.c | 262 if (crypto_memneq(authtag, mac, authsize)) in ccm_decrypt()
|
| H A D | aes-ce-ccm-glue.c | 300 if (crypto_memneq(mac, orig_iv, authsize)) in ccm_decrypt()
|
| /linux-6.15/net/ipv6/ |
| H A D | ah6.c | 470 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input_done() 619 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input()
|
| /linux-6.15/arch/powerpc/crypto/ |
| H A D | curve25519-ppc64le-core.c | 203 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
|
| H A D | aes-gcm-p10-glue.c | 306 if (crypto_memneq(otag, hash->Htable, auth_tag_len)) { in p10_aes_gcm_crypt()
|
| /linux-6.15/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_crypto.c | 700 if (crypto_memneq(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) { in gss_krb5_aes_decrypt() 936 if (crypto_memneq(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) { in krb5_etm_decrypt()
|
| /linux-6.15/fs/ubifs/ |
| H A D | auth.c | 464 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
|