Home
last modified time | relevance | path

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

123456

/linux/drivers/s390/crypto/
H A Dpkey_api.c112 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( 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_ke 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.c153 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 Daescfb.c57 memzero_explicit(ks, sizeof(ks)); in aescfb_encrypt()
93 memzero_explicit(ks, sizeof(ks)); in aescfb_decrypt()
H A Dsha512.c221 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()
/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/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/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.c168 memzero_explicit(intermediary, sizeof(intermediary)); in jent_hash_time()
186 memzero_explicit(jent_block, sizeof(jent_block)); in jent_read_random_block()
H A Dwp512.c1055 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/block/
H A Dblk-crypto.c512 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/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/arch/s390/crypto/
H A 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()
H A Dphmac_s390.c368 memzero_explicit(&pk, sizeof(pk)); in phmac_convert_key()
621 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_update()
660 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_final()
709 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_finup()
842 memzero_explicit(tfm_ctx->keybuf, sizeof(tfm_ctx->keybuf)); in phmac_exit_tfm()
843 memzero_explicit(&tfm_ctx->pk, sizeof(tfm_ctx->pk)); in phmac_exit_tfm()
904 memzero_explicit(kmac_ctx, sizeof(*kmac_ctx)); in phmac_do_one_request()
/linux/drivers/char/
H A Drandom.c298 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/drivers/crypto/xilinx/
H A 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()
348 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_aead_tfm_ctx)); in zynqmp_aes_aead_exit()
H A Dzynqmp-sha.c135 memzero_explicit(ubuf, ZYNQMP_DMA_ALLOC_FIXED_SIZE); in __zynqmp_sha_digest()
154 memzero_explicit(fbuf, SHA3_384_DIGEST_SIZE); in __zynqmp_sha_digest()
/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-cipher.c304 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_prepare()
309 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_prepare()
353 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_unprepare()
358 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_unprepare()
/linux/fs/crypto/
H A Dkeysetup.c182 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()
/linux/arch/arm64/kvm/
H A Dtrng.c47 memzero_explicit(bits, sizeof(bits)); in kvm_trng_do_rnd()

123456