/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | asn1parse.c | 70 *len = ( (size_t)(*p)[1] << 8 ) | (*p)[2]; in mbedtls_asn1_get_len() 79 ( (size_t)(*p)[2] << 8 ) | (*p)[3]; in mbedtls_asn1_get_len() 113 (*p)++; in mbedtls_asn1_get_tag() 132 (*p)++; in mbedtls_asn1_get_bool() 208 *p += len; in mbedtls_asn1_get_mpi() 232 (*p)++; in mbedtls_asn1_get_bitstring() 235 bs->p = *p; in mbedtls_asn1_get_bitstring() 313 ++( *p ); in mbedtls_asn1_get_bitstring_null() 399 alg->p = *p; in mbedtls_asn1_get_alg() 409 (*p)++; in mbedtls_asn1_get_alg() [all …]
|
A D | asn1write.c | 54 *--(*p) = 0x81; in mbedtls_asn1_write_len() 65 *--(*p) = 0x82; in mbedtls_asn1_write_len() 77 *--(*p) = 0x83; in mbedtls_asn1_write_len() 106 *--(*p) = tag; in mbedtls_asn1_write_tag() 116 if( *p < start || (size_t)( *p - start ) < size ) in mbedtls_asn1_write_raw_buffer() 120 (*p) -= len; in mbedtls_asn1_write_raw_buffer() 141 if( *p < start || (size_t)( *p - start ) < len ) in mbedtls_asn1_write_mpi() 144 (*p) -= len; in mbedtls_asn1_write_mpi() 249 if( **p & 0x80 ) in asn1_write_tagged_int() 359 if( *p < start || (size_t)( *p - start ) < byte_len + 1 ) in mbedtls_asn1_write_bitstring() [all …]
|
A D | x509.c | 97 serial->p = *p; in mbedtls_x509_get_serial() 157 p = alg->p; in x509_get_hash_alg() 170 md_oid.p = p; in x509_get_hash_alg() 223 p = (unsigned char *) params->p; in mbedtls_x509_get_rsassa_pss_params() 371 oid->p = *p; in x509_get_attr_type_value() 391 val->p = *p; in x509_get_attr_type_value() 487 if( ( **p < '0') || ( **p > '9' ) ) in x509_parse_int() 620 (*p)++; in mbedtls_x509_get_time() 646 sig->p = *p; in mbedtls_x509_get_sig() 720 ext->p = *p; in mbedtls_x509_get_ext() [all …]
|
A D | x509_crl.c | 103 if( *p == end ) in x509_get_crl_ext() 140 *p += len; in x509_get_crl_ext() 156 *p += len; in x509_get_crl_ext() 189 ext->p = *p; in x509_get_crl_entry_ext() 265 cur_entry->raw.p = *p; in x509_get_entries() 348 crl->raw.p = p; in mbedtls_x509_crl_parse_der() 376 crl->tbs.p = p; in mbedtls_x509_crl_parse_der() 420 crl->issuer_raw.p = p; in mbedtls_x509_crl_parse_der() 435 crl->issuer_raw.len = p - crl->issuer_raw.p; in mbedtls_x509_crl_parse_der() 632 char *p; in mbedtls_x509_crl_info() local [all …]
|
A D | x509_csr.c | 108 if( p == NULL ) in mbedtls_x509_csr_parse_der() 113 csr->raw.p = p; in mbedtls_x509_csr_parse_der() 115 end = p + len; in mbedtls_x509_csr_parse_der() 141 csr->cri.p = p; in mbedtls_x509_csr_parse_der() 150 end = p + len; in mbedtls_x509_csr_parse_der() 173 csr->subject_raw.p = p; in mbedtls_x509_csr_parse_der() 188 csr->subject_raw.len = p - csr->subject_raw.p; in mbedtls_x509_csr_parse_der() 216 p += len; in mbedtls_x509_csr_parse_der() 244 if( p != end ) in mbedtls_x509_csr_parse_der() 336 char *p; in mbedtls_x509_csr_info() local [all …]
|
A D | pkparse.c | 209 params->p = *p; in pk_get_ecparams() 242 unsigned char *p = params->p; in pk_group_from_specified() local 284 p += len; in pk_group_from_specified() 321 p += len; in pk_group_from_specified() 329 p += len; in pk_group_from_specified() 353 ( p[0] != 0x02 && p[0] != 0x03 ) || in pk_group_from_specified() 363 p += len; in pk_group_from_specified() 545 *p += len; in pk_get_rsapubkey() 906 p += len; in pk_parse_key_sec1_der() 1111 p = key; in pk_parse_key_pkcs8_encrypted_der() [all …]
|
A D | x509_create.c | 219 cur->val.p[0] = critical; in mbedtls_x509_set_extension() 220 memcpy( cur->val.p + 1, val, val_len ); in mbedtls_x509_set_extension() 243 const unsigned char *name = cur_name->val.p; in x509_write_name() 296 if( *p < start || (size_t)( *p - start ) < size ) in mbedtls_x509_write_sig() 300 (*p) -= len; in mbedtls_x509_write_sig() 301 memcpy( *p, sig, len ); in mbedtls_x509_write_sig() 303 if( *p - start < 1 ) in mbedtls_x509_write_sig() 306 *--(*p) = 0; in mbedtls_x509_write_sig() 326 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_raw_buffer( p, start, ext->val.p + 1, in x509_write_extension() 331 if( ext->val.p[0] != 0 ) in x509_write_extension() [all …]
|
A D | x509_crt.c | 299 memcmp( a->p, b->p, b->len ) == 0 ) in x509_string_cmp() 467 uid->p = *p; in x509_get_uid() 699 buf->p = *p; in x509_get_subject_alt_name() 809 policy_oid.p = *p; in x509_get_certificate_policies() 841 buf->p = policy_oid.p; in x509_get_certificate_policies() 921 extn_oid.p = *p; in x509_get_crt_ext() 1132 crt->tbs.p = p; in x509_crt_parse_der_core() 1179 crt->issuer_raw.p = p; in x509_crt_parse_der_core() 1212 crt->subject_raw.p = p; in x509_crt_parse_der_core() 1232 crt->pk_raw.p = p; in x509_crt_parse_der_core() [all …]
|
A D | base64.c | 49 unsigned char *p; in mbedtls_base64_encode() local 75 for( i = 0, p = dst; i < n; i += 3 ) in mbedtls_base64_encode() 86 *p++ = mbedtls_ct_base64_enc_char( C3 & 0x3F ); in mbedtls_base64_encode() 100 else *p++ = '='; in mbedtls_base64_encode() 102 *p++ = '='; in mbedtls_base64_encode() 105 *olen = p - dst; in mbedtls_base64_encode() 106 *p = 0; in mbedtls_base64_encode() 123 unsigned char *p; in mbedtls_base64_decode() local 189 for( x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode() 203 *p++ = MBEDTLS_BYTE_2( x ); in mbedtls_base64_decode() [all …]
|
A D | ssl_cli.c | 145 p += 2; in ssl_write_hostname_ext() 148 p += 2; in ssl_write_hostname_ext() 151 p += 2; in ssl_write_hostname_ext() 156 p += 2; in ssl_write_hostname_ext() 192 p += 2; in ssl_write_renegotiation_ext() 293 p += 2; in ssl_write_signature_algorithms_ext() 749 memcpy( p + 1, *cur, *p ); in ssl_write_alpn_ext() 750 p += 1 + *p; in ssl_write_alpn_ext() 1842 for( p = ssl->conf->alpn_list; *p != NULL; p++ ) in ssl_parse_alpn_ext() 2850 len = (*p)[0] << 8 | (*p)[1]; in ssl_parse_server_psk_hint() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-imx/pm/ |
A D | cpuidle-imx7d.c | 42 struct imx7_pm_info *p = in imx7d_cpuidle_init() local 52 p->pm_info_size = sizeof(*p); in imx7d_cpuidle_init() 56 p->ccm_pa_base = CCM_BASE; in imx7d_cpuidle_init() 69 p->num_lpi_cpus = 0; in imx7d_cpuidle_init() 70 p->num_online_cpus = -1; in imx7d_cpuidle_init() 92 struct imx7_pm_info *p; in imx_pen_lock() local 124 struct imx7_pm_info *p; in imx_pen_unlock() local 153 struct imx7_pm_info *p; in imx7d_lowpower_idle() local 180 p->num_lpi_cpus++; in imx7d_lowpower_idle() 192 p->num_lpi_cpus--; in imx7d_lowpower_idle() [all …]
|
A D | pm-imx7.c | 162 p->pm_info_size = sizeof(*p); in imx7_suspend_init() 164 p->ccm_pa_base = CCM_BASE; in imx7_suspend_init() 166 p->ddrc_pa_base = DDRC_BASE; in imx7_suspend_init() 171 p->src_pa_base = SRC_BASE; in imx7_suspend_init() 176 p->gpc_pa_base = GPC_BASE; in imx7_suspend_init() 180 p->snvs_pa_base = SNVS_BASE; in imx7_suspend_init() 182 p->lpsr_pa_base = LPSR_BASE; in imx7_suspend_init() 184 p->gic_pa_base = GIC_BASE; in imx7_suspend_init() 190 switch (p->ddr_type) { in imx7_suspend_init() 207 p->ddrc_val[i][1] = io_read32(p->ddrc_va_base + in imx7_suspend_init() [all …]
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | atomic.h | 18 return __compiler_compare_and_swap(p, oval, nval); in atomic_cas_uint() 23 return __compiler_compare_and_swap(p, oval, nval); in atomic_cas_u32() 26 static inline int atomic_load_int(int *p) in atomic_load_int() argument 28 return __compiler_atomic_load(p); in atomic_load_int() 33 return __compiler_atomic_load(p); in atomic_load_short() 38 return __compiler_atomic_load(p); in atomic_load_uint() 43 return __compiler_atomic_load(p); in atomic_load_u32() 48 __compiler_atomic_store(p, val); in atomic_store_int() 53 __compiler_atomic_store(p, val); in atomic_store_short() 58 __compiler_atomic_store(p, val); in atomic_store_uint() [all …]
|
/optee_os-3.20.0/core/arch/arm/mm/ |
A D | pgt_cache.c | 161 if (!p) in pgt_entry_matches() 190 if (!p) in pgt_flush_range() 207 p = SLIST_NEXT(p, link); in pgt_flush_range() 218 if (!p) in pgt_flush() 254 while (p && p->vabase < va) { in prune_before_va() 292 p = prune_before_va(pgt_cache, p, pp, va); in pgt_check_avail() 315 if (p && p->vabase < va) { in pgt_check_avail() 590 if (p) in pop_from_some_list() 627 pp = p; in pgt_flush() 710 p = SLIST_NEXT(p, link); in flush_ctx_range_from_list() [all …]
|
/optee_os-3.20.0/core/pta/tests/ |
A D | invoke.c | 114 p[0].value.a = p[0].value.a + p[0].value.b; in test_entry_params() 122 p[1].value.a = p[1].value.a + p[1].value.b; in test_entry_params() 130 p[2].value.a = p[2].value.a + p[2].value.b; in test_entry_params() 147 p[0].value.a = p[1].value.a + p[2].value.a + p[3].value.a; in test_entry_params() 148 p[0].value.b = p[1].value.b + p[2].value.b + p[3].value.b; in test_entry_params() 156 p[1].value.a = p[0].value.a + p[2].value.a + p[3].value.a; in test_entry_params() 157 p[1].value.b = p[0].value.b + p[2].value.b + p[3].value.b; in test_entry_params() 165 p[2].value.a = p[0].value.a + p[1].value.a + p[3].value.a; in test_entry_params() 166 p[2].value.b = p[0].value.b + p[1].value.b + p[3].value.b; in test_entry_params() 174 p[3].value.a = p[0].value.a + p[1].value.a + p[2].value.a; in test_entry_params() [all …]
|
/optee_os-3.20.0/lib/libutee/arch/arm/gprof/ |
A D | gprof.c | 147 p->textsize = p->highpc - p->lowpc; in __utee_gprof_init() 148 p->kcountsize = ROUNDUP(p->textsize / HISTFRACTION, sizeof(*p->froms)); in __utee_gprof_init() 160 p->log_hashfraction = __builtin_ffs(p->hashfraction * in __utee_gprof_init() 163 p->fromssize = p->textsize / HASHFRACTION; in __utee_gprof_init() 164 p->tolimit = p->textsize * ARCDENSITY / 100; in __utee_gprof_init() 169 p->tossize = p->tolimit * sizeof(struct tostruct); in __utee_gprof_init() 171 bufsize = p->kcountsize + p->fromssize + p->tossize; in __utee_gprof_init() 180 p->tos = NULL; in __utee_gprof_init() 193 if (p->kcountsize < p->textsize) in __utee_gprof_init() 194 _gprof_s_scale = ((float)p->kcountsize / p->textsize) * in __utee_gprof_init() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/ |
A D | multi2.c | 14 p[1] ^= p[0]; in s_pi1() 23 p[0] ^= t; in s_pi2() 29 t = p[0] + k[1]; in s_pi3() 35 p[1] ^= t; in s_pi3() 43 p[0] ^= t; in s_pi4() 49 ulong32 p[2]; in s_setup() local 51 p[0] = dk[0]; p[1] = dk[1]; in s_setup() 55 s_pi1(p); in s_setup() 56 s_pi2(p, k); in s_setup() 62 s_pi1(p); in s_setup() [all …]
|
/optee_os-3.20.0/core/include/ |
A D | io.h | 20 #define READ_ONCE(p) __compiler_atomic_load(&(p)) argument 21 #define WRITE_ONCE(p, v) __compiler_atomic_store(&(p), (v)) argument 110 *(uint32_t *)p = val; in put_le32() 115 return *(const uint32_t *)p; in get_le32() 120 *(uint64_t *)p = val; in put_le64() 125 return *(const uint64_t *)p; in get_le64() 143 struct __unaligned_u64_t *tmp = p; in put_unaligned_be64() 157 struct __unaligned_u32_t *tmp = p; in put_unaligned_be32() 171 struct __unaligned_u16_t *tmp = p; in put_unaligned_be16() 178 struct __unaligned_u64_t *tmp = p; in put_unaligned_le64() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_points.c | 19 ecc_point *p; in ltc_ecc_new_point() local 20 p = XCALLOC(1, sizeof(*p)); in ltc_ecc_new_point() 21 if (p == NULL) { in ltc_ecc_new_point() 25 &p->x, &p->y, &p->z, LTC_NULL) != CRYPT_OK) { in ltc_ecc_new_point() 26 XFREE(p); in ltc_ecc_new_point() 29 return p; in ltc_ecc_new_point() 35 void ltc_ecc_del_point(ecc_point *p) in ltc_ecc_del_point() argument 38 if (p != NULL) { in ltc_ecc_del_point() 39 …mp_clear_multi(p->x, p->y, p->z, LTC_NULL); /* note: p->z may be NULL but that's ok with this func… in ltc_ecc_del_point() 40 XFREE(p); in ltc_ecc_del_point() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | asn1write.h | 58 int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, 72 int mbedtls_asn1_write_tag( unsigned char **p, unsigned char *start, 88 int mbedtls_asn1_write_raw_buffer( unsigned char **p, unsigned char *start, 106 int mbedtls_asn1_write_mpi( unsigned char **p, unsigned char *start, 122 int mbedtls_asn1_write_null( unsigned char **p, unsigned char *start ); 138 int mbedtls_asn1_write_oid( unsigned char **p, unsigned char *start, 156 int mbedtls_asn1_write_algorithm_identifier( unsigned char **p, 174 int mbedtls_asn1_write_bool( unsigned char **p, unsigned char *start, 244 int mbedtls_asn1_write_printable_string( unsigned char **p, 298 int mbedtls_asn1_write_bitstring( unsigned char **p, unsigned char *start, [all …]
|
A D | asn1.h | 214 int mbedtls_asn1_get_len( unsigned char **p, 239 int mbedtls_asn1_get_tag( unsigned char **p, 258 int mbedtls_asn1_get_bool( unsigned char **p, 279 int mbedtls_asn1_get_int( unsigned char **p, 300 int mbedtls_asn1_get_enum( unsigned char **p, 342 int mbedtls_asn1_get_bitstring_null( unsigned char **p, 393 int mbedtls_asn1_get_sequence_of( unsigned char **p, 506 unsigned char **p, 533 int mbedtls_asn1_get_mpi( unsigned char **p, 554 int mbedtls_asn1_get_alg( unsigned char **p, [all …]
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_uuid_from_str.c | 46 const char *p = s; in tee_uuid_from_str() local 49 if (!p || strnlen(p, 37) != 36) in tee_uuid_from_str() 51 if (p[8] != '-' || p[13] != '-' || p[18] != '-' || p[23] != '-') in tee_uuid_from_str() 54 u.timeLow = parse_hex(p, 8, &res); in tee_uuid_from_str() 57 p += 9; in tee_uuid_from_str() 58 u.timeMid = parse_hex(p, 4, &res); in tee_uuid_from_str() 61 p += 5; in tee_uuid_from_str() 62 u.timeHiAndVersion = parse_hex(p, 4, &res); in tee_uuid_from_str() 65 p += 5; in tee_uuid_from_str() 71 p += 3; in tee_uuid_from_str() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/versal/ |
A D | rsa.c | 211 switch (p->algo) { in do_ssa_sign() 222 p->key.key, in do_ssa_sign() 223 p->salt_len, in do_ssa_sign() 231 p->key.key, in do_ssa_sign() 232 p->salt_len, in do_ssa_sign() 243 p->key.key, in do_ssa_sign() 244 p->salt_len, in do_ssa_sign() 258 switch (p->algo) { in do_ssa_verify() 269 p->key.key, in do_ssa_verify() 278 p->key.key, in do_ssa_verify() [all …]
|
/optee_os-3.20.0/core/pta/ |
A D | stats.c | 64 pool_id = p[0].value.a; in get_alloc_stats() 77 stats = p[1].memref.buffer; in get_alloc_stats() 87 if (p[0].value.b) in get_alloc_stats() 97 !!p[0].value.b); in get_alloc_stats() 105 if (p[0].value.b) in get_alloc_stats() 133 p[0].value.a = stats.npages; in get_pager_stats() 134 p[0].value.b = stats.npages_all; in get_pager_stats() 135 p[1].value.a = stats.ro_hits; in get_pager_stats() 136 p[1].value.b = stats.rw_hits; in get_pager_stats() 137 p[2].value.a = stats.hidden_hits; in get_pager_stats() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/base64/ |
A D | base64_encode.c | 38 char *p; in s_base64_encode_internal() local 63 p = out; in s_base64_encode_internal() 66 *p++ = codes[(in[0] >> 2) & 0x3F]; in s_base64_encode_internal() 69 *p++ = codes[in[2] & 0x3F]; in s_base64_encode_internal() 71 if ((p - out) % linelen == 0) { in s_base64_encode_internal() 72 if (mode & cr) *p++ = '\r'; in s_base64_encode_internal() 73 if (mode & lf) *p++ = '\n'; in s_base64_encode_internal() 81 *p++ = codes[(a >> 2) & 0x3F]; in s_base64_encode_internal() 82 *p++ = codes[(((a & 3) << 4) + (b >> 4)) & 0x3F]; in s_base64_encode_internal() 85 *p++ = '='; in s_base64_encode_internal() [all …]
|