Home
last modified time | relevance | path

Searched refs:enc_ctx (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/tee/
A Dtee_ta_enc_manager.c12 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/core/include/tee/
A Dtee_ta_enc_manager.h15 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/core/kernel/
A Dree_fs_ta.c65 void *enc_ctx; member
261 res = tee_ta_decrypt_init(&handle->enc_ctx, ehdr, in ree_fs_ta_open()
451 res = tee_ta_decrypt_update(handle->enc_ctx, dst, src, in ree_fs_ta_read()
467 res = tee_ta_decrypt_update(handle->enc_ctx, b, in ree_fs_ta_read()
501 res = tee_ta_decrypt_final(handle->enc_ctx, in ree_fs_ta_read()

Completed in 5 milliseconds