Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 224) sorted by relevance

123456789

/optee_os-3.20.0/core/pta/tests/
A Dinvoke.c76 static TEE_Result test_entry_memref_null(uint32_t type, in test_entry_memref_null() argument
84 if (exp_pt != type) in test_entry_memref_null()
111 (TEE_PARAM_TYPE_GET(type, 1) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
112 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
113 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
120 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
121 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
127 (TEE_PARAM_TYPE_GET(type, 1) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
260 if (exp_pt != type) { in test_inject_sdp()
303 if (exp_pt != type) { in test_transform_sdp()
[all …]
/optee_os-3.20.0/core/pta/
A Dapdu.c16 *type = CRYPTO_APDU_CASE_NO_HINT; in get_apdu_type()
19 *type = CRYPTO_APDU_CASE_1; in get_apdu_type()
22 *type = CRYPTO_APDU_CASE_2; in get_apdu_type()
25 *type = CRYPTO_APDU_CASE_2E; in get_apdu_type()
28 *type = CRYPTO_APDU_CASE_3; in get_apdu_type()
31 *type = CRYPTO_APDU_CASE_3E; in get_apdu_type()
34 *type = CRYPTO_APDU_CASE_4; in get_apdu_type()
37 *type = CRYPTO_APDU_CASE_4E; in get_apdu_type()
53 enum crypto_apdu_type type = CRYPTO_APDU_CASE_NO_HINT; in invoke_command() local
64 ret = get_apdu_type(params[0].value.a, &type); in invoke_command()
[all …]
A Dbenchmark.c39 static TEE_Result alloc_benchmark_buffer(uint32_t type, in alloc_benchmark_buffer() argument
46 (TEE_PARAM_TYPE_GET(type, 2) != TEE_PARAM_TYPE_NONE) || in alloc_benchmark_buffer()
47 (TEE_PARAM_TYPE_GET(type, 3) != TEE_PARAM_TYPE_NONE)) { in alloc_benchmark_buffer()
108 static TEE_Result get_benchmark_memref(uint32_t type, in get_benchmark_memref() argument
112 (TEE_PARAM_TYPE_GET(type, 1) != TEE_PARAM_TYPE_NONE) || in get_benchmark_memref()
113 (TEE_PARAM_TYPE_GET(type, 2) != TEE_PARAM_TYPE_NONE) || in get_benchmark_memref()
114 (TEE_PARAM_TYPE_GET(type, 3) != TEE_PARAM_TYPE_NONE)) { in get_benchmark_memref()
136 static TEE_Result unregister_benchmark(uint32_t type, in unregister_benchmark() argument
142 (TEE_PARAM_TYPE_GET(type, 1) != TEE_PARAM_TYPE_NONE) || in unregister_benchmark()
143 (TEE_PARAM_TYPE_GET(type, 2) != TEE_PARAM_TYPE_NONE) || in unregister_benchmark()
[all …]
A Dstats.c43 static TEE_Result get_alloc_stats(uint32_t type, TEE_Param p[TEE_NUM_PARAMS]) in get_alloc_stats() argument
60 TEE_PARAM_TYPE_NONE) != type) { in get_alloc_stats()
120 static TEE_Result get_pager_stats(uint32_t type, TEE_Param p[TEE_NUM_PARAMS]) in get_pager_stats() argument
127 TEE_PARAM_TYPE_NONE) != type) { in get_pager_stats()
143 static TEE_Result get_memleak_stats(uint32_t type, in get_memleak_stats() argument
148 TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE) != type) in get_memleak_stats()
156 static TEE_Result get_user_ta_stats(uint32_t type, in get_user_ta_stats() argument
164 TEE_PARAM_TYPE_NONE) != type) in get_user_ta_stats()
/optee_os-3.20.0/ta/pkcs11/src/
A Dattributes.h256 uint32_t type = 0; in get_key_type() local
257 uint32_t size = sizeof(type); in get_key_type()
259 if (get_attribute(head, PKCS11_CKA_KEY_TYPE, &type, &size)) in get_key_type()
262 return type; in get_key_type()
275 uint32_t type = 0; in get_certificate_type() local
277 if (get_u32_attribute(head, PKCS11_CKA_CERTIFICATE_TYPE, &type)) in get_certificate_type()
280 return type; in get_certificate_type()
292 uint32_t type = 0; in get_mechanism_type() local
293 uint32_t size = sizeof(type); in get_mechanism_type()
295 if (get_attribute(head, PKCS11_CKA_MECHANISM_TYPE, &type, &size)) in get_mechanism_type()
[all …]
/optee_os-3.20.0/core/include/kernel/
A Ddt_driver.h63 void *data, enum dt_driver_type type);
86 enum dt_driver_type type,
108 dt_driver_get_provider_by_node(int nodeoffset, enum dt_driver_type type);
114 dt_driver_get_provider_by_phandle(uint32_t phandle, enum dt_driver_type type);
135 enum dt_driver_type type);
147 enum dt_driver_type type);
/optee_os-3.20.0/core/drivers/crypto/se050/adaptors/apis/
A Dapdu.c76 (SE05x_INS_t)type, in set_rsa_public()
92 (SE05x_INS_t)type, in set_rsa_public()
123 (SE05x_INS_t)type, in set_rsa_private_rsa()
139 (SE05x_INS_t)type, in set_rsa_private_rsa()
171 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
188 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
205 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
222 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
239 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
270 (SE05x_INS_t)type, in set_rsa_keypair_rsa()
[all …]
/optee_os-3.20.0/lib/libutee/
A Dtee_api_property.c77 *type = ep->type; in propget_get_ext_prop()
78 switch (*type) { in propget_get_ext_prop()
186 *type = prop_type; in propget_get_property()
196 enum user_ta_prop_type type; in TEE_GetPropertyAsString() local
233 switch (type) { in TEE_GetPropertyAsString()
295 enum user_ta_prop_type type; in TEE_GetPropertyAsBool() local
323 enum user_ta_prop_type type; in TEE_GetPropertyAsU32() local
330 type = USER_TA_PROP_TYPE_U32; in TEE_GetPropertyAsU32()
349 enum user_ta_prop_type type; in TEE_GetPropertyAsBinaryBlock() local
374 enum user_ta_prop_type type; in TEE_GetPropertyAsUUID() local
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_get_key.c16 int ecc_get_key(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_get_key() argument
26 compressed = type & PK_COMPRESSED ? 1 : 0; in ecc_get_key()
27 type &= ~PK_COMPRESSED; in ecc_get_key()
29 if (type == PK_PUBLIC) { in ecc_get_key()
34 else if (type == PK_PRIVATE) { in ecc_get_key()
35 …if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_M… in ecc_get_key()
A Decc_set_key.c8 int ecc_set_key(const unsigned char *in, unsigned long inlen, int type, ecc_key *key) in ecc_set_key() argument
21 if (type == PK_PRIVATE) { in ecc_set_key()
33 else if (type == PK_PUBLIC) { in ecc_set_key()
48 key->type = type; in ecc_set_key()
A Decc_export.c21 int ecc_export(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_export() argument
32 if (key->type != PK_PRIVATE && type == PK_PRIVATE) { in ecc_export()
39 if (type == PK_PRIVATE) { in ecc_export()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_encode_sequence_multi.c24 ltc_asn1_type type; in der_encode_sequence_multi() local
37 type = (ltc_asn1_type)va_arg(args, int); in der_encode_sequence_multi()
39 if (type == LTC_ASN1_EOL) { in der_encode_sequence_multi()
48 switch (type) { in der_encode_sequence_multi()
93 type = (ltc_asn1_type)va_arg(args, int); in der_encode_sequence_multi()
95 if (type == LTC_ASN1_EOL) { in der_encode_sequence_multi()
102 switch (type) { in der_encode_sequence_multi()
119 LTC_SET_ASN1(list, x++, type, data, size); in der_encode_sequence_multi()
A Dder_decode_sequence_multi.c26 ltc_asn1_type type; in s_der_decode_sequence_va() local
36 type = (ltc_asn1_type)va_arg(a1, int); in s_der_decode_sequence_va()
38 if (type == LTC_ASN1_EOL) { in s_der_decode_sequence_va()
47 switch (type) { in s_der_decode_sequence_va()
89 type = (ltc_asn1_type)va_arg(a2, int); in s_der_decode_sequence_va()
93 if (type == LTC_ASN1_EOL) { in s_der_decode_sequence_va()
97 switch (type) { in s_der_decode_sequence_va()
116 LTC_SET_ASN1(list, x++, type, data, size); in s_der_decode_sequence_va()
A Dder_decode_sequence_flexi.c73 if (l->type != LTC_ASN1_EOL) { in s_der_decode_sequence_flexi()
102 if (l->type == LTC_ASN1_CUSTOM_TYPE) { in s_der_decode_sequence_flexi()
126 if (l->type != LTC_ASN1_BOOLEAN) { in s_der_decode_sequence_flexi()
145 if (l->type != LTC_ASN1_INTEGER) { in s_der_decode_sequence_flexi()
168 if (l->type != LTC_ASN1_BIT_STRING) { in s_der_decode_sequence_flexi()
191 if (l->type != LTC_ASN1_OCTET_STRING) { in s_der_decode_sequence_flexi()
214 if (l->type != LTC_ASN1_NULL) { in s_der_decode_sequence_flexi()
265 if (l->type != LTC_ASN1_UTF8_STRING) { in s_der_decode_sequence_flexi()
332 if (l->type != LTC_ASN1_IA5_STRING) { in s_der_decode_sequence_flexi()
355 if (l->type != LTC_ASN1_UTCTIME) { in s_der_decode_sequence_flexi()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_export.c20 int rsa_export(unsigned char *out, unsigned long *outlen, int type, const rsa_key *key) in rsa_export() argument
28 std = type & PK_STD; in rsa_export()
29 type &= ~PK_STD; in rsa_export()
31 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in rsa_export()
35 if (type == PK_PRIVATE) { in rsa_export()
53 if (type == PK_PUBLIC) { in rsa_export()
/optee_os-3.20.0/core/kernel/
A Ddt_driver.c33 enum dt_driver_type type; member
55 enum dt_driver_type type; member
104 switch (type) { in assert_type_is_valid()
149 prv->type = type; in dt_driver_register_provider()
171 switch (type) { in fdt_get_dt_driver_cells()
203 if (prv->nodeoffset == nodeoffset && prv->type == type) in dt_driver_get_provider_by_node()
215 if (prv->phandle == phandle && prv->type == type) in dt_driver_get_provider_by_phandle()
392 elt->type = dt_drv->type; in alloc_elt_and_probe()
406 if (drv->type != type) in probe_device_by_compat()
515 candidate->type != elt->type) in driver_probe_compare()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ssh/
A Dssh_decode_sequence_multi.c24 ssh_data_type type; in ssh_decode_sequence_multi() local
40 while ((type = (ssh_data_type)va_arg(args, int)) != LTC_SSHDATA_EOL) { in ssh_decode_sequence_multi()
42 if (type == LTC_SSHDATA_STRING || in ssh_decode_sequence_multi()
43 type == LTC_SSHDATA_NAMELIST || in ssh_decode_sequence_multi()
44 type == LTC_SSHDATA_MPINT) in ssh_decode_sequence_multi()
55 switch (type) { in ssh_decode_sequence_multi()
96 switch (type) { in ssh_decode_sequence_multi()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c20 int dsa_export(unsigned char *out, unsigned long *outlen, int type, const dsa_key *key) in dsa_export() argument
30 std = type & PK_STD; in dsa_export()
31 type &= ~PK_STD; in dsa_export()
33 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in dsa_export()
37 if (type == PK_PRIVATE) { in dsa_export()
59 if (type == PK_PUBLIC) { in dsa_export()
/optee_os-3.20.0/core/include/mm/
A Dcore_mmu.h151 return names[type]; in teecore_memtype_name()
162 enum teecore_memtypes type; member
185 { .name = (_name), .type = (_type), .addr = (_addr), \
198 #define register_phys_mem(type, addr, size) \ argument
199 __register_memory(#addr, (type), (addr), (size), \
202 #define register_phys_mem_ul(type, addr, size) \ argument
203 __register_memory_ul(#addr, (type), (addr), (size), \
207 #define register_phys_mem_pgdir(type, addr, size) \ argument
477 return mm->type == MEM_AREA_RES_VASPACE || in core_mmu_is_dynamic_vaspace()
478 mm->type == MEM_AREA_SHM_VASPACE; in core_mmu_is_dynamic_vaspace()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_depad.c21 enum padding_type type; in padding_depad() local
28 type = mode & LTC_PAD_MASK; in padding_depad()
30 if (type < LTC_PAD_ONE_AND_ZERO) { in padding_depad()
42 switch (type) { in padding_depad()
76 if (type == LTC_PAD_ZERO_ALWAYS) { in padding_depad()
/optee_os-3.20.0/lib/libutee/include/
A Darm64_user_sysreg.h15 #define DEFINE_REG_READ_FUNC_(reg, type, asmreg) \ argument
16 static inline __noprof type read_##reg(void) \
24 #define DEFINE_REG_WRITE_FUNC_(reg, type, asmreg) \ argument
25 static inline __noprof void write_##reg(type val) \
/optee_os-3.20.0/lib/libutils/isoc/include/sys/
A Dqueue.h89 #define LIST_HEAD(name, type) \ argument
97 #define LIST_ENTRY(type) \ argument
185 #define SLIST_HEAD(name, type) \ argument
193 #define SLIST_ENTRY(type) \ argument
255 #define STAILQ_HEAD(name, type) \ argument
264 #define STAILQ_ENTRY(type) \ argument
347 #define SIMPLEQ_HEAD(name, type) \ argument
356 #define SIMPLEQ_ENTRY(type) \ argument
425 #define TAILQ_HEAD(name, type) _TAILQ_HEAD(name, struct type,) argument
435 #define TAILQ_ENTRY(type) _TAILQ_ENTRY(struct type,) argument
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_public_key_from_certificate.c14 && ((l)->type == LTC_ASN1_SEQUENCE) \
16 && ((l)->child->type == LTC_ASN1_OBJECT_IDENTIFIER) \
18 && ((l)->next->type == LTC_ASN1_BIT_STRING)
64 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate()
66 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate()
81 if ((l->type == LTC_ASN1_SEQUENCE) in x509_decode_public_key_from_certificate()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pbes/
A Dpbes.c24 LTC_ARGCHK(arg->type.kdf != NULL); in pbes_decrypt()
28 hid = find_hash(arg->type.h); in pbes_decrypt()
30 cid = find_cipher(arg->type.c); in pbes_decrypt()
33 klen = arg->type.keylen; in pbes_decrypt()
48 klen += arg->type.blocklen; in pbes_decrypt()
53 …if ((err = arg->type.kdf(arg->pwd, arg->pwdlen, arg->salt->data, arg->salt->size, arg->iterations,… in pbes_decrypt()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Drand_prime.c16 int err, res, type; in rand_prime() local
23 type = USE_BBS; in rand_prime()
26 type = 0; in rand_prime()
54 buf[len-1] |= 0x01 | ((type & USE_BBS) ? 0x02 : 0x00); in rand_prime()

Completed in 22 milliseconds

123456789