Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_mac.c178 if (dupdate->last) in do_update_mac()
197 if (dupdate->last) { in do_update_mac()
244 if (dupdate->last) { in do_update_mac()
437 if (!dupdate->last) { in do_update_cmac()
520 if (dupdate->last) { in do_update_cmac()
628 dupdate.ctx = macdata; in do_cmac_update()
629 dupdate.encrypt = true; in do_cmac_update()
630 dupdate.last = false; in do_cmac_update()
634 dupdate.dst.length = 0; in do_cmac_update()
680 dupdate.ctx = macdata; in do_cmac_final()
[all …]
A Dcaam_cipher.c602 dupdate->src.length); in do_update_streaming()
607 dupdate->dst.length, in do_update_streaming()
608 dupdate->dst.length); in do_update_streaming()
634 dupdate->dst.length = 0; in do_update_streaming()
658 CIPHER_DUMPBUF("Source", dupdate->src.data, dupdate->src.length); in do_update_streaming()
659 CIPHER_DUMPBUF("Result", dupdate->dst.data, dupdate->dst.length); in do_update_streaming()
669 .data = dupdate->src.data, in do_update_streaming()
803 dupdate->src.length); in do_update_cipher()
808 dupdate->src.length); in do_update_cipher()
813 dupdate->dst.length, dupdate->dst.length); in do_update_cipher()
[all …]
A Dcaam_cipher_xts.c77 TEE_Result caam_cipher_update_xts(struct drvcrypt_cipher_update *dupdate) in caam_cipher_update_xts() argument
81 struct cipherdata *ctx = dupdate->ctx; in caam_cipher_update_xts()
94 CIPHER_TRACE("Algo AES XTS length=%zu - %s", dupdate->src.length, in caam_cipher_update_xts()
97 psrc = virt_to_phys(dupdate->src.data); in caam_cipher_update_xts()
98 pdst = virt_to_phys(dupdate->dst.data); in caam_cipher_update_xts()
144 fullsize = dupdate->src.length; in caam_cipher_update_xts()
157 srcbuf.data = dupdate->src.data; in caam_cipher_update_xts()
161 dstbuf.data = dupdate->dst.data; in caam_cipher_update_xts()
A Dlocal.h42 TEE_Result (*update)(struct drvcrypt_cipher_update *dupdate);
94 TEE_Result caam_cipher_update_xts(struct drvcrypt_cipher_update *dupdate);
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Dcipher.c30 static TEE_Result do_update(struct drvcrypt_cipher_update *dupdate) in do_update() argument
32 struct crypto_cipher_ctx *ctx = dupdate->ctx; in do_update()
34 return ctx->ops->update(ctx, dupdate->last, dupdate->src.data, in do_update()
35 dupdate->src.length, dupdate->dst.data); in do_update()
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dcipher.c62 static TEE_Result stm32_cipher_update(struct drvcrypt_cipher_update *dupdate) in stm32_cipher_update() argument
64 struct stm32_cipher_ctx *c = to_stm32_cipher_ctx(dupdate->ctx); in stm32_cipher_update()
65 size_t len = MIN(dupdate->src.length, dupdate->dst.length); in stm32_cipher_update()
67 return stm32_cryp_update(&c->cryp, dupdate->last, in stm32_cipher_update()
68 dupdate->src.data, dupdate->dst.data, in stm32_cipher_update()
A Dauthenc.c238 stm32_ae_update_aad(struct drvcrypt_authenc_update_aad *dupdate) in stm32_ae_update_aad() argument
240 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dupdate->ctx); in stm32_ae_update_aad()
242 return stm32_cryp_update_assodata(&c->cryp, dupdate->aad.data, in stm32_ae_update_aad()
243 dupdate->aad.length); in stm32_ae_update_aad()
247 stm32_ae_update_payload(struct drvcrypt_authenc_update_payload *dupdate) in stm32_ae_update_payload() argument
249 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dupdate->ctx); in stm32_ae_update_payload()
250 size_t len = MIN(dupdate->src.length, dupdate->dst.length); in stm32_ae_update_payload()
252 return stm32_cryp_update_load(&c->cryp, dupdate->src.data, in stm32_ae_update_payload()
253 dupdate->dst.data, len); in stm32_ae_update_payload()
/optee_os-3.20.0/core/drivers/crypto/versal/
A Dauthenc.c419 if (!context_allowed(dupdate->ctx)) in do_update_aad()
430 versal_mbox_alloc(dupdate->aad.length, dupdate->aad.data, &p); in do_update_aad()
437 dupdate->aad.length, arg.data[0]); in do_update_aad()
475 if (!context_allowed(dupdate->ctx)) in update_payload()
478 if (!dupdate->src.length || dupdate->src.length % 4) { in update_payload()
480 dupdate->src.length); in update_payload()
484 versal_mbox_alloc(dupdate->src.length, dupdate->src.data, &p); in update_payload()
497 if (dupdate->encrypt) in update_payload()
511 if (dupdate->dst.data) in update_payload()
512 memcpy(dupdate->dst.data, q.buf, dupdate->dst.length); in update_payload()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/authenc/
A Dauthenc.c130 struct drvcrypt_authenc_update_aad dupdate = { in authenc_update_aad() local
136 ret = authenc->op->update_aad(&dupdate); in authenc_update_aad()
170 struct drvcrypt_authenc_update_payload dupdate = { in authenc_update_payload() local
179 ret = authenc->op->update_payload(&dupdate); in authenc_update_payload()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_cipher.h55 TEE_Result (*update)(struct drvcrypt_cipher_update *dupdate);
A Ddrvcrypt_authenc.h76 TEE_Result (*update_aad)(struct drvcrypt_authenc_update_aad *dupdate);
/optee_os-3.20.0/core/drivers/crypto/crypto_api/cipher/
A Dcipher.c134 struct drvcrypt_cipher_update dupdate = { in cipher_update() local
143 ret = cipher->op->update(&dupdate); in cipher_update()

Completed in 29 milliseconds