| /OK3568_Linux_fs/kernel/lib/crypto/ |
| H A D | chacha20poly1305.c | 52 memzero_explicit(k, sizeof(k)); in xchacha_init() 53 memzero_explicit(iv, sizeof(iv)); in xchacha_init() 86 memzero_explicit(chacha_state, CHACHA_STATE_WORDS * sizeof(u32)); in __chacha20poly1305_encrypt() 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() [all …]
|
| H A D | blake2s.c | 29 memzero_explicit(state, sizeof(*state)); in blake2s_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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireguard/ |
| H 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() 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 …]
|
| /OK3568_Linux_fs/kernel/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);
|
| /OK3568_Linux_fs/kernel/fs/crypto/ |
| H 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()
|
| H A D | keysetup.c | 158 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key() 237 memzero_explicit(mode_key, mode->keysize); in setup_per_mode_enc_key() 389 memzero_explicit(derived_key, ci->ci_mode->keysize); in fscrypt_setup_v2_file_key() 561 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
|
| /OK3568_Linux_fs/kernel/drivers/char/ |
| H A D | random.c | 275 memzero_explicit(key, sizeof(key)); in crng_reseed() 307 memzero_explicit(first_block, sizeof(first_block)); in crng_fast_key_erasure() 420 memzero_explicit(tmp, sizeof(tmp)); in _get_random_bytes() 431 memzero_explicit(chacha_state, sizeof(chacha_state)); in _get_random_bytes() 494 memzero_explicit(block, sizeof(block)); in get_random_bytes_user() 496 memzero_explicit(chacha_state, sizeof(chacha_state)); in get_random_bytes_user() 696 memzero_explicit(next_key, sizeof(next_key)); in extract_entropy() 707 memzero_explicit(seed, sizeof(seed)); in extract_entropy() 708 memzero_explicit(&block, sizeof(block)); in extract_entropy() 996 memzero_explicit(pool, sizeof(pool)); in mix_interrupt_randomness() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-prng.c | 23 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ss_prng_seed() 51 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ss_prng_exit() 170 memzero_explicit(d, todo); in sun8i_ss_prng_generate()
|
| H A D | sun8i-ss-cipher.c | 128 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_setup_ivs() 153 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_setup_ivs() 288 memzero_explicit(sf->iv[i], ivsize); in sun8i_ss_cipher() 294 memzero_explicit(sf->biv, ivsize); in sun8i_ss_cipher()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | sun8i-ce-prng.c | 29 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ce_prng_exit() 41 memzero_explicit(ctx->seed, ctx->slen); in sun8i_ce_prng_seed() 159 memzero_explicit(d, todo); in sun8i_ce_prng_generate()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/security/keys/ |
| H A D | big_key.c | 124 memzero_explicit(buf, enclen); in big_key_preparse() 143 memzero_explicit(buf, enclen); in big_key_preparse() 276 memzero_explicit(buf, enclen); in big_key_read()
|
| /OK3568_Linux_fs/kernel/arch/s390/crypto/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | smbencrypt.c | 73 memzero_explicit(&ctx, sizeof(ctx)); in smbhash() 185 memzero_explicit(wpwd, sizeof(wpwd)); in E_md4hash()
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H 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()
|
| H A D | sm3_generic.c | 132 memzero_explicit(w, sizeof(w)); in sm3_transform() 133 memzero_explicit(wt, sizeof(wt)); in sm3_transform()
|
| H A D | sha1_generic.c | 39 memzero_explicit(temp, sizeof(temp)); in sha1_generic_block_fn()
|
| /OK3568_Linux_fs/kernel/arch/mips/cavium-octeon/crypto/ |
| H 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()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/ |
| H A D | string_ext.h | 53 void memzero_explicit(void *s, size_t count);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/ |
| H A D | string_ext.h | 53 void memzero_explicit(void *s, size_t count);
|
| /OK3568_Linux_fs/kernel/drivers/crypto/xilinx/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/security/keys/encrypted-keys/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/arm64/kvm/ |
| H A D | trng.c | 47 memzero_explicit(bits, sizeof(bits)); in kvm_trng_do_rnd()
|