Home
last modified time | relevance | path

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

1234567

/linux/drivers/s390/crypto/
H A Dpkey_api.c111 memzero_explicit(&kgs, sizeof(kgs)); in pkey_ioctl_genseck()
137 memzero_explicit(&kcs, sizeof(kcs)); in pkey_ioctl_clr2seck()
163 memzero_explicit(&ksp, sizeof(ksp)); in pkey_ioctl_sec2protk()
184 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk()
189 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk()
210 memzero_explicit(&kcp, sizeof(kcp)); in pkey_ioctl_clr2protk()
271 memzero_explicit(&ksp, sizeof(ksp)); in pkey_ioctl_skey2pkey()
300 memzero_explicit(&kvk, sizeof(kvk)); in pkey_ioctl_verifykey()
321 memzero_explicit(&kgp, sizeof(kgp)); in pkey_ioctl_genprotk()
341 memzero_explicit(&kvp, sizeof(kvp)); in pkey_ioctl_verifyprotk()
[all …]
/linux/drivers/net/wireguard/
H A 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/lib/crypto/
H A Dchacha20poly1305.c50 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 Daesgcm.c103 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 Dsha1.c125 memzero_explicit(workspace, sizeof(workspace)); in sha1_blocks_generic()
196 memzero_explicit(ctx, sizeof(*ctx)); in sha1_final()
235 memzero_explicit(&derived_key, sizeof(derived_key)); in __hmac_sha1_preparekey()
278 memzero_explicit(ctx, sizeof(*ctx)); in hmac_sha1_final()
H A Dsha256.c156 memzero_explicit(W, sizeof(W)); in sha256_blocks_generic()
241 memzero_explicit(ctx, sizeof(*ctx)); in sha224_final()
248 memzero_explicit(ctx, sizeof(*ctx)); in sha256_final()
358 memzero_explicit(&derived_key, sizeof(derived_key)); in __hmac_sha256_preparekey()
419 memzero_explicit(ctx, sizeof(*ctx)); in __hmac_sha256_final()
H A Daescfb.c57 memzero_explicit(ks, sizeof(ks)); in aescfb_encrypt()
93 memzero_explicit(ks, sizeof(ks)); in aescfb_decrypt()
H A Dsha512.c222 memzero_explicit(ctx, sizeof(*ctx)); in sha384_final()
229 memzero_explicit(ctx, sizeof(*ctx)); in sha512_final()
283 memzero_explicit(&derived_key, sizeof(derived_key)); in __hmac_sha512_preparekey()
346 memzero_explicit(ctx, sizeof(*ctx)); in __hmac_sha512_final()
/linux/scripts/coccinelle/api/
H A 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/drivers/firmware/efi/libstub/
H A Drandom.c148 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/arch/s390/crypto/
H A Dpaes_s390.c263 memzero_explicit(&pk, sizeof(pk)); in paes_convert_key()
329 memzero_explicit(&pk0, sizeof(pk0)); in pxts_convert_key()
330 memzero_explicit(&pk1, sizeof(pk1)); in pxts_convert_key()
503 memzero_explicit(&req_ctx->param, sizeof(req_ctx->param)); in ecb_paes_crypt()
534 memzero_explicit(ctx, sizeof(*ctx)); in ecb_paes_exit()
565 memzero_explicit(&req_ctx->param, sizeof(req_ctx->param)); in ecb_paes_do_one_request()
769 memzero_explicit(&req_ctx->param, sizeof(req_ctx->param)); in cbc_paes_crypt()
800 memzero_explicit(ctx, sizeof(*ctx)); in cbc_paes_exit()
831 memzero_explicit(&req_ctx->param, sizeof(req_ctx->param)); in cbc_paes_do_one_request()
1087 memzero_explicit(&req_ctx->param, sizeof(req_ctx->param)); in ctr_paes_crypt()
[all …]
H A Dprng.c177 memzero_explicit(pblock, sizeof(pblock)); in generate_entropy()
178 memzero_explicit(pg, PAGE_SIZE); in generate_entropy()
422 memzero_explicit(seed, sizeof(seed)); in prng_sha512_instantiate()
469 memzero_explicit(seed, sizeof(seed)); in prng_sha512_reseed()
646 memzero_explicit(p, n); in prng_sha512_read()
H A Dphmac_s390.c382 memzero_explicit(&pk, sizeof(pk)); in phmac_convert_key()
638 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_update()
676 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_final()
728 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_finup()
862 memzero_explicit(tfm_ctx->keybuf, sizeof(tfm_ctx->keybuf)); in phmac_exit_tfm()
863 memzero_explicit(&tfm_ctx->pk, sizeof(tfm_ctx->pk)); in phmac_exit_tfm()
930 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_do_one_request()
/linux/fs/crypto/
H A Dhkdf.c59 memzero_explicit(prk, sizeof(prk)); in fscrypt_init_hkdf()
94 memzero_explicit(tmp, sizeof(tmp)); in fscrypt_hkdf_expand()
H A Dkeysetup.c182 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key()
259 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key()
391 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key()
575 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
/linux/block/
H A Dblk-crypto.c480 memzero_explicit(raw_key, sizeof(raw_key)); in blk_crypto_ioctl_import_key()
481 memzero_explicit(lt_key, sizeof(lt_key)); in blk_crypto_ioctl_import_key()
515 memzero_explicit(lt_key, sizeof(lt_key)); in blk_crypto_ioctl_generate_key()
558 memzero_explicit(lt_key, sizeof(lt_key)); in blk_crypto_ioctl_prepare_key()
559 memzero_explicit(eph_key, sizeof(eph_key)); in blk_crypto_ioctl_prepare_key()
/linux/lib/crypto/mips/
H A Dsha1.h34 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/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c271 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(&params, 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/include/crypto/internal/
H A 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/crypto/
H A Dkdf_sp800108.c53 memzero_explicit(tmpbuffer, h); in crypto_kdf108_ctr_generate()
68 memzero_explicit(dst_orig, dlen_orig); in crypto_kdf108_ctr_generate()
H A Dhkdf.c113 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 Djitterentropy-kcapi.c169 memzero_explicit(intermediary, sizeof(intermediary)); in jent_hash_time()
187 memzero_explicit(jent_block, sizeof(jent_block)); in jent_read_random_block()
/linux/drivers/tee/qcomtee/
H A Dshm.c88 memzero_explicit(oic->in_msg.addr, oic->in_msg.size); in qcomtee_msg_buffers_alloc()
89 memzero_explicit(oic->out_msg.addr, oic->out_msg.size); in qcomtee_msg_buffers_alloc()
/linux/drivers/char/
H A Drandom.c291 memzero_explicit(key, sizeof(key)); in crng_reseed()
323 memzero_explicit(first_block, sizeof(first_block)); in crng_fast_key_erasure()
407 memzero_explicit(tmp, sizeof(tmp)); in _get_random_bytes()
478 memzero_explicit(block, sizeof(block)); in get_random_bytes_user()
698 memzero_explicit(next_key, sizeof(next_key)); in extract_entropy()
709 memzero_explicit(seed, sizeof(seed)); in extract_entropy()
710 memzero_explicit(&block, sizeof(block)); in extract_entropy()
1100 memzero_explicit(pool, sizeof(pool)); in mix_interrupt_randomness()
1443 memzero_explicit(block, sizeof(block)); in write_pool_user()
/linux/include/crypto/
H A Dsha3.h86 memzero_explicit(ctx, sizeof(*ctx)); in sha3_zeroize_ctx()
105 memzero_explicit(ctx, sizeof(*ctx)); in shake_zeroize_ctx()

1234567