Home
last modified time | relevance | path

Searched refs:res (Results 1 – 12 of 12) sorted by relevance

/optee_examples/secure_storage/host/
A Dmain.c48 TEEC_Result res; in prepare_tee_session() local
60 res, origin); in prepare_tee_session()
74 TEEC_Result res; in read_secure_object() local
91 switch (res) { in read_secure_object()
100 return res; in read_secure_object()
108 TEEC_Result res; in write_secure_object() local
128 switch (res) { in write_secure_object()
135 return res; in write_secure_object()
156 switch (res) { in delete_secure_object()
164 return res; in delete_secure_object()
[all …]
/optee_examples/hello_world/host/
A Dmain.c40 TEEC_Result res; in main() local
48 res = TEEC_InitializeContext(NULL, &ctx); in main()
49 if (res != TEEC_SUCCESS) in main()
50 errx(1, "TEEC_InitializeContext failed with code 0x%x", res); in main()
56 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main()
58 if (res != TEEC_SUCCESS) in main()
60 res, err_origin); in main()
86 res = TEEC_InvokeCommand(&sess, TA_HELLO_WORLD_CMD_INC_VALUE, &op, in main()
88 if (res != TEEC_SUCCESS) in main()
90 res, err_origin); in main()
/optee_examples/plugins/host/
A Dmain.c25 TEEC_Result res = TEEC_SUCCESS; in main() local
33 res = TEEC_InitializeContext(NULL, &ctx); in main()
34 if (res != TEEC_SUCCESS) in main()
36 res); in main()
39 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in main()
41 if (res != TEEC_SUCCESS) in main()
43 res, err_origin); in main()
61 res = TEEC_InvokeCommand(&sess, PLUGIN_TA_PING, &op, in main()
65 i + 1, (res == TEEC_SUCCESS) ? "success" : "failed", in main()
66 res, err_origin); in main()
/optee_examples/random/host/
A Dmain.c40 TEEC_Result res; in main() local
50 res = TEEC_InitializeContext(NULL, &ctx); in main()
51 if (res != TEEC_SUCCESS) in main()
52 errx(1, "TEEC_InitializeContext failed with code 0x%x", res); in main()
58 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main()
60 if (res != TEEC_SUCCESS) in main()
62 res, err_origin); in main()
89 res = TEEC_InvokeCommand(&sess, TA_RANDOM_CMD_GENERATE, in main()
91 if (res != TEEC_SUCCESS) in main()
93 res, err_origin); in main()
/optee_examples/acipher/ta/
A Dacipher_ta.c19 TEE_Result res; in cmd_gen_key() local
34 if (res) { in cmd_gen_key()
36 return res; in cmd_gen_key()
40 if (res) { in cmd_gen_key()
44 return res; in cmd_gen_key()
74 if (res) { in cmd_enc()
76 return res; in cmd_enc()
86 if (res) { in cmd_enc()
92 if (res) { in cmd_enc()
99 if (res) { in cmd_enc()
[all …]
/optee_examples/hotp/host/
A Dmain.c43 TEEC_Result res; in main() local
62 res = TEEC_InitializeContext(NULL, &ctx); in main()
63 if (res != TEEC_SUCCESS) in main()
66 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main()
68 if (res != TEEC_SUCCESS) in main()
70 res, err_origin); in main()
81 if (res != TEEC_SUCCESS) { in main()
84 res, err_origin); in main()
94 res = TEEC_InvokeCommand(&sess, TA_HOTP_CMD_GET_HOTP, &op, in main()
96 if (res != TEEC_SUCCESS) { in main()
[all …]
/optee_examples/secure_storage/ta/
A Dsecure_storage_ta.c41 TEE_Result res; in delete_object() local
66 if (res != TEE_SUCCESS) { in delete_object()
69 return res; in delete_object()
75 return res; in delete_object()
86 TEE_Result res; in create_raw_object() local
130 return res; in create_raw_object()
142 return res; in create_raw_object()
154 TEE_Result res; in read_raw_object() local
192 return res; in read_raw_object()
213 if (res == TEE_SUCCESS) in read_raw_object()
[all …]
/optee_examples/acipher/host/
A Dmain.c57 static void teec_err(TEEC_Result res, uint32_t eo, const char *str) in teec_err() argument
64 TEEC_Result res; in main() local
77 res = TEEC_InitializeContext(NULL, &ctx); in main()
78 if (res) in main()
79 errx(1, "TEEC_InitializeContext(NULL, x): %#" PRIx32, res); in main()
83 if (res) in main()
84 teec_err(res, eo, "TEEC_OpenSession(TEEC_LOGIN_PUBLIC)"); in main()
92 if (res) in main()
93 teec_err(res, eo, "TEEC_InvokeCommand(TA_ACIPHER_CMD_GEN_KEY)"); in main()
104 teec_err(res, eo, "TEEC_InvokeCommand(TA_ACIPHER_CMD_ENCRYPT)"); in main()
[all …]
/optee_examples/hotp/ta/
A Dhotp_ta.c64 if (res != TEE_SUCCESS) { in hmac_sha1()
65 EMSG("0x%08x", res); in hmac_sha1()
75 if (res != TEE_SUCCESS) { in hmac_sha1()
76 EMSG("0x%08x", res); in hmac_sha1()
88 if (res != TEE_SUCCESS) { in hmac_sha1()
89 EMSG("0x%08x", res); in hmac_sha1()
95 if (res != TEE_SUCCESS) { in hmac_sha1()
96 EMSG("0x%08x", res); in hmac_sha1()
111 return res; in hmac_sha1()
152 return res; in register_shared_key()
[all …]
/optee_examples/aes/host/
A Dmain.c55 TEEC_Result res; in prepare_tee_session() local
59 if (res != TEEC_SUCCESS) in prepare_tee_session()
67 res, origin); in prepare_tee_session()
80 TEEC_Result res; in prepare_aes() local
97 res, origin); in prepare_aes()
104 TEEC_Result res; in set_key() local
117 res, origin); in set_key()
124 TEEC_Result res; in set_iv() local
136 res, origin); in set_iv()
143 TEEC_Result res; in cipher_buffer() local
[all …]
/optee_examples/aes/ta/
A Daes_ta.c120 TEE_Result res; in alloc_resources() local
132 if (res != TEE_SUCCESS) in alloc_resources()
133 return res; in alloc_resources()
137 return res; in alloc_resources()
141 return res; in alloc_resources()
208 return res; in alloc_resources()
219 return res; in alloc_resources()
235 TEE_Result res; in set_aes_key() local
279 return res; in set_aes_key()
286 return res; in set_aes_key()
[all …]
/optee_examples/plugins/ta/
A Dplugin_ta.c46 TEE_Result res = TEE_SUCCESS; in syslog_plugin_ping() local
58 res = tee_invoke_supp_plugin(&syslog_uuid, TO_SYSLOG_CMD, LOG_INFO, in syslog_plugin_ping()
60 if (res) in syslog_plugin_ping()
61 EMSG("invoke plugin failed with code 0x%x", res); in syslog_plugin_ping()
63 return res; in syslog_plugin_ping()

Completed in 20 milliseconds