Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 221) sorted by relevance

123456789

/optee_os/lib/libutils/isoc/newlib/
A Dmemmove.c93 char *dst = dst_void; variable
96 if (src < dst && dst < src + length) {
99 dst += length;
101 *--dst = *--src;
104 *dst++ = *src++;
109 char *dst = dst_void;
114 if (src < dst && dst < src + length) {
117 dst += length;
119 *--dst = *--src;
128 aligned_dst = (long *)dst;
[all …]
A Dmemcpy.c89 char *dst = (char *)dst0; variable
95 *dst++ = *src++;
99 char *dst = dst0;
106 if (!TOO_SMALL(len0) && !UNALIGNED(src, dst)) {
107 aligned_dst = (long *)dst;
126 dst = (char *)aligned_dst;
131 *dst++ = *src++;
A Dstrncpy.c124 char *dst = dst0;
130 if (!UNALIGNED (src, dst) && !TOO_SMALL (count))
132 aligned_dst = (long*)dst;
143 dst = (char*)aligned_dst;
150 if ((*dst++ = *src++) == '\0')
155 *dst++ = '\0';
A Dstrcpy.c106 char *dst = dst0;
112 if (!UNALIGNED (src, dst))
114 aligned_dst = (long*)dst;
124 dst = (char*)aligned_dst;
128 while ((*dst++ = *src++))
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_desc_helper.h29 caam_desc_add_dmaobj(desc, data, FIFO_LD(cla, dst, act, 0))
31 caam_desc_add_dmaobj(desc, data, LD_KEY_PLAIN(cla, dst, 0))
141 #define LD_NOCLASS_IMM(dst, len) LD_IMM(CLASS_NO, dst, len) argument
179 FIFO_LOAD_INPUT(dst) | FIFO_LOAD_ACTION(act))
187 FIFO_LOAD_INPUT(dst) | FIFO_LOAD_ACTION(act))
410 MATH_DST(dst) | MATH_LENGTH(len))
418 MATHI_IMM_VALUE(val) | MATHI_DST(dst) | MATH_LENGTH(len))
426 PKHA_CPY_SRC(src) | PKHA_CPY_DST(dst))
434 PKHA_CPY_SRC(src) | PKHA_CPY_DST(dst))
441 PKHA_OUTSEL(dst))
[all …]
/optee_os/core/drivers/crypto/caam/cipher/
A Dcaam_cipher.c130 if (!dst->data) { in copy_ctx_data()
138 memcpy(dst->data, src->data, dst->length); in copy_ctx_data()
141 cache_operation(TEE_CACHEFLUSH, dst->data, dst->length); in copy_ctx_data()
206 if (dst) { in caam_cipher_block()
606 ret = caam_dmaobj_init_output(&dst, dupdate->dst.data, in do_update_streaming()
655 dupdate->dst.length += caam_dmaobj_copy_to_orig(&dst); in do_update_streaming()
659 CIPHER_DUMPBUF("Result", dupdate->dst.data, dupdate->dst.length); in do_update_streaming()
756 dupdate->dst.length += caam_dmaobj_copy_to_orig(&dst); in do_update_streaming()
812 ret = caam_dmaobj_init_output(&dst, dupdate->dst.data, in do_update_cipher()
813 dupdate->dst.length, dupdate->dst.length); in do_update_cipher()
[all …]
A Dcaam_cipher_mac.c147 struct caamdmaobj dst = { }; in do_update_mac() local
198 ret = caam_dmaobj_output_sgtbuf(&dst, dupdate->dst.data, in do_update_mac()
199 dupdate->dst.length, in do_update_mac()
200 dupdate->dst.length); in do_update_mac()
259 &dst); in do_update_mac()
284 caam_dmaobj_free(&dst); in do_update_mac()
456 ret = caam_dmaobj_output_sgtbuf(&dst, dupdate->dst.data, in do_update_cmac()
457 dupdate->dst.length, in do_update_cmac()
557 caam_dmaobj_free(&dst); in do_update_cmac()
633 dupdate.dst.data = NULL; in do_cmac_update()
[all …]
/optee_os/core/arch/arm/crypto/
A Daes-gcm-ce.c19 static void get_be_block(void *dst, const void *src) in get_be_block() argument
21 uint64_t *d = dst; in get_be_block()
27 static void put_be_block(void *dst, const void *src) in put_be_block() argument
31 put_be64(dst, s[1]); in put_be_block()
32 put_be64((uint8_t *)dst + 8, s[0]); in put_be_block()
107 memcpy(dst, buf_cryp, TEE_AES_BLOCK_SIZE); in encrypt_pl()
115 dst += TEE_AES_BLOCK_SIZE; in encrypt_pl()
130 dst += TEE_AES_BLOCK_SIZE; in decrypt_pl()
176 size_t num_blocks, void *dst) in internal_aes_gcm_update_payload_blocks() argument
214 size_t num_blocks, void *dst) in internal_aes_gcm_update_payload_blocks() argument
[all …]
/optee_os/core/crypto/
A Daes-gcm-sw.c55 const uint64_t src[2], uint64_t dst[2]) in encrypt_block()
61 memcpy(dst, buf_cryp, sizeof(state->buf_cryp)); in encrypt_block()
77 void *d = dst + n * TEE_AES_BLOCK_SIZE; in encrypt_pl()
84 void *d = dst + n * TEE_AES_BLOCK_SIZE; in encrypt_pl()
94 const uint64_t src[2], uint64_t dst[2]) in decrypt_block()
104 memcpy(dst, buf_cryp, sizeof(state->buf_cryp)); in decrypt_block()
116 void *d = dst + n * TEE_AES_BLOCK_SIZE; in decrypt_pl()
123 void *d = dst + n * TEE_AES_BLOCK_SIZE; in decrypt_pl()
135 size_t num_blocks, void *dst) in internal_aes_gcm_update_payload_blocks() argument
140 encrypt_pl(state, ek, src, num_blocks, dst); in internal_aes_gcm_update_payload_blocks()
[all …]
A Daes-cts.c106 mode, last_block, data, len, dst); in cbc_cts_update()
126 (nb_blocks - 1) * block_size, dst); in cbc_cts_update()
130 memcpy(dst + (nb_blocks - 1) * block_size, in cbc_cts_update()
131 dst + (nb_blocks - 2) * block_size, in cbc_cts_update()
136 dst + (nb_blocks - 2) * block_size); in cbc_cts_update()
163 block_size, dst); in cbc_cts_update()
170 dst + in cbc_cts_update()
195 dst); in cts_update()
219 struct cts_ctx *dst = to_cts_ctx(dst_ctx); in cts_copy_state() local
221 crypto_cipher_copy_state(dst->cbc, src->cbc); in cts_copy_state()
[all …]
A Daes-gcm.c23 dst[n] ^= src[n]; in xor_buf()
193 size_t len, void *dst) in __gcm_update_payload() argument
197 uint8_t *d = dst; in __gcm_update_payload()
260 void *dst) in internal_aes_gcm_update_payload() argument
263 dst); in internal_aes_gcm_update_payload()
269 size_t len, uint8_t *dst) in operation_final() argument
481 uint8_t *dst) in aes_gcm_update_payload() argument
484 m, src, len, dst); in aes_gcm_update_payload()
492 dst, tag, tag_len); in aes_gcm_enc_final()
497 uint8_t *dst, const uint8_t *tag, in aes_gcm_dec_final() argument
[all …]
/optee_os/core/drivers/bnxt/
A Dbnxt_images.c24 int chip_type, vaddr_t src, vaddr_t dst);
44 int chip_type, vaddr_t src, vaddr_t dst) in set_bnxt_images_info() argument
51 if (dst) { in set_bnxt_images_info()
52 dst_header = (struct bnxt_img_header *)dst; in set_bnxt_images_info()
54 dst += sizeof(*img_header); in set_bnxt_images_info()
66 if (dst) { in set_bnxt_images_info()
67 memcpy((void *)dst, (void *)(src + fw_image_offset), in set_bnxt_images_info()
69 dst += len; in set_bnxt_images_info()
77 if (dst) { in set_bnxt_images_info()
78 memcpy((void *)dst, (void *)(src + fw_image_offset), in set_bnxt_images_info()
A Dbnxt_fw.c194 uintptr_t dst, in memcpy32_helper() argument
205 dst += copied_entries * sizeof(uint32_t); in memcpy32_helper()
420 uintptr_t dst = 0; in ape_section_copy() local
475 if (dst == 0) { in ape_section_copy()
493 uint32_t dst = 0; in ape_section_zero() local
502 if (dst == 0) { in ape_section_zero()
583 uintptr_t dst = 0; in bnxt_crash_config() local
621 dst = info_dst; in bnxt_crash_config()
639 uintptr_t dst = 0; in bnxt_load_fw() local
657 dst = (uintptr_t)BNXT_CONFIG_NS3_DEST; in bnxt_load_fw()
[all …]
/optee_os/core/drivers/crypto/crypto_api/authenc/
A Dauthenc.c154 size_t len, uint8_t *dst) in authenc_update_payload() argument
159 if (!dst) { in authenc_update_payload()
175 .dst.data = dst, in authenc_update_payload()
176 .dst.length = len, in authenc_update_payload()
199 uint8_t *dst, uint8_t *tag, in authenc_enc_final() argument
205 if (!dst && len) { in authenc_enc_final()
220 .dst.data = dst, in authenc_enc_final()
221 .dst.length = len, in authenc_enc_final()
253 if (!dst && len) { in authenc_dec_final()
268 .dst.data = dst, in authenc_dec_final()
[all …]
/optee_os/core/include/crypto/
A Dinternal_aes-gcm.h64 void *dst);
66 const void *src, size_t len, void *dst,
69 const void *src, size_t len, void *dst,
78 const void *src, size_t len, void *dst,
84 const void *src, size_t len, void *dst,
90 static inline void internal_aes_gcm_xor_block(void *dst, const void *src) in internal_aes_gcm_xor_block() argument
92 uint64_t *d = dst; in internal_aes_gcm_xor_block()
95 assert(IS_ALIGNED_WITH_TYPE(dst, uint64_t)); in internal_aes_gcm_xor_block()
132 size_t num_blocks, void *dst);
/optee_os/lib/libmbedtls/core/
A Daes_ctr.c63 uint8_t *dst) in mbed_aes_ctr_update() argument
68 c->block, data, dst)) in mbed_aes_ctr_update()
91 struct mbed_aes_ctr_ctx *dst = to_aes_ctr_ctx(dst_ctx); in mbed_aes_ctr_copy_state() local
93 memcpy(dst->counter, src->counter, sizeof(dst->counter)); in mbed_aes_ctr_copy_state()
94 memcpy(dst->block, src->block, sizeof(dst->block)); in mbed_aes_ctr_copy_state()
95 dst->nc_off = src->nc_off; in mbed_aes_ctr_copy_state()
96 mbed_copy_mbedtls_aes_context(&dst->aes_ctx, &src->aes_ctx); in mbed_aes_ctr_copy_state()
A Ddes_cbc.c69 uint8_t *dst) in mbed_des_cbc_update() argument
74 data, dst)) in mbed_des_cbc_update()
94 struct mbed_des_cbc_ctx *dst = to_des_cbc_ctx(dst_ctx); in mbed_des_cbc_copy_state() local
96 memcpy(dst->iv, src->iv, sizeof(dst->iv)); in mbed_des_cbc_copy_state()
97 dst->mbed_mode = src->mbed_mode; in mbed_des_cbc_copy_state()
98 dst->des_ctx = src->des_ctx; in mbed_des_cbc_copy_state()
/optee_os/core/lib/libtomcrypt/
A Dxts.c20 unsigned char *dst, unsigned char *tweak,
72 const uint8_t *data, size_t len, uint8_t *dst) in ltc_xts_update() argument
76 if (c->update && c->update(data, len, dst, c->tweak, in ltc_xts_update()
97 struct ltc_xts_ctx *dst = to_xts_ctx(dst_ctx); in ltc_xts_copy_state() local
99 assert(src->cipher_idx == dst->cipher_idx); in ltc_xts_copy_state()
100 dst->update = src->update; in ltc_xts_copy_state()
101 memcpy(dst->tweak, src->tweak, sizeof(src->tweak)); in ltc_xts_copy_state()
102 dst->state = src->state; in ltc_xts_copy_state()
/optee_os/out/arm/export-ta_arm64/host_include/
A Dutee_defines.h278 #define TEE_TIME_ADD(t1, t2, dst) do { \ argument
279 (dst).seconds = (t1).seconds + (t2).seconds; \
280 (dst).millis = (t1).millis + (t2).millis; \
281 if ((dst).millis >= TEE_TIME_MILLIS_BASE) { \
282 (dst).seconds++; \
283 (dst).millis -= TEE_TIME_MILLIS_BASE; \
287 #define TEE_TIME_SUB(t1, t2, dst) do { \ argument
288 (dst).seconds = (t1).seconds - (t2).seconds; \
290 (dst).seconds--; \
291 (dst).millis = (t1).millis + TEE_TIME_MILLIS_BASE - (t2).millis;\
[all …]
/optee_os/out/arm/export-ta_arm64/include/
A Dutee_defines.h278 #define TEE_TIME_ADD(t1, t2, dst) do { \ argument
279 (dst).seconds = (t1).seconds + (t2).seconds; \
280 (dst).millis = (t1).millis + (t2).millis; \
281 if ((dst).millis >= TEE_TIME_MILLIS_BASE) { \
282 (dst).seconds++; \
283 (dst).millis -= TEE_TIME_MILLIS_BASE; \
287 #define TEE_TIME_SUB(t1, t2, dst) do { \ argument
288 (dst).seconds = (t1).seconds - (t2).seconds; \
290 (dst).seconds--; \
291 (dst).millis = (t1).millis + TEE_TIME_MILLIS_BASE - (t2).millis;\
[all …]
/optee_os/lib/libutee/include/
A Dutee_defines.h278 #define TEE_TIME_ADD(t1, t2, dst) do { \ argument
279 (dst).seconds = (t1).seconds + (t2).seconds; \
280 (dst).millis = (t1).millis + (t2).millis; \
281 if ((dst).millis >= TEE_TIME_MILLIS_BASE) { \
282 (dst).seconds++; \
283 (dst).millis -= TEE_TIME_MILLIS_BASE; \
287 #define TEE_TIME_SUB(t1, t2, dst) do { \ argument
288 (dst).seconds = (t1).seconds - (t2).seconds; \
290 (dst).seconds--; \
291 (dst).millis = (t1).millis + TEE_TIME_MILLIS_BASE - (t2).millis;\
[all …]
/optee_os/out/arm/export-ta_arm32/host_include/
A Dutee_defines.h278 #define TEE_TIME_ADD(t1, t2, dst) do { \ argument
279 (dst).seconds = (t1).seconds + (t2).seconds; \
280 (dst).millis = (t1).millis + (t2).millis; \
281 if ((dst).millis >= TEE_TIME_MILLIS_BASE) { \
282 (dst).seconds++; \
283 (dst).millis -= TEE_TIME_MILLIS_BASE; \
287 #define TEE_TIME_SUB(t1, t2, dst) do { \ argument
288 (dst).seconds = (t1).seconds - (t2).seconds; \
290 (dst).seconds--; \
291 (dst).millis = (t1).millis + TEE_TIME_MILLIS_BASE - (t2).millis;\
[all …]
/optee_os/out/arm/export-ta_arm32/include/
A Dutee_defines.h278 #define TEE_TIME_ADD(t1, t2, dst) do { \ argument
279 (dst).seconds = (t1).seconds + (t2).seconds; \
280 (dst).millis = (t1).millis + (t2).millis; \
281 if ((dst).millis >= TEE_TIME_MILLIS_BASE) { \
282 (dst).seconds++; \
283 (dst).millis -= TEE_TIME_MILLIS_BASE; \
287 #define TEE_TIME_SUB(t1, t2, dst) do { \ argument
288 (dst).seconds = (t1).seconds - (t2).seconds; \
290 (dst).seconds--; \
291 (dst).millis = (t1).millis + TEE_TIME_MILLIS_BASE - (t2).millis;\
[all …]
/optee_os/core/lib/libtomcrypt/src/stream/sober128/
A Dsober128_test.c27 unsigned char src[20], dst[20]; in sober128_stream_test()
33 if ((err = sober128_stream_crypt(&st, src, len, dst)) != CRYPT_OK) return err; in sober128_stream_test()
35 if (compare_testvector(dst, len, out, len, "SOBER-128-TV1", 0)) { in sober128_stream_test()
41 src, len, dst)) != CRYPT_OK) return err; in sober128_stream_test()
42 if (compare_testvector(dst, len, out, len, "SOBER-128-TV2", 0)) { in sober128_stream_test()
/optee_os/ta/pkcs11/src/
A Dsanitize_object.c133 rc = add_attribute(dst, PKCS11_CKA_CLASS, in sanitize_class_and_type()
139 rc = add_attribute(dst, PKCS11_CKA_CLASS, in sanitize_class_and_type()
147 rc = add_attribute(dst, PKCS11_CKA_KEY_TYPE, in sanitize_class_and_type()
153 rc = add_attribute(dst, PKCS11_CKA_KEY_TYPE, in sanitize_class_and_type()
215 rc = add_attribute(dst, cli_ref.id, &pkcs11_bool, in sanitize_boolprops()
226 static uint32_t sanitize_indirect_attr(struct obj_attrs **dst, in sanitize_indirect_attr() argument
242 rc = add_attribute(dst, cli_ref->id, obj2, in sanitize_indirect_attr()
269 rc = init_attributes_head(dst); in sanitize_client_object()
278 rc = sanitize_boolprops(dst, src, sz_from_hdr); in sanitize_client_object()
293 rc = sanitize_indirect_attr(dst, &cli_ref, data); in sanitize_client_object()
[all …]

Completed in 39 milliseconds

123456789