Home
last modified time | relevance | path

Searched refs:memzero_explicit (Results 1 – 25 of 134) sorted by relevance

123456

/Linux-v6.1/lib/crypto/
Dchacha20poly1305.c52 memzero_explicit(k, sizeof(k)); in xchacha_init()
53 memzero_explicit(iv, sizeof(iv)); in xchacha_init()
86 memzero_explicit(chacha_state, CHACHA_STATE_WORDS * sizeof(u32)); in __chacha20poly1305_encrypt()
87 memzero_explicit(&b, sizeof(b)); in __chacha20poly1305_encrypt()
107 memzero_explicit(iv, sizeof(iv)); in chacha20poly1305_encrypt()
108 memzero_explicit(k, sizeof(k)); in chacha20poly1305_encrypt()
163 memzero_explicit(&b, sizeof(b)); in __chacha20poly1305_decrypt()
187 memzero_explicit(chacha_state, sizeof(chacha_state)); in chacha20poly1305_decrypt()
188 memzero_explicit(iv, sizeof(iv)); in chacha20poly1305_decrypt()
189 memzero_explicit(k, sizeof(k)); in chacha20poly1305_decrypt()
[all …]
Dcurve25519-fiat32.c855 memzero_explicit(&x1, sizeof(x1)); in curve25519_generic()
856 memzero_explicit(&x2, sizeof(x2)); in curve25519_generic()
857 memzero_explicit(&z2, sizeof(z2)); in curve25519_generic()
858 memzero_explicit(&x3, sizeof(x3)); in curve25519_generic()
859 memzero_explicit(&z3, sizeof(z3)); in curve25519_generic()
860 memzero_explicit(&x2l, sizeof(x2l)); in curve25519_generic()
861 memzero_explicit(&z2l, sizeof(z2l)); in curve25519_generic()
862 memzero_explicit(&x3l, sizeof(x3l)); in curve25519_generic()
863 memzero_explicit(&e, sizeof(e)); in curve25519_generic()
Dblake2s.c57 memzero_explicit(state, sizeof(*state)); in blake2s_final()
Dsha256.c146 memzero_explicit(W, sizeof(W)); in sha256_update()
184 memzero_explicit(sctx, sizeof(*sctx)); in __sha256_final()
/Linux-v6.1/drivers/net/wireguard/
Dnoise.c336 memzero_explicit(x_key, BLAKE2S_BLOCK_SIZE); in hmac()
337 memzero_explicit(i_hash, BLAKE2S_HASH_SIZE); in hmac()
388 memzero_explicit(secret, BLAKE2S_HASH_SIZE); in kdf()
389 memzero_explicit(output, BLAKE2S_HASH_SIZE + 1); in kdf()
415 memzero_explicit(dh_calculation, NOISE_PUBLIC_KEY_LEN); in mix_dh()
451 memzero_explicit(temp_hash, NOISE_HASH_LEN); in mix_psk()
579 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_create_initiation()
658 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_consume_initiation()
659 memzero_explicit(hash, NOISE_HASH_LEN); in wg_noise_handshake_consume_initiation()
660 memzero_explicit(chaining_key, NOISE_HASH_LEN); in wg_noise_handshake_consume_initiation()
[all …]
/Linux-v6.1/scripts/coccinelle/api/
Dkfree_sensitive.cocci4 /// memzero_explicit followed by kfree.
32 \(memset@ok\|memzero_explicit@ok\)(...);
44 * memzero_explicit@m((T)E, ...);
57 - memzero_explicit@m((T)E, size);
/Linux-v6.1/fs/crypto/
Dhkdf.c101 memzero_explicit(prk, sizeof(prk)); in fscrypt_init_hkdf()
162 memzero_explicit(tmp, sizeof(tmp)); in fscrypt_hkdf_expand()
174 memzero_explicit(okm, okmlen); /* so caller doesn't need to */ in fscrypt_hkdf_expand()
Dkeysetup.c162 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key()
216 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key()
359 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key()
514 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
/Linux-v6.1/include/crypto/internal/
Ddes.h38 memzero_explicit(&tmp, sizeof(tmp)); in crypto_des_verify_key()
73 memzero_explicit(K, DES3_EDE_KEY_SIZE); in des3_ede_verify_key()
/Linux-v6.1/drivers/char/
Drandom.c228 memzero_explicit(key, sizeof(key)); in crng_reseed()
260 memzero_explicit(first_block, sizeof(first_block)); in crng_fast_key_erasure()
371 memzero_explicit(tmp, sizeof(tmp)); in _get_random_bytes()
382 memzero_explicit(chacha_state, sizeof(chacha_state)); in _get_random_bytes()
442 memzero_explicit(block, sizeof(block)); in get_random_bytes_user()
444 memzero_explicit(chacha_state, sizeof(chacha_state)); in get_random_bytes_user()
629 memzero_explicit(next_key, sizeof(next_key)); in extract_entropy()
640 memzero_explicit(seed, sizeof(seed)); in extract_entropy()
641 memzero_explicit(&block, sizeof(block)); in extract_entropy()
1027 memzero_explicit(pool, sizeof(pool)); in mix_interrupt_randomness()
[all …]
/Linux-v6.1/crypto/
Dkdf_sp800108.c53 memzero_explicit(tmpbuffer, h); in crypto_kdf108_ctr_generate()
68 memzero_explicit(dst_orig, dlen_orig); in crypto_kdf108_ctr_generate()
Dkeywrap.c188 memzero_explicit(&block, sizeof(struct crypto_kw_block)); in crypto_kw_decrypt()
259 memzero_explicit(&block, sizeof(struct crypto_kw_block)); in crypto_kw_encrypt()
Dsha1_generic.c39 memzero_explicit(temp, sizeof(temp)); in sha1_generic_block_fn()
/Linux-v6.1/drivers/crypto/keembay/
Dkeembay-ocs-ecc.c276 memzero_explicit(sca, sizeof(sca)); in kmb_ecc_point_mult()
421 memzero_explicit(xxx, sizeof(xxx)); in kmb_ocs_ecc_is_pubkey_valid_partial()
422 memzero_explicit(yy, sizeof(yy)); in kmb_ocs_ecc_is_pubkey_valid_partial()
423 memzero_explicit(w, sizeof(w)); in kmb_ocs_ecc_is_pubkey_valid_partial()
535 memzero_explicit(&priv, sizeof(priv)); in kmb_ecc_gen_privkey()
571 memzero_explicit(&params, sizeof(params)); in kmb_ocs_ecdh_set_secret()
651 memzero_explicit(shared_secret, sizeof(shared_secret)); in kmb_ecc_do_shared_secret()
822 memzero_explicit(tctx->private_key, sizeof(*tctx->private_key)); in kmb_ocs_ecdh_exit_tfm()
/Linux-v6.1/drivers/crypto/xilinx/
Dzynqmp-sha.c79 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_sha_tfm_ctx)); in zynqmp_sha_exit_tfm()
139 memzero_explicit(ubuf, ZYNQMP_DMA_ALLOC_FIXED_SIZE); in zynqmp_sha_digest()
158 memzero_explicit(fbuf, SHA3_384_DIGEST_SIZE); in zynqmp_sha_digest()
Dzynqmp-aes-gcm.c166 memzero_explicit(kbuf, dma_size); in zynqmp_aes_aead_cipher()
170 memzero_explicit(hwreq, sizeof(struct zynqmp_aead_hw_req)); in zynqmp_aes_aead_cipher()
349 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_aead_tfm_ctx)); in zynqmp_aes_aead_exit()
/Linux-v6.1/arch/s390/crypto/
Dprng.c178 memzero_explicit(pblock, sizeof(pblock)); in generate_entropy()
179 memzero_explicit(pg, PAGE_SIZE); in generate_entropy()
423 memzero_explicit(seed, sizeof(seed)); in prng_sha512_instantiate()
470 memzero_explicit(seed, sizeof(seed)); in prng_sha512_reseed()
647 memzero_explicit(p, n); in prng_sha512_read()
/Linux-v6.1/arch/mips/cavium-octeon/crypto/
Docteon-sha1.c43 memzero_explicit(&hash_tail.word[0], sizeof(hash_tail.word[0])); in octeon_sha1_store_hash()
58 memzero_explicit(&hash_tail.dword, sizeof(hash_tail.dword)); in octeon_sha1_read_hash()
/Linux-v6.1/fs/cifs/
Dsmbencrypt.c88 memzero_explicit(wpwd, sizeof(wpwd)); in E_md4hash()
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c283 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_prepare()
288 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_prepare()
347 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_unprepare()
352 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_unprepare()
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c147 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_setup_ivs()
172 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_setup_ivs()
306 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_cipher()
312 memzero_explicit(sf->biv, ivsize); in sun8i_ss_cipher()
/Linux-v6.1/security/keys/encrypted-keys/
Dencrypted.c511 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_append()
550 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_verify()
734 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_key_decrypt()
979 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_read()
988 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_read()
/Linux-v6.1/arch/arm64/kvm/
Dtrng.c47 memzero_explicit(bits, sizeof(bits)); in kvm_trng_do_rnd()
/Linux-v6.1/net/mac80211/
Dwep.c118 memzero_explicit(ctx, sizeof(*ctx)); in ieee80211_wep_encrypt_data()
172 memzero_explicit(ctx, sizeof(*ctx)); in ieee80211_wep_decrypt_data()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dcrypto.c56 memzero_explicit(in, sizeof(in)); in mlx5_create_encryption_key()

123456