/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 | blake2s.c | 35 memzero_explicit(state, sizeof(*state)); in blake2s_final() 71 memzero_explicit(x_key, BLAKE2S_BLOCK_SIZE); in blake2s256_hmac() 72 memzero_explicit(i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
|
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()
|
A D | sha256.c | 146 memzero_explicit(W, sizeof(W)); in sha256_update() 184 memzero_explicit(sctx, sizeof(*sctx)); in __sha256_final()
|
/linux/drivers/net/wireguard/ |
A D | noise.c | 355 memzero_explicit(secret, BLAKE2S_HASH_SIZE); in kdf() 356 memzero_explicit(output, BLAKE2S_HASH_SIZE + 1); in kdf() 418 memzero_explicit(temp_hash, NOISE_HASH_LEN); in mix_psk() 546 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_create_initiation() 625 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_consume_initiation() 626 memzero_explicit(hash, NOISE_HASH_LEN); in wg_noise_handshake_consume_initiation() 627 memzero_explicit(chaining_key, NOISE_HASH_LEN); in wg_noise_handshake_consume_initiation() 690 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_create_response() 773 memzero_explicit(key, NOISE_SYMMETRIC_KEY_LEN); in wg_noise_handshake_consume_response() 774 memzero_explicit(hash, NOISE_HASH_LEN); in wg_noise_handshake_consume_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/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 | 208 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key() 351 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 530 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
|
/linux/drivers/crypto/keembay/ |
A D | keembay-ocs-ecc.c | 276 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(¶ms, 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()
|
A D | keembay-ocs-hcu-core.c | 362 memzero_explicit(rctx->buffer, sizeof(rctx->buffer)); in kmb_ocs_hcu_secure_cleanup() 394 memzero_explicit(&ctx->key[ctx->key_len], in prepare_ipad() 829 memzero_explicit(ctx, sizeof(*ctx)); in __cra_init() 883 memzero_explicit(ctx->key, sizeof(ctx->key)); in kmb_ocs_hcu_hmac_cra_exit()
|
/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/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/crypto/ |
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 | sm3_generic.c | 132 memzero_explicit(w, sizeof(w)); in sm3_transform() 133 memzero_explicit(wt, sizeof(wt)); in sm3_transform()
|
A D | sha1_generic.c | 39 memzero_explicit(temp, sizeof(temp)); in sha1_generic_block_fn()
|
/linux/arch/mips/cavium-octeon/crypto/ |
A D | octeon-sha1.c | 42 memzero_explicit(&hash_tail.word[0], sizeof(hash_tail.word[0])); in octeon_sha1_store_hash() 57 memzero_explicit(&hash_tail.dword, sizeof(hash_tail.dword)); in octeon_sha1_read_hash()
|
/linux/drivers/crypto/xilinx/ |
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() 349 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_aead_tfm_ctx)); in zynqmp_aes_aead_exit()
|
/linux/security/keys/encrypted-keys/ |
A D | encrypted.c | 505 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_append() 544 memzero_explicit(derived_key, sizeof(derived_key)); in datablob_hmac_verify() 708 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_key_decrypt() 946 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_read() 955 memzero_explicit(derived_key, sizeof(derived_key)); in encrypted_read()
|
/linux/fs/cifs/ |
A D | smbencrypt.c | 88 memzero_explicit(wpwd, sizeof(wpwd)); in E_md4hash()
|
/linux/net/mac80211/ |
A D | wep.c | 118 memzero_explicit(ctx, sizeof(*ctx)); in ieee80211_wep_encrypt_data() 172 memzero_explicit(ctx, sizeof(*ctx)); in ieee80211_wep_decrypt_data()
|
/linux/arch/arm64/kvm/ |
A D | trng.c | 47 memzero_explicit(bits, sizeof(bits)); in kvm_trng_do_rnd()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | crypto.c | 56 memzero_explicit(in, sizeof(in)); in mlx5_create_encryption_key()
|
/linux/include/crypto/ |
A D | sm3_base.h | 108 memzero_explicit(sctx, sizeof(*sctx)); in sm3_base_finish()
|
A D | sha1_base.h | 105 memzero_explicit(sctx, sizeof(*sctx)); in sha1_base_finish()
|
A D | sha256_base.h | 109 memzero_explicit(sctx, sizeof(*sctx)); in sha256_base_finish()
|