| /optee_os/core/drivers/ |
| H A D | zynqmp_huk.c | 102 memzero_explicit(&user_efuse, sizeof(user_efuse)); in tee_zynqmp_generate_huk_src() 226 memzero_explicit(dst, sizeof(dst)); in tee_otp_get_hw_unique_key() 227 memzero_explicit(sha, sizeof(sha)); in tee_otp_get_hw_unique_key() 228 memzero_explicit(tag, sizeof(tag)); in tee_otp_get_hw_unique_key() 229 memzero_explicit(iv, sizeof(iv)); in tee_otp_get_hw_unique_key() 230 memzero_explicit(src, sizeof(src)); in tee_otp_get_hw_unique_key() 231 memzero_explicit(device_dna, sizeof(device_dna)); in tee_otp_get_hw_unique_key()
|
| H A D | versal_huk.c | 289 memzero_explicit(&cmd, sizeof(cmd)); in aes_gcm_encrypt() 324 memzero_explicit(enc_data, sizeof(enc_data)); in tee_otp_get_hw_unique_key() 325 memzero_explicit(dna, sizeof(dna)); in tee_otp_get_hw_unique_key() 326 memzero_explicit(sha, sizeof(sha)); in tee_otp_get_hw_unique_key()
|
| H A D | stm32mp15_huk.c | 125 memzero_explicit(out, *out_len); in aes_gcm_encrypt_uid() 210 memzero_explicit(otp_key, HW_UNIQUE_KEY_LENGTH); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/crypto/ |
| H A D | sm4-xts.c | 74 memzero_explicit(&c->state, sizeof(c->state)); in sm4_xts_final() 75 memzero_explicit(&c->state_ek, sizeof(c->state_ek)); in sm4_xts_final() 76 memzero_explicit(&c->state_dk, sizeof(c->state_dk)); in sm4_xts_final() 77 memzero_explicit(&c->iv, sizeof(c->iv)); in sm4_xts_final()
|
| H A D | sm4-ctr.c | 65 memzero_explicit(&c->state, sizeof(c->state)); in sm4_ctr_final() 66 memzero_explicit(&c->ctr, sizeof(c->ctr)); in sm4_ctr_final()
|
| H A D | sm4-cbc.c | 68 memzero_explicit(&c->state, sizeof(c->state)); in sm4_cbc_final() 69 memzero_explicit(&c->iv, sizeof(c->iv)); in sm4_cbc_final()
|
| H A D | sm3.c | 264 memzero_explicit(&ctx, sizeof(ctx)); in sm3() 289 memzero_explicit(sum, sizeof(sum)); in sm3_hmac_init() 307 memzero_explicit(tmpbuf, sizeof(tmpbuf)); in sm3_hmac_final() 319 memzero_explicit(&ctx, sizeof(ctx)); in sm3_hmac()
|
| H A D | sm3-hash.c | 79 memzero_explicit(&hc->sm3_ctx, sizeof(hc->sm3_ctx)); in op_sm3_hash_free_ctx()
|
| H A D | sm4-ecb.c | 65 memzero_explicit(&c->state, sizeof(c->state)); in sm4_ecb_final()
|
| H A D | sm3-hmac.c | 78 memzero_explicit(&c->sm3_ctx, sizeof(c->sm3_ctx)); in op_sm3_hmac_free_ctx()
|
| /optee_os/core/tee/ |
| H A D | tee_fs_key_manager.c | 127 memzero_explicit(tsk, sizeof(tsk)); in tee_fs_fek_crypt() 128 memzero_explicit(dst_key, sizeof(dst_key)); in tee_fs_fek_crypt() 149 memzero_explicit(&tee_fs_ssk, sizeof(tee_fs_ssk)); in tee_fs_init_key_manager() 222 memzero_explicit(sha, sizeof(sha)); in essiv() 271 memzero_explicit(fek, sizeof(fek)); in tee_fs_crypt_block() 272 memzero_explicit(iv, sizeof(iv)); in tee_fs_crypt_block()
|
| H A D | tee_ta_enc_manager.c | 35 memzero_explicit(key, sizeof(key)); in tee_ta_decrypt_init()
|
| /optee_os/core/arch/arm/plat-k3/drivers/ |
| H A D | ti_sci.c | 338 memzero_explicit(&resp, sizeof(resp)); in ti_sci_get_dkek() 363 memzero_explicit(&resp, sizeof(resp)); in ti_sci_read_otp_mmr() 397 memzero_explicit(&resp, sizeof(resp)); in ti_sci_write_otp_row() 398 memzero_explicit(&req, sizeof(req)); in ti_sci_write_otp_row() 448 memzero_explicit(&req, sizeof(req)); in ti_sci_set_swrev() 471 memzero_explicit(&resp, sizeof(resp)); in ti_sci_get_swrev() 493 memzero_explicit(&resp, sizeof(resp)); in ti_sci_get_keycnt_keyrev() 521 memzero_explicit(&req, sizeof(req)); in ti_sci_set_keyrev()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | x25519.c | 63 memzero_explicit(<c_tmp_key, sizeof(ltc_tmp_key)); in crypto_acipher_gen_x25519_key() 97 memzero_explicit(<c_private_key, sizeof(ltc_private_key)); in crypto_acipher_x25519_shared_secret()
|
| H A D | ed25519.c | 73 memzero_explicit(<c_tmp_key, sizeof(ltc_tmp_key)); in crypto_acipher_gen_ed25519_key() 104 memzero_explicit(&private_key, sizeof(private_key)); in crypto_acipher_ed25519_sign() 146 memzero_explicit(&private_key, sizeof(private_key)); in crypto_acipher_ed25519ctx_sign()
|
| /optee_os/core/lib/libtomcrypt/src/misc/ |
| H A D | zeromem.c | 19 memzero_explicit((void *)out, outlen); in zeromem()
|
| /optee_os/lib/libutils/ext/ |
| H A D | memzero_explicit.c | 20 void memzero_explicit(void *s, size_t count) in memzero_explicit() function
|
| H A D | sub.mk | 10 srcs-y += memzero_explicit.c
|
| /optee_os/core/kernel/ |
| H A D | huk_subkey.c | 103 memzero_explicit(subkey, subkey_len); in __huk_subkey_derive() 104 memzero_explicit(&huk, sizeof(huk)); in __huk_subkey_derive()
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | string_ext.h | 53 void memzero_explicit(void *s, size_t count);
|
| /optee_os/core/arch/arm/plat-rockchip/ |
| H A D | platform_rk3588.c | 213 memzero_explicit(buffer, sizeof(buffer)); in persist_huk() 247 memzero_explicit(buffer, sizeof(buffer)); in read_huk()
|
| /optee_os/core/arch/arm/plat-k3/ |
| H A D | main.c | 119 memzero_explicit(&dkek, sizeof(dkek)); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_pbkdf2.c | 283 memzero_explicit(msg->base_key, msg->key_len); in sec_pbkdf2_clean_buf() 284 memzero_explicit(msg->salt, msg->salt_len); in sec_pbkdf2_clean_buf()
|
| H A D | sec_hmac.c | 79 memzero_explicit(hash_ctx->key, hash_ctx->key_len); in sec_hmac_ctx_free()
|
| /optee_os/ta/trusted_keys/ |
| H A D | entry.c | 53 memzero_explicit(rng_buf, params[0].memref.size); in get_random() 200 memzero_explicit(huk_key, sizeof(huk_key)); in huk_crypt()
|