Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dcommon.h79 #define MBEDTLS_GET_UINT32_BE( data , offset ) \ argument
81 ( (uint32_t) ( data )[( offset ) ] << 24 ) \
82 | ( (uint32_t) ( data )[( offset ) + 1] << 16 ) \
83 | ( (uint32_t) ( data )[( offset ) + 2] << 8 ) \
84 | ( (uint32_t) ( data )[( offset ) + 3] ) \
98 #define MBEDTLS_PUT_UINT32_BE( n, data, offset ) \ argument
100 ( data )[( offset ) ] = MBEDTLS_BYTE_3( n ); \
101 ( data )[( offset ) + 1] = MBEDTLS_BYTE_2( n ); \
102 ( data )[( offset ) + 2] = MBEDTLS_BYTE_1( n ); \
103 ( data )[( offset ) + 3] = MBEDTLS_BYTE_0( n ); \
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/math/
A Dmodulus.c18 if (!data->a.data || !data->a.length || !data->b.data || in drvcrypt_xor_mod_n()
19 !data->b.length || !data->result.data || !data->result.length || in drvcrypt_xor_mod_n()
23 if (data->result.length < data->n.length) in drvcrypt_xor_mod_n()
35 min = MIN(data->a.length, data->b.length); in drvcrypt_xor_mod_n()
39 data->result.data[idx] = in drvcrypt_xor_mod_n()
40 data->a.data[idx] ^ data->b.data[idx]; in drvcrypt_xor_mod_n()
45 memcpy(&data->result.data[idx], in drvcrypt_xor_mod_n()
46 &data->a.data[idx], in drvcrypt_xor_mod_n()
49 memcpy(&data->result.data[idx], in drvcrypt_xor_mod_n()
50 &data->b.data[idx], in drvcrypt_xor_mod_n()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-marvell/armada3700/
A Dhal_sec_perf.c66 #define TZ_IS_VALID(data) ((data) & (0x1)) argument
67 #define TZ_SET_VALID(data) ((data) |= (0x1)) argument
69 #define TZ_GET_PERM(data, ret) ((ret) = (((data) & (0x3 << 1)) >> 1)) argument
72 (data) &= (~(0x3 << 1)); \
76 #define TZ_GET_RZ_EN(data, ret) ((ret) = (((data) & (0x1 << 3)) >> 3)) argument
79 (data) &= (~(0x1 << 3)); \
83 #define TZ_GET_AREA_LEN_CODE(data, ret) ((ret) = (((data) & (0x1F << 8)) >> 8)) argument
100 #define TZ_GET_UR_PERM(data, val) ((ret) = (((data) & (0x3 << 4)) >> 4)) argument
152 uint32_t data; in set_range() local
183 TZ_SET_VALID(data); in set_range()
[all …]
/optee_os-3.20.0/core/kernel/
A Dubsan.c117 print_loc(__func__, &data->loc); in __ubsan_handle_type_mismatch()
126 print_loc(__func__, &data->loc); in __ubsan_handle_add_overflow()
135 print_loc(__func__, &data->loc); in __ubsan_handle_sub_overflow()
144 print_loc(__func__, &data->loc); in __ubsan_handle_mul_overflow()
152 print_loc(__func__, &data->loc); in __ubsan_handle_negate_overflow()
161 print_loc(__func__, &data->loc); in __ubsan_handle_divrem_overflow()
170 print_loc(__func__, &data->loc); in __ubsan_handle_shift_out_of_bounds()
178 print_loc(__func__, &data->loc); in __ubsan_handle_out_of_bounds()
185 print_loc(__func__, &data->loc); in __ubsan_handle_unreachable()
192 print_loc(__func__, &data->loc); in __ubsan_handle_missing_return()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-marvell/armada7k8k/
A Dhal_sec_perf.c65 #define TZ_IS_VALID(data) ((data) & (0x1)) argument
66 #define TZ_SET_VALID(data) ((data) |= (0x1)) argument
68 #define TZ_GET_PERM(data, ret) ((ret) = (((data) & (0x3 << 1)) >> 1)) argument
71 (data) &= (~(0x3 << 1)); \
75 #define TZ_GET_RZ_EN(data, ret) ((ret) = (((data) & (0x1 << 3)) >> 3)) argument
78 (data) &= (~(0x1 << 3)); \
82 #define TZ_GET_AREA_LEN_CODE(data, ret) ((ret) = (((data) & (0x1F << 7)) >> 7)) argument
99 #define TZ_GET_UR_PERM(data, val) ((ret) = (((data) & (0x3 << 4)) >> 4)) argument
154 uint32_t data; in set_range() local
192 TZ_SET_VALID(data); in set_range()
[all …]
/optee_os-3.20.0/scripts/
A Dtee_bin_parser.py23 data = f.read(4)
24 magic = struct.unpack('<I', data)[0]
27 data = f.read(1)
31 data = f.read(1)
35 data = f.read(2)
36 flags = struct.unpack('<H', data)[0]
39 data = f.read(4)
43 data = f.read(4)
47 data = f.read(4)
51 data = f.read(4)
[all …]
/optee_os-3.20.0/core/drivers/
A Dls_sec_mon.c112 TEE_Result ls_sec_mon_read(struct ls_sec_mon_data *data) in ls_sec_mon_read() argument
119 if (!data) { in ls_sec_mon_read()
124 data->hplr = io_read32((vaddr_t)&sec_mon_regs->hplr); in ls_sec_mon_read()
125 data->hpcomr = io_read32((vaddr_t)&sec_mon_regs->hpcomr); in ls_sec_mon_read()
126 data->hpsicr = io_read32((vaddr_t)&sec_mon_regs->hpsicr); in ls_sec_mon_read()
128 data->hpsr = io_read32((vaddr_t)&sec_mon_regs->hpsr); in ls_sec_mon_read()
132 data->lplr = io_read32((vaddr_t)&sec_mon_regs->lplr); in ls_sec_mon_read()
133 data->lpcr = io_read32((vaddr_t)&sec_mon_regs->lpcr); in ls_sec_mon_read()
137 data->lpsr = io_read32((vaddr_t)&sec_mon_regs->lpsr); in ls_sec_mon_read()
144 for (uint32_t i = 0; i < ARRAY_SIZE(data->lpzmkr); ++i) in ls_sec_mon_read()
[all …]
A Dversal_pm.c121 reg_pair_from_64(args.a0, &payload->data[1], &payload->data[0]); in versal_sip_call()
122 reg_pair_from_64(args.a1, &payload->data[3], &payload->data[2]); in versal_sip_call()
123 reg_pair_from_64(args.a2, &payload->data[5], &payload->data[4]); in versal_sip_call()
124 reg_pair_from_64(args.a3, &payload->data[7], &payload->data[6]); in versal_sip_call()
139 cmd.data[0] = PM_LOAD_PDI; in versal_write_fpga()
140 cmd.data[1] = PDI_SRC_DDR; in versal_write_fpga()
141 reg_pair_from_64(pa, &cmd.data[2], &cmd.data[3]); in versal_write_fpga()
171 if (p.data[0] == VERSAL_SIP_UID_0 && p.data[2] == VERSAL_SIP_UID_1 && in uuid_is_versal_pm()
172 p.data[4] == VERSAL_SIP_UID_2 && p.data[6] == VERSAL_SIP_UID_3) in uuid_is_versal_pm()
194 major = p.data[0]; in versal_check_pm_abi()
[all …]
A Dls_dspi.c199 uint16_t data) in dspi_tx() argument
203 uint32_t dspi_val = ctrl | data; in dspi_tx()
277 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx8()
280 dspi_rx(data); in ls_dspi_txrx8()
283 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx8()
330 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx16()
333 dspi_rx(data); in ls_dspi_txrx16()
336 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx16()
374 dspi_rx(data); in ls_dspi_end()
522 dspi_config_slave_state(data, data->slave_cs, data->slave_speed_max_hz, in ls_dspi_configure()
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/
A Dcaam_prime_rsa.c355 prime->data = (uint8_t *)smallprimes[idx].data; in search_smallprime()
731 cache_operation(TEE_CACHEFLUSH, data->p->data, data->p->length); in run_primes()
734 cache_operation(TEE_CACHEFLUSH, data->q->data, data->q->length); in run_primes()
747 cache_operation(TEE_CACHEINVALIDATE, data->p->data, in run_primes()
749 cache_operation(TEE_CACHEINVALIDATE, data->q->data, in run_primes()
752 RSA_DUMPBUF("Prime P", data->p->data, data->p->length); in run_primes()
753 RSA_DUMPBUF("Prime Q", data->q->data, data->q->length); in run_primes()
757 cache_operation(TEE_CACHEINVALIDATE, data->p->data, in run_primes()
760 RSA_DUMPBUF("Prime", data->p->data, data->p->length); in run_primes()
823 data->p->length, data->key_size, data->era); in caam_prime_rsa_gen()
[all …]
A Dcaam_math.c25 static TEE_Result do_xor_mod_n(struct drvcrypt_mod_op *data) in do_xor_mod_n() argument
37 ret = caam_dmaobj_input_sgtbuf(&data_a, data->a.data, data->a.length); in do_xor_mod_n()
41 ret = caam_dmaobj_input_sgtbuf(&data_b, data->b.data, data->b.length); in do_xor_mod_n()
49 ret = caam_dmaobj_output_sgtbuf(&res, data->result.data, in do_xor_mod_n()
50 data->result.length, in do_xor_mod_n()
51 data->result.length); in do_xor_mod_n()
71 caam_desc_add_word(desc, data->n.length); in do_xor_mod_n()
94 RSA_DUMPBUF("Output", data->result.data, data->result.length); in do_xor_mod_n()
A Dcaam_rsa.c811 maskedSeed.data = &EM.data[1]; in do_oaep_decoding()
830 mgf_data.mask.data = seed.data; in do_oaep_decoding()
846 mod_op.b.data = seed.data; in do_oaep_decoding()
878 mod_op.a.data = maskedDB.data; in do_oaep_decoding()
880 mod_op.b.data = dbMask.data; in do_oaep_decoding()
882 mod_op.result.data = DB.data; in do_oaep_decoding()
997 lHash.data = DB.data; in do_oaep_encoding()
1085 mod_op.a.data = DB.data; in do_oaep_encoding()
1087 mod_op.b.data = dbMask.data; in do_oaep_encoding()
1103 maskedSeed.data = &EM.data[1]; in do_oaep_encoding()
[all …]
/optee_os-3.20.0/core/drivers/crypto/versal/
A Dipi.c30 if (arg->data[0]) { in versal_sha3_request()
33 cmd.data[1] = a; in versal_sha3_request()
34 cmd.data[2] = b; in versal_sha3_request()
35 cmd.data[3] = arg->data[0]; in versal_sha3_request()
41 cmd.data[4] = a; in versal_sha3_request()
42 cmd.data[5] = b; in versal_sha3_request()
60 cmd.data[1] = a; in versal_aes_update_aad_request()
61 cmd.data[2] = b; in versal_aes_update_aad_request()
62 cmd.data[3] = arg->data[0]; in versal_aes_update_aad_request()
85 cmd.data[i] = arg->data[i - 1]; in versal_crypto_request()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Drsassa.c217 rsa_data.cipher.data = EM.data; in rsassa_pkcs1_v1_5_sign()
253 if (!EM.data || !EM_gen.data) { in rsassa_pkcs1_v1_5_verify()
272 rsa_data.cipher.data = EM.data; in rsassa_pkcs1_v1_5_verify()
403 hash.data = &EM->data[db_size]; in emsa_pss_encode()
441 dbMask.data = EM->data; in emsa_pss_encode()
446 mgf_data.seed.data = hash.data; in emsa_pss_encode()
464 mod_op.a.data = DB.data; in emsa_pss_encode()
466 mod_op.b.data = dbMask.data; in emsa_pss_encode()
578 hash.data = &EM->data[db_size]; in emsa_pss_verify()
589 mgf_data.seed.data = hash.data; in emsa_pss_verify()
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_xts.c27 tmptmp = buf->data[idx] >> 7; in do_galois_mult()
28 buf->data[idx] = (buf->data[idx] << 1) | tmp; in do_galois_mult()
33 buf->data[0] ^= 0x87; in do_galois_mult()
58 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()
157 srcbuf.data = dupdate->src.data; in caam_cipher_update_xts()
161 dstbuf.data = dupdate->dst.data; in caam_cipher_update_xts()
203 memcpy(tmpsrc.data, enc_tweak.orig.data, in caam_cipher_update_xts()
221 tmpsrc.data[idx] = in caam_cipher_update_xts()
224 tmpdst.orig.data[idx]; in caam_cipher_update_xts()
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/utils/
A Dutils_sgt.c132 if (data->sgt_type) in caam_sgtbuf_free()
133 caam_free(data->sgt); in caam_sgtbuf_free()
135 caam_free(data->buf); in caam_sgtbuf_free()
137 data->sgt = NULL; in caam_sgtbuf_free()
138 data->buf = NULL; in caam_sgtbuf_free()
145 if (!data || !data->number) in caam_sgtbuf_alloc()
148 if (data->sgt_type) { in caam_sgtbuf_alloc()
152 data->buf = (void *)(((uint8_t *)data->sgt) + in caam_sgtbuf_alloc()
155 data->buf = caam_calloc(data->number * sizeof(struct caambuf)); in caam_sgtbuf_alloc()
156 data->sgt = NULL; in caam_sgtbuf_alloc()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_depad.c17 int padding_depad(const unsigned char *data, unsigned long *length, unsigned long mode) in padding_depad() argument
23 LTC_ARGCHK(data != NULL); in padding_depad()
31 pad = data[padded_length - 1]; in padding_depad()
48 if (data[n] != pad) return CRYPT_INVALID_PACKET; in padding_depad()
59 if (data[n] != pad++) return CRYPT_INVALID_PACKET; in padding_depad()
63 while (unpadded_length > 0 && data[unpadded_length - 1] != 0x80) { in padding_depad()
64 if (data[unpadded_length - 1] != 0x0) return CRYPT_INVALID_PACKET; in padding_depad()
69 if (data[unpadded_length] != 0x80) return CRYPT_INVALID_PACKET; in padding_depad()
73 while (unpadded_length > 0 && data[unpadded_length - 1] == 0x0) { in padding_depad()
78 if (data[unpadded_length] != 0x0) return CRYPT_INVALID_PACKET; in padding_depad()
A Dpadding_pad.c80 int padding_pad(unsigned char *data, unsigned long length, unsigned long* padded_length, unsigned l… in padding_pad() argument
87 LTC_ARGCHK(data != NULL); in padding_pad()
115 XMEMSET(&data[length], diff, diff); in padding_pad()
119 if (rng_get_bytes(&data[length], diff-1u, NULL) != diff-1u) { in padding_pad()
122 data[l-1] = diff; in padding_pad()
126 XMEMSET(&data[length], 0, diff-1); in padding_pad()
127 data[l-1] = diff; in padding_pad()
132 data[n] = pad++; in padding_pad()
136 XMEMSET(&data[length + 1], 0, diff); in padding_pad()
137 data[length] = 0x80; in padding_pad()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/choice/
A Dder_decode_choice.c24 void *data; in der_decode_choice() local
43 data = list[x].data; in der_decode_choice()
47 if (der_decode_boolean(in, *inlen, data) == CRYPT_OK) { in der_decode_choice()
57 if (der_decode_integer(in, *inlen, data) == CRYPT_OK) { in der_decode_choice()
58 if (der_length_integer(data, &z) == CRYPT_OK) { in der_decode_choice()
67 if (der_decode_short_integer(in, *inlen, data) == CRYPT_OK) { in der_decode_choice()
141 if (der_length_ia5_string(data, size, &z) == CRYPT_OK) { in der_decode_choice()
163 if (der_length_utf8_string(data, size, &z) == CRYPT_OK) { in der_decode_choice()
174 if (der_decode_utctime(in, &z, data) == CRYPT_OK) { in der_decode_choice()
183 if (der_decode_generalizedtime(in, &z, data) == CRYPT_OK) { in der_decode_choice()
[all …]
/optee_os-3.20.0/core/drivers/imx/dcp/
A Ddcp.c348 if (!init || !data) in dcp_cipher_do_init()
396 data->initialized = true; in dcp_cipher_do_init()
412 if (!data->initialized) { in dcp_cipher_do_update()
437 memcpy(data->payload.data, data->key, DCP_AES128_KEY_SIZE); in dcp_cipher_do_update()
440 memcpy(data->payload.data + DCP_AES128_KEY_SIZE, data->iv, in dcp_cipher_do_update()
450 cache_operation(TEE_CACHECLEAN, data->payload.data, in dcp_cipher_do_update()
451 data->payload_size); in dcp_cipher_do_update()
473 if (data) in dcp_cipher_do_final()
557 memcpy(input.data, hashdata->ctx.data, hashdata->ctx_size); in dcp_sha_do_update()
558 memcpy(input.data + hashdata->ctx_size, data, offset); in dcp_sha_do_update()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_decode_sequence_flexi.c133 l->data = XCALLOC(1, sizeof(int)); in s_der_decode_sequence_flexi()
152 if ((err = mp_init(&l->data)) != CRYPT_OK) { in s_der_decode_sequence_flexi()
176 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi()
199 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi()
226 l->data = NULL; in s_der_decode_sequence_flexi()
259 l->data = realloc_tmp; in s_der_decode_sequence_flexi()
294 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi()
317 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi()
340 if ((l->data = XCALLOC(1, l->size)) == NULL) { in s_der_decode_sequence_flexi()
432 if ((l->data = XMALLOC(len)) == NULL) { in s_der_decode_sequence_flexi()
[all …]
A Dder_encode_sequence_ex.c28 void *data; in der_encode_sequence_ex() local
60 data = list[i].data; in der_encode_sequence_ex()
69 if ((err = der_encode_boolean(*((int *)data), out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
76 if ((err = der_encode_integer(data, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
90 if ((err = der_encode_bit_string(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
124 if ((err = der_encode_ia5_string(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
138 if ((err = der_encode_utf8_string(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
145 if ((err = der_encode_utctime(data, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
152 if ((err = der_encode_generalizedtime(data, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
159 if ((err = der_encode_set(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_sequence_ex()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/authenc/
A Dauthenc.c124 if (!data && len) { in authenc_update_aad()
132 .aad.data = (uint8_t *)data, in authenc_update_aad()
164 if (!data && len) { in authenc_update_payload()
173 .src.data = (uint8_t *)data, in authenc_update_payload()
175 .dst.data = dst, in authenc_update_payload()
210 if (!data && len) { in authenc_enc_final()
218 .src.data = (uint8_t *)data, in authenc_enc_final()
220 .dst.data = dst, in authenc_enc_final()
222 .tag.data = tag, in authenc_enc_final()
266 .src.data = (uint8_t *)data, in authenc_dec_final()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/
A Dder_encode_custom_type.c31 void *data; in der_encode_custom_type() local
62 list = root->data; in der_encode_custom_type()
81 data = list[i].data; in der_encode_custom_type()
90 if ((err = der_encode_boolean(*((int *)data), out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
97 if ((err = der_encode_integer(data, out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
111 if ((err = der_encode_bit_string(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
145 if ((err = der_encode_ia5_string(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
166 if ((err = der_encode_utctime(data, out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
173 if ((err = der_encode_generalizedtime(data, out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
180 if ((err = der_encode_set(data, size, out + x, &z)) != CRYPT_OK) { in der_encode_custom_type()
[all …]
/optee_os-3.20.0/ta/pkcs11/src/
A Dsanitize_object.c52 void **data) in read_attr_advance() argument
65 *data = b + data_pos; in read_attr_advance()
82 void *data = NULL; in sanitize_class_and_type() local
177 void *data = NULL; in sanitize_boolprops() local
228 char *data) in sanitize_indirect_attr() argument
258 void *data = NULL; in sanitize_client_object() local
335 uint8_t data[4] = { 0 }; in __trace_attributes() local
361 prefix, data[0], data[1]); in __trace_attributes()
365 prefix, data[0], data[1], data[2]); in __trace_attributes()
369 prefix, data[0], data[1], data[2], data[3]); in __trace_attributes()
[all …]

Completed in 80 milliseconds

12345678910>>...13