Home
last modified time | relevance | path

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

/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher.c134 enum caam_status caam_cipher_block(struct cipherdata *ctx, bool savectx, in caam_cipher_block()
260 struct cipherdata *cipherdata = NULL; in do_allocate() local
271 cipherdata = caam_calloc(sizeof(*cipherdata)); in do_allocate()
272 if (!cipherdata) { in do_allocate()
278 cipherdata->descriptor = caam_calloc_desc(MAX_DESC_ENTRIES); in do_allocate()
279 if (!cipherdata->descriptor) { in do_allocate()
286 cipherdata->alg = alg; in do_allocate()
289 cipherdata->blockbuf.max = cipherdata->alg->size_block; in do_allocate()
291 *ctx = cipherdata; in do_allocate()
296 caam_free_desc(&cipherdata->descriptor); in do_allocate()
[all …]
H A Dlocal.h48 struct cipherdata { struct
84 enum caam_status caam_cipher_block(struct cipherdata *ctx, bool savectx,
H A Dcaam_cipher_mac.c95 struct cipherdata *ctx; /* CMAC context */
145 struct cipherdata *ctx = dupdate->ctx; in do_update_mac()
297 static TEE_Result run_cmac_desc(struct cipherdata *ctx, struct caamdmaobj *src, in run_cmac_desc()
422 struct cipherdata *ctx = dupdate->ctx; in do_update_cmac()
585 struct cipherdata *macdata = mac->ctx; in do_cmac_init()
633 struct cipherdata *macdata = mac->ctx; in do_cmac_update()
667 struct cipherdata *macdata = mac->ctx; in do_cmac_final()
728 struct cipherdata *macdata_dst = mac_dst->ctx; in do_cmac_copy_state()
729 struct cipherdata *macdata_src = mac_src->ctx; in do_cmac_copy_state()
759 struct cipherdata *macdata = NULL; in caam_cmac_allocate()
H A Dcaam_cipher_xts.c45 static TEE_Result do_tweak_block(struct cipherdata *ctx, in do_tweak_block()
81 struct cipherdata *ctx = dupdate->ctx; in caam_cipher_update_xts()