| /linux/drivers/s390/crypto/ |
| A D | pkey_api.c | 110 memzero_explicit(&kgs, sizeof(kgs)); in pkey_ioctl_genseck() 136 memzero_explicit(&kcs, sizeof(kcs)); in pkey_ioctl_clr2seck() 161 memzero_explicit(&ksp, sizeof(ksp)); in pkey_ioctl_sec2protk() 182 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk() 187 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk() 208 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk() 269 memzero_explicit(&ksp, sizeof(ksp)); in pkey_ioctl_skey2pkey() 298 memzero_explicit(&kvk, sizeof(kvk)); in pkey_ioctl_verifykey() 319 memzero_explicit(&kgp, sizeof(kgp)); in pkey_ioctl_genprotk() 361 memzero_explicit(&kvp, sizeof(kvp)); in pkey_ioctl_verifyprotk() [all …]
|
| /linux/lib/crypto/ |
| A D | chacha20poly1305.c | 52 memzero_explicit(k, sizeof(k)); in xchacha_init() 53 memzero_explicit(iv, sizeof(iv)); in xchacha_init() 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() 327 memzero_explicit(chacha_state, sizeof(chacha_state)); in chacha20poly1305_crypt_sg_inplace() [all …]
|
| A D | aesgcm.c | 104 memzero_explicit(&ghash, sizeof(ghash)); in aesgcm_mac() 105 memzero_explicit(buf, sizeof(buf)); in aesgcm_mac() 130 memzero_explicit(buf, sizeof(buf)); in aesgcm_crypt() 190 memzero_explicit(tagbuf, sizeof(tagbuf)); in aesgcm_decrypt()
|
| A D | aescfb.c | 58 memzero_explicit(ks, sizeof(ks)); in aescfb_encrypt() 94 memzero_explicit(ks, sizeof(ks)); in aescfb_decrypt()
|
| /linux/drivers/net/wireguard/ |
| A D | noise.c | 336 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() 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() 723 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_create_response() [all …]
|
| /linux/scripts/coccinelle/api/ |
| A D | kfree_sensitive.cocci | 4 /// 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/drivers/firmware/efi/libstub/ |
| A D | random.c | 148 memzero_explicit(seed->bits + offset, nv_seed_size); in efi_random_get_seed() 166 memzero_explicit(prev_seed->bits, prev_seed_size); in efi_random_get_seed() 172 memzero_explicit(seed, struct_size(seed, bits, seed_size)); in efi_random_get_seed()
|
| /linux/fs/crypto/ |
| A D | hkdf.c | 101 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()
|
| A D | keysetup.c | 177 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key() 232 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key() 375 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 550 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
|
| /linux/include/crypto/internal/ |
| A D | des.h | 38 memzero_explicit(&tmp, sizeof(tmp)); in crypto_des_verify_key() 73 memzero_explicit(K, DES3_EDE_KEY_SIZE); in des3_ede_verify_key()
|
| /linux/crypto/ |
| A D | kdf_sp800108.c | 53 memzero_explicit(tmpbuffer, h); in crypto_kdf108_ctr_generate() 68 memzero_explicit(dst_orig, dlen_orig); in crypto_kdf108_ctr_generate()
|
| A D | keywrap.c | 188 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()
|
| A D | jitterentropy-kcapi.c | 167 memzero_explicit(intermediary, sizeof(intermediary)); in jent_hash_time() 185 memzero_explicit(jent_block, sizeof(jent_block)); in jent_read_random_block()
|
| A D | sha1_generic.c | 39 memzero_explicit(temp, sizeof(temp)); in sha1_generic_block_fn()
|
| /linux/drivers/crypto/intel/keembay/ |
| A D | keembay-ocs-ecc.c | 271 memzero_explicit(sca, sizeof(sca)); in kmb_ecc_point_mult() 416 memzero_explicit(xxx, sizeof(xxx)); in kmb_ocs_ecc_is_pubkey_valid_partial() 417 memzero_explicit(yy, sizeof(yy)); in kmb_ocs_ecc_is_pubkey_valid_partial() 418 memzero_explicit(w, sizeof(w)); in kmb_ocs_ecc_is_pubkey_valid_partial() 530 memzero_explicit(&priv, sizeof(priv)); in kmb_ecc_gen_privkey() 566 memzero_explicit(¶ms, sizeof(params)); in kmb_ocs_ecdh_set_secret() 646 memzero_explicit(shared_secret, sizeof(shared_secret)); in kmb_ecc_do_shared_secret() 813 memzero_explicit(tctx->private_key, sizeof(*tctx->private_key)); in kmb_ocs_ecdh_exit_tfm()
|
| /linux/drivers/char/ |
| A D | random.c | 298 memzero_explicit(key, sizeof(key)); in crng_reseed() 330 memzero_explicit(first_block, sizeof(first_block)); in crng_fast_key_erasure() 414 memzero_explicit(tmp, sizeof(tmp)); in _get_random_bytes() 425 memzero_explicit(chacha_state, sizeof(chacha_state)); in _get_random_bytes() 485 memzero_explicit(block, sizeof(block)); in get_random_bytes_user() 487 memzero_explicit(chacha_state, sizeof(chacha_state)); in get_random_bytes_user() 707 memzero_explicit(next_key, sizeof(next_key)); in extract_entropy() 718 memzero_explicit(seed, sizeof(seed)); in extract_entropy() 719 memzero_explicit(&block, sizeof(block)); in extract_entropy() 1109 memzero_explicit(pool, sizeof(pool)); in mix_interrupt_randomness() [all …]
|
| /linux/drivers/crypto/xilinx/ |
| A D | zynqmp-sha.c | 78 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_sha_tfm_ctx)); in zynqmp_sha_exit_tfm() 138 memzero_explicit(ubuf, ZYNQMP_DMA_ALLOC_FIXED_SIZE); in zynqmp_sha_digest() 157 memzero_explicit(fbuf, SHA3_384_DIGEST_SIZE); in zynqmp_sha_digest()
|
| A D | zynqmp-aes-gcm.c | 166 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() 348 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_aead_tfm_ctx)); in zynqmp_aes_aead_exit()
|
| /linux/arch/s390/crypto/ |
| A D | prng.c | 178 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/arch/mips/cavium-octeon/crypto/ |
| A D | octeon-sha1.c | 43 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/fs/bcachefs/ |
| A D | checksum.c | 660 memzero_explicit(&sb_key, sizeof(sb_key)); in bch2_decrypt_sb_key() 661 memzero_explicit(&user_key, sizeof(user_key)); in bch2_decrypt_sb_key() 774 memzero_explicit(&user_key, sizeof(user_key)); in bch2_enable_encryption() 775 memzero_explicit(&key, sizeof(key)); in bch2_enable_encryption() 820 memzero_explicit(&key, sizeof(key)); in bch2_fs_encryption_init()
|
| /linux/fs/smb/client/ |
| A D | smbencrypt.c | 81 memzero_explicit(wpwd, sizeof(wpwd)); in E_md4hash()
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| A D | sun8i-ss-cipher.c | 152 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_setup_ivs() 177 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_setup_ivs() 311 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_cipher() 317 memzero_explicit(sf->biv, ivsize); in sun8i_ss_cipher()
|
| /linux/drivers/crypto/allwinner/sun8i-ce/ |
| A D | sun8i-ce-cipher.c | 288 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_prepare() 293 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_prepare() 336 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_unprepare() 341 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_unprepare()
|
| /linux/arch/arm64/kvm/ |
| A D | trng.c | 47 memzero_explicit(bits, sizeof(bits)); in kvm_trng_do_rnd()
|