Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 7 of 7) sorted by relevance

/optee_examples/aes/host/
A Dmain.c47 TEEC_Context ctx; member
58 res = TEEC_InitializeContext(NULL, &ctx->ctx); in prepare_tee_session()
63 res = TEEC_OpenSession(&ctx->ctx, &ctx->sess, &uuid, in prepare_tee_session()
72 TEEC_CloseSession(&ctx->sess); in terminate_tee_session()
73 TEEC_FinalizeContext(&ctx->ctx); in terminate_tee_session()
163 struct test_ctx ctx; in main() local
171 prepare_tee_session(&ctx); in main()
174 prepare_aes(&ctx, ENCODE); in main()
182 set_iv(&ctx, iv, AES_BLOCK_SIZE); in main()
189 prepare_aes(&ctx, DECODE); in main()
[all …]
/optee_examples/secure_storage/host/
A Dmain.c40 TEEC_Context ctx; member
51 res = TEEC_InitializeContext(NULL, &ctx->ctx); in prepare_tee_session()
56 res = TEEC_OpenSession(&ctx->ctx, &ctx->sess, &uuid, in prepare_tee_session()
65 TEEC_CloseSession(&ctx->sess); in terminate_tee_session()
66 TEEC_FinalizeContext(&ctx->ctx); in terminate_tee_session()
88 res = TEEC_InvokeCommand(&ctx->sess, in read_secure_object()
122 res = TEEC_InvokeCommand(&ctx->sess, in write_secure_object()
152 res = TEEC_InvokeCommand(&ctx->sess, in delete_secure_object()
171 struct test_ctx ctx; in main() local
179 prepare_tee_session(&ctx); in main()
[all …]
/optee_examples/hello_world/host/
A Dmain.c41 TEEC_Context ctx; in main() local
48 res = TEEC_InitializeContext(NULL, &ctx); in main()
56 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main()
103 TEEC_FinalizeContext(&ctx); in main()
/optee_examples/plugins/host/
A Dmain.c26 TEEC_Context ctx = { }; in main() local
33 res = TEEC_InitializeContext(NULL, &ctx); in main()
39 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in main()
77 TEEC_FinalizeContext(&ctx); in main()
/optee_examples/random/host/
A Dmain.c41 TEEC_Context ctx; in main() local
50 res = TEEC_InitializeContext(NULL, &ctx); in main()
58 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main()
110 TEEC_FinalizeContext(&ctx); in main()
/optee_examples/hotp/host/
A Dmain.c41 TEEC_Context ctx; in main() local
62 res = TEEC_InitializeContext(NULL, &ctx); in main()
66 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main()
113 TEEC_FinalizeContext(&ctx); in main()
/optee_examples/acipher/host/
A Dmain.c66 TEEC_Context ctx; in main() local
77 res = TEEC_InitializeContext(NULL, &ctx); in main()
81 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in main()

Completed in 8 milliseconds