| /optee_examples/aes/ta/ |
| A D | aes_ta.c | 118 struct aes_cipher *sess; in alloc_resources() local 156 sess->algo, in alloc_resources() 157 sess->mode, in alloc_resources() 171 sess->key_size * 8, in alloc_resources() 202 res = TEE_SetOperationKey(sess->op_handle, sess->key_handle); in alloc_resources() 233 struct aes_cipher *sess; in set_aes_key() local 283 res = TEE_SetOperationKey(sess->op_handle, sess->key_handle); in set_aes_key() 303 struct aes_cipher *sess; in reset_aes_iv() local 386 sess = TEE_Malloc(sizeof(*sess), 0); in TA_OpenSessionEntryPoint() 387 if (!sess) in TA_OpenSessionEntryPoint() [all …]
|
| /optee_examples/hello_world/host/ |
| A D | main.c | 42 TEEC_Session sess; in main() local 56 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main() 86 res = TEEC_InvokeCommand(&sess, TA_HELLO_WORLD_CMD_INC_VALUE, &op, in main() 101 TEEC_CloseSession(&sess); in main()
|
| /optee_examples/plugins/host/ |
| A D | main.c | 27 TEEC_Session sess = { }; in main() local 39 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in main() 61 res = TEEC_InvokeCommand(&sess, PLUGIN_TA_PING, &op, in main() 76 TEEC_CloseSession(&sess); in main()
|
| /optee_examples/random/host/ |
| A D | main.c | 42 TEEC_Session sess; in main() local 58 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main() 89 res = TEEC_InvokeCommand(&sess, TA_RANDOM_CMD_GENERATE, in main() 108 TEEC_CloseSession(&sess); in main()
|
| /optee_examples/hotp/host/ |
| A D | main.c | 44 TEEC_Session sess; in main() local 66 res = TEEC_OpenSession(&ctx, &sess, &uuid, in main() 79 res = TEEC_InvokeCommand(&sess, TA_HOTP_CMD_REGISTER_SHARED_KEY, in main() 94 res = TEEC_InvokeCommand(&sess, TA_HOTP_CMD_GET_HOTP, &op, in main() 112 TEEC_CloseSession(&sess); in main()
|
| /optee_examples/acipher/host/ |
| A D | main.c | 67 TEEC_Session sess; in main() local 81 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in main() 91 res = TEEC_InvokeCommand(&sess, TA_ACIPHER_CMD_GEN_KEY, &op, &eo); in main() 102 res = TEEC_InvokeCommand(&sess, TA_ACIPHER_CMD_ENCRYPT, &op, &eo); in main() 111 res = TEEC_InvokeCommand(&sess, TA_ACIPHER_CMD_ENCRYPT, &op, &eo); in main()
|
| /optee_examples/aes/host/ |
| A D | main.c | 48 TEEC_Session sess; member 63 res = TEEC_OpenSession(&ctx->ctx, &ctx->sess, &uuid, in prepare_tee_session() 72 TEEC_CloseSession(&ctx->sess); in terminate_tee_session() 93 res = TEEC_InvokeCommand(&ctx->sess, TA_AES_CMD_PREPARE, in prepare_aes() 113 res = TEEC_InvokeCommand(&ctx->sess, TA_AES_CMD_SET_KEY, in set_key() 132 res = TEEC_InvokeCommand(&ctx->sess, TA_AES_CMD_SET_IV, in set_iv() 154 res = TEEC_InvokeCommand(&ctx->sess, TA_AES_CMD_CIPHER, in cipher_buffer()
|
| /optee_examples/secure_storage/host/ |
| A D | main.c | 41 TEEC_Session sess; member 56 res = TEEC_OpenSession(&ctx->ctx, &ctx->sess, &uuid, in prepare_tee_session() 65 TEEC_CloseSession(&ctx->sess); 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()
|