Home
last modified time | relevance | path

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

/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher_xts.c58 tmp->orig.data[idx] = srcbuf->data[idx] ^ enc_tweak->data[idx]; in do_tweak_block()
69 dstbuf->data[idx] = tmp->orig.data[idx] ^ enc_tweak->data[idx]; in do_tweak_block()
167 ret = do_tweak_block(ctx, &enc_tweak.orig, &srcbuf, &dstbuf, in caam_cipher_update_xts()
203 memcpy(tmpsrc.data, enc_tweak.orig.data, in caam_cipher_update_xts()
204 enc_tweak.orig.length); in caam_cipher_update_xts()
208 &tmpdst.orig, &tmpdst); in caam_cipher_update_xts()
210 ret = do_tweak_block(ctx, &enc_tweak.orig, &srcbuf, in caam_cipher_update_xts()
211 &tmpdst.orig, &tmpdst); in caam_cipher_update_xts()
224 tmpdst.orig.data[idx]; in caam_cipher_update_xts()
228 tmpsrc.data[idx] = tmpdst.orig.data[idx]; in caam_cipher_update_xts()
[all …]
/optee_os/core/drivers/crypto/caam/utils/
H A Dutils_dmaobj.c76 uint8_t *orig; member
184 sgtdata->orig = 0; in add_sgtdata_entry()
188 sgtdata->orig = entry->origbuf.data + offset; in add_sgtdata_entry()
204 struct caambuf *orig) in dmalist_add_entry_head() argument
211 memcpy(&entry->origbuf, orig, sizeof(entry->origbuf)); in dmalist_add_entry_head()
213 orig->length); in dmalist_add_entry_head()
228 struct caambuf *orig) in dmalist_add_entry() argument
235 memcpy(&entry->origbuf, orig, sizeof(entry->origbuf)); in dmalist_add_entry()
237 orig->length); in dmalist_add_entry()
516 struct caambuf *orig, size_t maxlen) in check_buffer_boundary() argument
[all …]
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/
H A Dgcm_memory.c38 void *orig; in gcm_memory() local
60 orig = gcm = XMALLOC(sizeof(*gcm)); in gcm_memory()
62 orig = gcm = XMALLOC(sizeof(*gcm) + 16); in gcm_memory()
108 XFREE(orig); in gcm_memory()
/optee_os/core/lib/libtomcrypt/src/modes/xts/
H A Dxts_test.c13 int (*orig)(const unsigned char *, unsigned char *, in s_xts_test_accel_xts_encrypt() local
23 orig = cipher_descriptor[xts.cipher]->accel_xts_encrypt; in s_xts_test_accel_xts_encrypt()
30 cipher_descriptor[xts.cipher]->accel_xts_encrypt = orig; in s_xts_test_accel_xts_encrypt()
40 int (*orig)(const unsigned char *, unsigned char *, in s_xts_test_accel_xts_decrypt() local
50 orig = cipher_descriptor[xts.cipher]->accel_xts_decrypt; in s_xts_test_accel_xts_decrypt()
57 cipher_descriptor[xts.cipher]->accel_xts_decrypt = orig; in s_xts_test_accel_xts_decrypt()
/optee_os/core/drivers/crypto/caam/blob/
H A Dcaam_dek.c112 BLOB_DUMPBUF("Blob Output", resblob.orig.data, resblob.orig.length); in caam_dek_generate()
/optee_os/core/drivers/crypto/caam/include/
H A Dcaam_utils_dmaobj.h22 struct caambuf orig; member
/optee_os/core/drivers/crypto/caam/ae/
H A Dcaam_ae_gcm.c113 if (!src || src->orig.length == 0 || in caam_ae_do_block_gcm()
119 input_length = src->orig.length; in caam_ae_do_block_gcm()
/optee_os/core/drivers/crypto/caam/mp/
H A Dcaam_mp.c163 reskey.orig.length = 2 * mp_privdata.sec_size; in caam_mp_export_publickey()
297 sign_c.orig.length = 2 * mp_privdata.sec_size; in caam_mp_sign()
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_rsa.c1592 if (msg.orig.length < caam_read_val32(size_msg.data)) { in do_caam_decrypt()
1599 msg.orig.length = caam_read_val32(size_msg.data); in do_caam_decrypt()
1600 RSA_TRACE("New length %zu", msg.orig.length); in do_caam_decrypt()
H A Dcaam_ecc.c590 sign_c.orig.length = 2 * sdata->size_sec; in do_sign()
H A Dcaam_dsa.c623 sign_c.orig.length = 2 * sdata->size_sec; in do_sign()