/linux/drivers/s390/crypto/ |
H A D | pkey_api.c | 112 memzero_explicit(&kgs, sizeof(kgs)); in pkey_ioctl_genseck() 138 memzero_explicit(&kcs, sizeof(kcs)); in pkey_ioctl_clr2seck() 164 memzero_explicit(&ksp, sizeof(ksp)); in pkey_ioctl_sec2protk() 185 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk() 190 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk() 211 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk() 272 memzero_explicit(&ksp, sizeof(ksp)); in pkey_ioctl_skey2pkey() 301 memzero_explicit(&kvk, sizeof(kvk)); in pkey_ioctl_verifykey() 322 memzero_explicit(&kgp, sizeof(kgp)); in pkey_ioctl_genprotk() 342 memzero_explicit(&kvp, sizeof(kvp)); in pkey_ioctl_verifyprotk() [all …]
|
/linux/lib/crypto/ |
H A D | chacha20poly1305.c | 50 memzero_explicit(k, sizeof(k)); in xchacha_init() 51 memzero_explicit(iv, sizeof(iv)); in xchacha_init() 86 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() 165 memzero_explicit(&b, sizeof(b)); in __chacha20poly1305_decrypt() 190 memzero_explicit(iv, sizeof(iv)); in chacha20poly1305_decrypt() 191 memzero_explicit(k, sizeof(k)); in chacha20poly1305_decrypt() 330 memzero_explicit(&b, sizeof(b)); in chacha20poly1305_crypt_sg_inplace()
|
H A D | aesgcm.c | 103 memzero_explicit(&ghash, sizeof(ghash)); in aesgcm_mac() 104 memzero_explicit(buf, sizeof(buf)); in aesgcm_mac() 129 memzero_explicit(buf, sizeof(buf)); in aesgcm_crypt() 189 memzero_explicit(tagbuf, sizeof(tagbuf)); in aesgcm_decrypt()
|
H A D | sha1.c | 153 memzero_explicit(workspace, sizeof(workspace)); in sha1_blocks_generic() 224 memzero_explicit(ctx, sizeof(*ctx)); in sha1_final() 263 memzero_explicit(&derived_key, sizeof(derived_key)); in __hmac_sha1_preparekey() 306 memzero_explicit(ctx, sizeof(*ctx)); in hmac_sha1_final()
|
H A D | sha256.c | 148 memzero_explicit(W, sizeof(W)); in sha256_blocks_generic() 233 memzero_explicit(ctx, sizeof(*ctx)); in sha224_final() 240 memzero_explicit(ctx, sizeof(*ctx)); in sha256_final() 296 memzero_explicit(&derived_key, sizeof(derived_key)); in __hmac_sha256_preparekey() 357 memzero_explicit(ctx, sizeof(*ctx)); in __hmac_sha256_final()
|
H A D | aescfb.c | 57 memzero_explicit(ks, sizeof(ks)); in aescfb_encrypt() 93 memzero_explicit(ks, sizeof(ks)); in aescfb_decrypt()
|
H A D | sha512.c | 221 memzero_explicit(ctx, sizeof(*ctx)); in sha384_final() 228 memzero_explicit(ctx, sizeof(*ctx)); in sha512_final() 282 memzero_explicit(&derived_key, sizeof(derived_key)); in __hmac_sha512_preparekey() 345 memzero_explicit(ctx, sizeof(*ctx)); in __hmac_sha512_final()
|
H A D | curve25519-fiat32.c | 855 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()
|
H A D | blake2s.c | 58 memzero_explicit(state, sizeof(*state)); in blake2s_final()
|
/linux/scripts/coccinelle/api/ |
H 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/ |
H 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/lib/crypto/mips/ |
H A D | sha1.h | 34 memzero_explicit(&hash_tail.word[0], sizeof(hash_tail.word[0])); in octeon_sha1_store_hash() 49 memzero_explicit(&hash_tail.dword, sizeof(hash_tail.dword)); in octeon_sha1_read_hash()
|
/linux/include/crypto/internal/ |
H 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/block/ |
H A D | blk-crypto.c | 512 memzero_explicit(raw_key, sizeof(raw_key)); in blk_crypto_ioctl_import_key() 513 memzero_explicit(lt_key, sizeof(lt_key)); in blk_crypto_ioctl_import_key() 547 memzero_explicit(lt_key, sizeof(lt_key)); in blk_crypto_ioctl_generate_key() 590 memzero_explicit(lt_key, sizeof(lt_key)); in blk_crypto_ioctl_prepare_key() 591 memzero_explicit(eph_key, sizeof(eph_key)); in blk_crypto_ioctl_prepare_key()
|
/linux/fs/bcachefs/ |
H A D | checksum.c | 106 memzero_explicit(key_words, sizeof(key_words)); in bch2_chacha20_init() 572 memzero_explicit(&sb_key, sizeof(sb_key)); in bch2_decrypt_sb_key() 573 memzero_explicit(&user_key, sizeof(user_key)); in bch2_decrypt_sb_key() 673 memzero_explicit(&user_key, sizeof(user_key)); 674 memzero_explicit(&key, sizeof(key)); 681 memzero_explicit(&c->chacha20_key, sizeof(c->chacha20_key)); in bch2_fs_encryption_exit()
|
/linux/drivers/char/ |
H 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() 486 memzero_explicit(block, sizeof(block)); in get_random_bytes_user() 708 memzero_explicit(next_key, sizeof(next_key)); in extract_entropy() 719 memzero_explicit(seed, sizeof(seed)); in extract_entropy() 720 memzero_explicit(&block, sizeof(block)); in extract_entropy() 1111 memzero_explicit(pool, sizeof(pool)); in mix_interrupt_randomness() 1449 memzero_explicit(block, sizeof(block)); in write_pool_user()
|
/linux/crypto/ |
H A D | hkdf.c | 113 memzero_explicit(tmp, sizeof(tmp)); in hkdf_expand() 125 memzero_explicit(okm, okmlen); /* so caller doesn't need to */ in hkdf_expand() 127 memzero_explicit(tmp, HASH_MAX_DIGESTSIZE); in hkdf_expand()
|
H A D | wp512.c | 1055 memzero_explicit(buffer, sizeof(buffer)); in wp512_finup() 1069 memzero_explicit(D, WP512_DIGEST_SIZE); in wp384_finup() 1081 memzero_explicit(D, WP512_DIGEST_SIZE); in wp256_finup()
|
/linux/fs/crypto/ |
H A D | keysetup.c | 182 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key() 262 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key() 413 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 600 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
|
H A D | hkdf.c | 88 memzero_explicit(prk, sizeof(prk)); in fscrypt_init_hkdf()
|
/linux/security/keys/encrypted-keys/ |
H A D | encrypted.c | 511 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/security/keys/trusted-keys/ |
H A D | trusted_dcp.c | 236 memzero_explicit(plain_blob_key, AES_KEYSIZE_128); in trusted_dcp_seal() 286 memzero_explicit(plain_blob_key, AES_KEYSIZE_128); in trusted_dcp_unseal()
|
/linux/fs/smb/client/ |
H A D | smbencrypt.c | 81 memzero_explicit(wpwd, sizeof(wpwd)); in E_md4hash()
|
/linux/net/mac80211/ |
H A D | wep.c | 119 memzero_explicit(ctx, sizeof(*ctx)); in ieee80211_wep_encrypt_data() 173 memzero_explicit(ctx, sizeof(*ctx)); in ieee80211_wep_decrypt_data()
|
/linux/arch/arm64/kvm/ |
H A D | trng.c | 47 memzero_explicit(bits, sizeof(bits)); in kvm_trng_do_rnd()
|