Searched refs:enc_ctx (Results 1 – 3 of 3) sorted by relevance
/optee_os-3.20.0/core/tee/ |
A D | tee_ta_enc_manager.c | 12 TEE_Result tee_ta_decrypt_init(void **enc_ctx, struct shdr_encrypted_ta *ehdr, in tee_ta_decrypt_init() argument 18 res = crypto_authenc_alloc_ctx(enc_ctx, ehdr->enc_algo); in tee_ta_decrypt_init() 27 res = crypto_authenc_init(*enc_ctx, TEE_MODE_DECRYPT, key, sizeof(key), in tee_ta_decrypt_init() 33 crypto_authenc_free_ctx(*enc_ctx); in tee_ta_decrypt_init() 39 TEE_Result tee_ta_decrypt_update(void *enc_ctx, uint8_t *dst, uint8_t *src, in tee_ta_decrypt_update() argument 45 res = crypto_authenc_update_payload(enc_ctx, TEE_MODE_DECRYPT, src, len, in tee_ta_decrypt_update() 48 crypto_authenc_free_ctx(enc_ctx); in tee_ta_decrypt_update() 53 TEE_Result tee_ta_decrypt_final(void *enc_ctx, struct shdr_encrypted_ta *ehdr, in tee_ta_decrypt_final() argument 59 res = crypto_authenc_dec_final(enc_ctx, src, len, dst, &dlen, in tee_ta_decrypt_final() 62 crypto_authenc_free_ctx(enc_ctx); in tee_ta_decrypt_final()
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_ta_enc_manager.h | 15 TEE_Result tee_ta_decrypt_init(void **enc_ctx, struct shdr_encrypted_ta *ehdr, 17 TEE_Result tee_ta_decrypt_update(void *enc_ctx, uint8_t *dst, uint8_t *src, 19 TEE_Result tee_ta_decrypt_final(void *enc_ctx, struct shdr_encrypted_ta *ehdr,
|
/optee_os-3.20.0/core/kernel/ |
A D | ree_fs_ta.c | 66 void *enc_ctx; member 458 res = tee_ta_decrypt_init(&handle->enc_ctx, ehdr, in ree_fs_ta_open() 561 res = tee_ta_decrypt_update(handle->enc_ctx, dst, src, in ree_fs_ta_read() 577 res = tee_ta_decrypt_update(handle->enc_ctx, b, in ree_fs_ta_read() 611 res = tee_ta_decrypt_final(handle->enc_ctx, in ree_fs_ta_read()
|
Completed in 4 milliseconds