Home
last modified time | relevance | path

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

12

/Linux-v5.4/include/crypto/
Dxts.h29 !crypto_memneq(key, key + (keylen / 2), keylen / 2)) { in xts_check_key()
52 !crypto_memneq(key, key + (keylen / 2), keylen / 2)) { in xts_verify_key()
Dalgapi.h405 static inline int crypto_memneq(const void *a, const void *b, size_t size) in crypto_memneq() function
/Linux-v5.4/net/bluetooth/
Dsmp.c520 return !crypto_memneq(bdaddr->b, hash, 3); in smp_irk_matches()
576 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in smp_generate_oob()
988 if (crypto_memneq(smp->pcnf, confirm, sizeof(smp->pcnf))) { in smp_random()
1511 if (crypto_memneq(smp->pcnf, cfm, 16)) in sc_passkey_round()
1904 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in sc_send_public_key()
2171 if (crypto_memneq(smp->pcnf, cfm, 16)) in smp_cmd_pairing_random()
2696 if (crypto_memneq(cfm.confirm_val, smp->pcnf, 16)) in smp_cmd_public_key()
2746 if (!crypto_memneq(debug_pk, smp->remote_pk, 64)) in smp_cmd_public_key()
2845 if (crypto_memneq(check->e, e, 16)) in smp_cmd_dhkey_check()
3549 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
[all …]
/Linux-v5.4/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-v5.4/net/mac80211/
Dwpa.c162 if (crypto_memneq(mic, data + data_len, MICHAEL_MIC_LEN)) in ieee80211_rx_h_michael_mic_verify()
1059 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_decrypt()
1109 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_256_decrypt()
1216 crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_gmac_decrypt()
/Linux-v5.4/arch/x86/crypto/
Daegis128-aesni-glue.c229 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128_aesni_decrypt()
Daesni-intel_glue.c825 return crypto_memneq(authTagMsg, authTag, auth_tag_len) ? in gcmaes_crypt_by_sg()
/Linux-v5.4/fs/crypto/
Dkeysetup_v1.c202 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
/Linux-v5.4/net/ipv6/
Dah6.c476 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input_done()
624 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input()
/Linux-v5.4/security/integrity/evm/
Devm_main.c179 rc = crypto_memneq(xattr_data->data, digest.digest, in evm_verify_hmac()
/Linux-v5.4/arch/arm64/crypto/
Daes-ce-ccm-glue.c342 if (crypto_memneq(mac, buf, authsize)) in ccm_decrypt()
Dghash-ce-glue.c671 if (crypto_memneq(tag, buf, authsize)) in gcm_decrypt()
/Linux-v5.4/fs/ubifs/
Dauth.c487 err = crypto_memneq(hmac, node + ofs_hmac, hmac_len); in __ubifs_node_verify_hmac()
Dubifs.h1576 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1591 return crypto_memneq(expected, got, c->hmac_desc_len); in ubifs_check_hmac()
/Linux-v5.4/crypto/
Daegis128-core.c455 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis128_decrypt()
Dccm.c347 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done()
395 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
Dauthenc.c256 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
Dauthencesn.c255 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail()
Drsa-pkcs1pad.c478 if (crypto_memneq(out_buf + pos, digest_info->data, in pkcs1pad_verify_complete()
Dchacha20poly1305.c105 if (crypto_memneq(tag, rctx->tag, sizeof(tag))) in poly_verify_tag()
/Linux-v5.4/drivers/crypto/nx/
Dnx-aes-ccm.c400 rc = crypto_memneq(csbcpb->cpb.aes_ccm.out_pat_or_mac, priv->oauth_tag, in ccm_nx_decrypt()
Dnx-aes-gcm.c411 rc = crypto_memneq(itag, otag, in gcm_aes_nx_crypt()
/Linux-v5.4/security/keys/encrypted-keys/
Dencrypted.c546 ret = crypto_memneq(digest, epayload->format + epayload->datablob_len, in datablob_hmac_verify()
/Linux-v5.4/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c934 if (crypto_memneq(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) { in gss_krb5_aes_decrypt()
/Linux-v5.4/drivers/crypto/
Datmel-aes.c1740 err = crypto_memneq(itag, otag, authsize) ? -EBADMSG : 0; in atmel_aes_gcm_finalize()
2113 if (crypto_memneq(idigest, odigest, authsize)) in atmel_aes_authenc_final()

12