Home
last modified time | relevance | path

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

12

/Linux-v4.19/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.h415 static inline int crypto_memneq(const void *a, const void *b, size_t size) in crypto_memneq() function
/Linux-v4.19/arch/s390/crypto/
Ddes_s390.c228 if (!(crypto_memneq(key, &key[DES_KEY_SIZE], DES_KEY_SIZE) && in des3_setkey()
229 crypto_memneq(&key[DES_KEY_SIZE], &key[DES_KEY_SIZE * 2], in des3_setkey()
238 !(crypto_memneq(key, &key[DES_KEY_SIZE], DES_KEY_SIZE) && in des3_setkey()
239 crypto_memneq(&key[DES_KEY_SIZE], &key[DES_KEY_SIZE * 2], in des3_setkey()
241 crypto_memneq(key, &key[DES_KEY_SIZE * 2], DES_KEY_SIZE))) { in des3_setkey()
/Linux-v4.19/net/bluetooth/
Dsmp.c529 return !crypto_memneq(bdaddr->b, hash, 3); in smp_irk_matches()
585 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in smp_generate_oob()
1001 if (crypto_memneq(smp->pcnf, confirm, sizeof(smp->pcnf))) { in smp_random()
1532 if (crypto_memneq(smp->pcnf, cfm, 16)) in sc_passkey_round()
1925 if (crypto_memneq(smp->local_pk, debug_pk, 64)) in sc_send_public_key()
2192 if (crypto_memneq(smp->pcnf, cfm, 16)) in smp_cmd_pairing_random()
2704 if (crypto_memneq(cfm.confirm_val, smp->pcnf, 16)) in smp_cmd_public_key()
2754 if (!crypto_memneq(debug_pk, smp->remote_pk, 64)) in smp_cmd_public_key()
2853 if (crypto_memneq(check->e, e, 16)) in smp_cmd_dhkey_check()
3572 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
[all …]
/Linux-v4.19/net/ipv4/
Dah4.c283 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input_done()
421 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah_input()
/Linux-v4.19/net/mac80211/
Dwpa.c165 if (crypto_memneq(mic, data + data_len, MICHAEL_MIC_LEN)) in ieee80211_rx_h_michael_mic_verify()
1058 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_decrypt()
1108 if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_cmac_256_decrypt()
1212 crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { in ieee80211_crypto_aes_gmac_decrypt()
/Linux-v4.19/net/ipv6/
Dah6.c488 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input_done()
636 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input()
/Linux-v4.19/arch/x86/crypto/
Dmorus640_glue.c200 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_morus640_glue_decrypt()
Dmorus1280_glue.c204 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_morus1280_glue_decrypt()
Daegis128-aesni-glue.c241 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128_aesni_decrypt()
Daegis256-aesni-glue.c241 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis256_aesni_decrypt()
Daegis128l-aesni-glue.c241 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; in crypto_aegis128l_aesni_decrypt()
/Linux-v4.19/security/integrity/evm/
Devm_main.c182 rc = crypto_memneq(xattr_data->digest, digest.digest, in evm_verify_hmac()
/Linux-v4.19/arch/arm64/crypto/
Daes-ce-ccm-glue.c352 if (crypto_memneq(mac, buf, authsize)) in ccm_decrypt()
/Linux-v4.19/crypto/
Daegis128.c407 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis128_decrypt()
Daegis256.c422 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis256_decrypt()
Dccm.c349 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done()
397 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
Daegis128l.c471 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis128l_decrypt()
Dmorus1280.c492 return crypto_memneq(tag_in.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_morus1280_decrypt()
Dmorus640.c489 return crypto_memneq(tag_in.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_morus640_decrypt()
Dauthenc.c253 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
Dauthencesn.c260 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail()
Drsa-pkcs1pad.c487 if (crypto_memneq(out_buf + pos, digest_info->data, digest_info->size)) in pkcs1pad_verify_complete()
/Linux-v4.19/drivers/crypto/nx/
Dnx-aes-ccm.c412 rc = crypto_memneq(csbcpb->cpb.aes_ccm.out_pat_or_mac, priv->oauth_tag, in ccm_nx_decrypt()
Dnx-aes-gcm.c423 rc = crypto_memneq(itag, otag, in gcm_aes_nx_crypt()

12