Home
last modified time | relevance | path

Searched refs:crypto_memneq (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v6.1/include/crypto/
Dcurve25519.h42 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()
Dxts.h22 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()
Dalgapi.h253 static inline int crypto_memneq(const void *a, const void *b, size_t size) in crypto_memneq() function
/Linux-v6.1/lib/crypto/
Dchacha20poly1305.c159 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-v6.1/net/bluetooth/
Dsmp.c512 return !crypto_memneq(bdaddr->b, hash, 3); in smp_irk_matches()
565 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in smp_generate_oob()
990 if (crypto_memneq(smp->pcnf, confirm, sizeof(smp->pcnf))) { in smp_random()
1515 if (crypto_memneq(smp->pcnf, cfm, 16)) in sc_passkey_round()
1908 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in sc_send_public_key()
2178 if (crypto_memneq(smp->pcnf, cfm, 16)) in smp_cmd_pairing_random()
2747 !crypto_memneq(key, smp->local_pk, 64)) { in smp_cmd_public_key()
2760 if (crypto_memneq(cfm.confirm_val, smp->pcnf, 16)) in smp_cmd_public_key()
2810 if (!crypto_memneq(debug_pk, smp->remote_pk, 64)) in smp_cmd_public_key()
2909 if (crypto_memneq(check->e, e, 16)) in smp_cmd_dhkey_check()
[all …]
/Linux-v6.1/crypto/
Dcurve25519-generic.c17 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
Dccm.c339 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()
Dauthenc.c246 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
Dauthencesn.c245 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail()
Daegis128-core.c431 if (unlikely(crypto_memneq(tag.bytes, zeros, authsize))) { in crypto_aegis128_decrypt_generic()
Drsa-pkcs1pad.c483 if (crypto_memneq(out_buf + pos, digest_info->data, in pkcs1pad_verify_complete()
/Linux-v6.1/drivers/net/wireguard/
Dcookie.c132 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()
Dnetlink.c550 if (!crypto_memneq(wg->static_identity.static_private, in wg_set_device()
/Linux-v6.1/arch/arm/crypto/
Dcurve25519-glue.c57 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
/Linux-v6.1/net/mac80211/
Dwpa.c163 if (crypto_memneq(mic, data + data_len, MICHAEL_MIC_LEN)) in ieee80211_rx_h_michael_mic_verify()
947 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_decrypt()
997 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_256_decrypt()
1104 crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_gmac_decrypt()
/Linux-v6.1/net/ipv4/
Dah4.c284 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-v6.1/fs/crypto/
Dkeysetup_v1.c205 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
/Linux-v6.1/arch/x86/crypto/
Daegis128-aesni-glue.c227 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128_aesni_decrypt()
/Linux-v6.1/net/ipv6/
Dah6.c473 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input_done()
622 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input()
/Linux-v6.1/arch/arm64/crypto/
Daes-ce-ccm-glue.c259 if (crypto_memneq(mac, buf, authsize)) in ccm_decrypt()
/Linux-v6.1/fs/ubifs/
Dauth.c465 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
Dubifs.h1608 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1623 return crypto_memneq(expected, got, c->hmac_desc_len); in ubifs_check_hmac()
/Linux-v6.1/security/integrity/evm/
Devm_main.c218 rc = crypto_memneq(xattr_data->data, digest.digest, in evm_verify_hmac()
/Linux-v6.1/drivers/crypto/nx/
Dnx-aes-ccm.c397 rc = crypto_memneq(csbcpb->cpb.aes_ccm.out_pat_or_mac, priv->oauth_tag, in ccm_nx_decrypt()
Dnx-aes-gcm.c407 rc = crypto_memneq(itag, otag, in gcm_aes_nx_crypt()

12