| /linux/lib/crypto/ |
| H A D | curve25519.c | 45 return crypto_memneq(mypublic, curve25519_null_point, in curve25519() 54 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()
|
| /linux/net/bluetooth/ |
| H A D | smp.c | 493 return !crypto_memneq(bdaddr->b, hash, 3); in smp_irk_matches() 546 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in smp_generate_oob() 970 if (crypto_memneq(smp->pcnf, confirm, sizeof(smp->pcnf))) { in smp_random() 1489 if (crypto_memneq(smp->pcnf, cfm, 16)) in sc_passkey_round() 1884 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in sc_send_public_key() 2154 if (crypto_memneq(smp->pcnf, cfm, 16)) in smp_cmd_pairing_random() 2718 !crypto_memneq(key, smp->local_pk, 64)) { in smp_cmd_public_key() 2731 if (crypto_memneq(cfm.confirm_val, smp->pcnf, 16)) in smp_cmd_public_key() 2781 if (!crypto_memneq(debug_pk, smp->remote_pk, 64)) in smp_cmd_public_key() 2880 if (crypto_memneq(check->e, e, 16)) in smp_cmd_dhkey_check() [all …]
|
| /linux/include/crypto/ |
| 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/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()
|
| H A D | noise.c | 424 if (unlikely(!crypto_memneq(precomputed, zero_point, NOISE_PUBLIC_KEY_LEN))) in mix_precomputed_dh()
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 231 if (crypto_memneq(testhmac, authdata, SHA1_DIGEST_SIZE)) 303 if (crypto_memneq(testhmac1, authdata1, SHA1_DIGEST_SIZE)) in TSS_checkhmac2() 310 if (crypto_memneq(testhmac2, authdata2, SHA1_DIGEST_SIZE))
|
| /linux/net/ipv4/ |
| H A D | ah4.c | 291 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input_done() 429 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input()
|
| /linux/net/ipv6/ |
| H A D | seg6_hmac.c | 216 if (crypto_memneq(hmac_output, tlv->hmac, SEG6_HMAC_FIELD_LEN)) in seg6_hmac_validate_skb()
|
| /linux/fs/crypto/ |
| H A D | keysetup_v1.c | 157 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key()
|
| /linux/arch/arm64/crypto/ |
| H A D | sm4-ce-gcm-glue.c | 213 if (crypto_memneq(authtag, ghash, authsize)) in gcm_decrypt()
|
| H A D | sm4-ce-ccm-glue.c | 245 if (crypto_memneq(authtag, mac, authsize)) in ccm_decrypt()
|
| /linux/crypto/ |
| H A D | ccm.c | 335 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 383 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
|
| H A D | authenc.c | 246 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 253 rc = crypto_memneq(xattr_data->data, digest.digest, in evm_verify_hmac()
|
| /linux/fs/nfsd/ |
| H A D | nfsfh.c | 190 return crypto_memneq(&fh->fh_raw[fh->fh_size - sizeof(hash)], in fh_verify_mac()
|
| /linux/drivers/nvme/target/ |
| H A D | fabrics-cmd-auth.c | 189 if (crypto_memneq(data->rval, response, data->hl)) { in nvmet_auth_reply()
|
| /linux/security/keys/encrypted-keys/ |
| H A D | encrypted.c | 514 ret = crypto_memneq(digest, epayload->format + epayload->datablob_len, in datablob_hmac_verify()
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-aes.c | 836 if (crypto_memneq(rctx->outbuf.buf, mac, rctx->authsize)) in tegra_gcm_do_verify() 1067 ret = crypto_memneq(rctx->authdata, result, rctx->authsize); in tegra_ccm_mac_result()
|
| /linux/fs/smb/server/ |
| H A D | auth.c | 172 if (crypto_memneq(ntlmv2->ntlmv2_hash, ntlmv2_rsp, in ksmbd_auth_ntlmv2()
|
| /linux/drivers/crypto/ |
| H A D | atmel-aes.c | 1516 err = crypto_memneq(itag, otag, authsize) ? -EBADMSG : 0; in atmel_aes_gcm_finalize() 1891 if (crypto_memneq(idigest, odigest, authsize)) in atmel_aes_authenc_final()
|
| /linux/drivers/nvme/host/ |
| H A D | auth.c | 365 if (crypto_memneq(chap->response, data->rval, data->hl)) { in nvme_auth_process_dhchap_success1()
|
| /linux/drivers/crypto/starfive/ |
| H A D | jh7110-aes.c | 316 if (crypto_memneq(cryp->tag_in, cryp->tag_out, cryp->authsize)) in starfive_aes_read_authtag()
|
| /linux/drivers/crypto/ti/ |
| H A D | dthev2-aes.c | 762 if (crypto_memneq(tag_in, tag_out, ctx->authsize)) in dthe_aead_dec_verify_tag()
|
| /linux/net/mptcp/ |
| H A D | subflow.c | 766 return !crypto_memneq(hmac, mp_opt->hmac, MPTCPOPT_HMAC_LEN); in subflow_ulp_fallback()
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-ops.c | 896 ret = crypto_memneq(wa->tag.address, wa->final.address, in ccp_run_aes_gcm_cmd()
|