Home
last modified time | relevance | path

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

/optee_os/core/tee/
H A Dtee_svc_cryp.c2912 struct tee_cryp_state *cs_src = NULL; in syscall_cryp_state_copy() local
2918 res = tee_svc_cryp_get_state(sess, uref_to_vaddr(src), &cs_src); in syscall_cryp_state_copy()
2921 if (cs_dst->algo != cs_src->algo || cs_dst->mode != cs_src->mode) in syscall_cryp_state_copy()
2924 switch (TEE_ALG_GET_CLASS(cs_src->algo)) { in syscall_cryp_state_copy()
2926 crypto_cipher_copy_state(cs_dst->ctx, cs_src->ctx); in syscall_cryp_state_copy()
2929 crypto_authenc_copy_state(cs_dst->ctx, cs_src->ctx); in syscall_cryp_state_copy()
2932 crypto_hash_copy_state(cs_dst->ctx, cs_src->ctx); in syscall_cryp_state_copy()
2935 crypto_mac_copy_state(cs_dst->ctx, cs_src->ctx); in syscall_cryp_state_copy()
2941 cs_dst->state = cs_src->state; in syscall_cryp_state_copy()
2942 cs_dst->ctx_finalize = cs_src->ctx_finalize; in syscall_cryp_state_copy()