Home
last modified time | relevance | path

Searched refs:TSS2_TCTI_CONTEXT (Results 1 – 25 of 62) sorted by relevance

123

/external/tpm2-tss/test/unit/
Dtctildr-tcti.c42 TSS2_TCTI_CONTEXT **tcti, in __wrap_tctildr_get_tcti()
47 *tcti= mock_type (TSS2_TCTI_CONTEXT*); in __wrap_tctildr_get_tcti()
55 tctildr_mock_transmit (TSS2_TCTI_CONTEXT *context, in tctildr_mock_transmit()
62 tctildr_mock_receive (TSS2_TCTI_CONTEXT *context, in tctildr_mock_receive()
70 tctildr_mock_cancel (TSS2_TCTI_CONTEXT *context) in tctildr_mock_cancel()
75 tctildr_mock_get_poll_handles (TSS2_TCTI_CONTEXT *context, in tctildr_mock_get_poll_handles()
82 tctildr_mock_set_locality (TSS2_TCTI_CONTEXT *context, in tctildr_mock_set_locality()
88 tctildr_mock_make_sticky (TSS2_TCTI_CONTEXT *context, in tctildr_mock_make_sticky()
114 ldr_ctx->tcti = (TSS2_TCTI_CONTEXT*)tmp; in tctildr_setup()
131 TSS2_TCTI_CONTEXT *context = (TSS2_TCTI_CONTEXT*)*state; in tctildr_teardown()
[all …]
Dtcti-device.c88 TSS2_TCTI_CONTEXT *ctx = NULL; in tcti_device_init_conf_fail()
107 TSS2_TCTI_CONTEXT *ctx = NULL; in tcti_device_init_conf_default_fail()
127 TSS2_TCTI_CONTEXT *ctx = NULL; in tcti_device_init_conf_default_success()
174 TSS2_TCTI_CONTEXT *ctx = NULL; in tcti_device_setup()
191 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_device_teardown()
208 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_device_get_poll_handles_test()
226 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_device_receive_null_size_test()
253 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_device_receive_success()
281 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_device_receive_eof_test()
310 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_device_receive_buffer_lt_response()
[all …]
Desys-tcti-rcs.c169 TSS2_RC(*finalize) (TSS2_TCTI_CONTEXT * tctiContext);
170 TSS2_RC(*cancel) (TSS2_TCTI_CONTEXT * tctiContext);
171 TSS2_RC(*getPollHandles) (TSS2_TCTI_CONTEXT * tctiContext,
174 TSS2_RC(*setLocality) (TSS2_TCTI_CONTEXT * tctiContext, uint8_t locality);
179 tcti_tryagainerror_cast(TSS2_TCTI_CONTEXT * ctx) in tcti_tryagainerror_cast()
190 tcti_tryagainerror_transmit(TSS2_TCTI_CONTEXT * tctiContext, in tcti_tryagainerror_transmit()
208 tcti_tryagainerror_receive(TSS2_TCTI_CONTEXT * tctiContext, in tcti_tryagainerror_receive()
224 tcti_tryagainerror_finalize(TSS2_TCTI_CONTEXT * tctiContext) in tcti_tryagainerror_finalize()
235 tcti_tryagainerror_initialize(TSS2_TCTI_CONTEXT * tctiContext, size_t * contextSize) in tcti_tryagainerror_initialize()
268 TSS2_TCTI_CONTEXT *tcti = malloc(size); in setup()
[all …]
Desys-tpm-rcs.c169 TSS2_RC(*finalize) (TSS2_TCTI_CONTEXT * tctiContext);
170 TSS2_RC(*cancel) (TSS2_TCTI_CONTEXT * tctiContext);
171 TSS2_RC(*getPollHandles) (TSS2_TCTI_CONTEXT * tctiContext,
174 TSS2_RC(*setLocality) (TSS2_TCTI_CONTEXT * tctiContext, uint8_t locality);
178 tcti_tpmerror_transmit(TSS2_TCTI_CONTEXT * tctiContext, in tcti_tpmerror_transmit()
195 tcti_tpmerror_receive(TSS2_TCTI_CONTEXT * tctiContext, in tcti_tpmerror_receive()
210 tcti_tpmerror_finalize(TSS2_TCTI_CONTEXT * tctiContext) in tcti_tpmerror_finalize()
216 tcti_tpmerror_initialize(TSS2_TCTI_CONTEXT * tctiContext, size_t * contextSize) in tcti_tpmerror_initialize()
248 TSS2_TCTI_CONTEXT *tcti = malloc(size); in setup()
322 TSS2_TCTI_CONTEXT *tcti; in teardown()
[all …]
Dtctildr.c28 TSS2_TCTI_CONTEXT *tctiContext, in local_init()
50 TSS2_TCTI_CONTEXT *tcti_ctx = NULL; in tcti_from_init_init_fail()
82 TSS2_TCTI_CONTEXT **tcti, in __wrap_tctildr_get_tcti()
87 *tcti= mock_type (TSS2_TCTI_CONTEXT*); in __wrap_tctildr_get_tcti()
99 TSS2_TCTI_CONTEXT *tcti_ctx = NULL; in tcti_from_init_calloc_fail()
109 TSS2_TCTI_CONTEXT *tcti_ctx_ptr = NULL; in tcti_from_init_second_init_fail()
122 TSS2_TCTI_CONTEXT *tcti_ctx_ptr = NULL; in tcti_from_init_success()
138 TSS2_TCTI_CONTEXT *tcti_ctx_ptr = NULL; in tcti_from_info_info_null()
147 TSS2_TCTI_CONTEXT *tcti_ctx_ptr = NULL; in tcti_from_info_info_fail()
158 TSS2_TCTI_CONTEXT *tcti_ctx_ptr = NULL; in tcti_from_info_success()
[all …]
Dtcti-mssim.c209 static TSS2_TCTI_CONTEXT*
215 TSS2_TCTI_CONTEXT *ctx = NULL; in tcti_socket_init_from_conf()
259 TSS2_TCTI_CONTEXT *ctx = tcti_socket_init_from_conf (NULL); in tcti_socket_init_null_conf_test()
270 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_socket_teardown()
285 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_mssim_get_poll_handles_test()
298 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_socket_receive_null_size_test()
321 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_socket_receive_success_test()
360 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_socket_receive_size_success_test()
406 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_mssim_receive_eof_first_read_test()
431 TSS2_TCTI_CONTEXT *ctx = (TSS2_TCTI_CONTEXT*)*state; in tcti_mssim_receive_eof_second_read_test()
[all …]
Desys-resubmissions.c169 TSS2_RC(*finalize) (TSS2_TCTI_CONTEXT * tctiContext);
170 TSS2_RC(*cancel) (TSS2_TCTI_CONTEXT * tctiContext);
171 TSS2_RC(*getPollHandles) (TSS2_TCTI_CONTEXT * tctiContext,
174 TSS2_RC(*setLocality) (TSS2_TCTI_CONTEXT * tctiContext, uint8_t locality);
180 tcti_yielder_cast(TSS2_TCTI_CONTEXT * ctx) in tcti_yielder_cast()
191 tcti_yielder_transmit(TSS2_TCTI_CONTEXT * tctiContext, in tcti_yielder_transmit()
217 tcti_yielder_receive(TSS2_TCTI_CONTEXT * tctiContext, in tcti_yielder_receive()
229 tcti_yielder_finalize(TSS2_TCTI_CONTEXT * tctiContext) in tcti_yielder_finalize()
235 tcti_yielder_initialize(TSS2_TCTI_CONTEXT * tctiContext, size_t * contextSize) in tcti_yielder_initialize()
268 TSS2_TCTI_CONTEXT *tcti = malloc(size); in setup()
[all …]
Dtctildr-nodl.c28 __wrap_Tss2_Tcti_Device_Init(TSS2_TCTI_CONTEXT *tctiContext, size_t *size, in __wrap_Tss2_Tcti_Device_Init()
35 __wrap_Tss2_Tcti_Mssim_Init(TSS2_TCTI_CONTEXT *tctiContext, size_t *size, in __wrap_Tss2_Tcti_Mssim_Init()
44 TSS2_TCTI_CONTEXT **tcti) in __wrap_tcti_from_init()
47 *tcti = mock_type (TSS2_TCTI_CONTEXT*); in __wrap_tcti_from_init()
62 TSS2_TCTI_CONTEXT *tcti_ctx = NULL; in test_tctildr_get_default_all_fail()
89 TSS2_TCTI_CONTEXT *tcti_ctx = NULL; in test_get_tcti_default_success()
101 TSS2_TCTI_CONTEXT *tcti_ctx = NULL; in test_get_tcti_match_second()
113 TSS2_TCTI_CONTEXT *tcti_ctx = NULL; in test_get_tcti_match_none()
Desys-getpollhandles.c32 TSS2_RC(*finalize) (TSS2_TCTI_CONTEXT * tctiContext);
33 TSS2_RC(*cancel) (TSS2_TCTI_CONTEXT * tctiContext);
34 TSS2_RC(*getPollHandles) (TSS2_TCTI_CONTEXT * tctiContext,
37 TSS2_RC(*setLocality) (TSS2_TCTI_CONTEXT * tctiContext, uint8_t locality);
47 tcti_fake_getpollhandles(TSS2_TCTI_CONTEXT * tctiContext, in tcti_fake_getpollhandles()
62 tcti_fake_initialize(TSS2_TCTI_CONTEXT * tctiContext, size_t * contextSize) in tcti_fake_initialize()
95 TSS2_TCTI_CONTEXT *tcti = malloc(size); in setup()
108 TSS2_TCTI_CONTEXT *tcti; in teardown()
Dsys-execute.c54 TSS2_TCTI_CONTEXT *tctiContext, in tcti_transmit()
80 TSS2_TCTI_CONTEXT *tctiContext, in tcti_receive()
113 TSS2_TCTI_CONTEXT *tcti_ctx = (TSS2_TCTI_CONTEXT *) &_tcti_v1_ctx; in setup()
Desys-nulltcti.c30 tcti_fake_finalize(TSS2_TCTI_CONTEXT *tctiContext) in tcti_fake_finalize()
37 TSS2_TCTI_CONTEXT **tcti) in __wrap_Tss2_TctiLdr_Initialize()
59 __wrap_Tss2_TctiLdr_Finalize (TSS2_TCTI_CONTEXT **tcti) in __wrap_Tss2_TctiLdr_Finalize()
/external/tpm2-tss/src/tss2-tcti/
Dtctildr.h27 TSS2_TCTI_CONTEXT *tcti;
33 TSS2_TCTI_CONTEXT **tcti);
37 TSS2_TCTI_CONTEXT **tcti);
44 TSS2_TCTI_CONTEXT *tctiContext,
49 TSS2_TCTI_CONTEXT *tctiContext,
55 TSS2_TCTI_CONTEXT *tctiContext);
58 TSS2_TCTI_CONTEXT *tctiContext);
61 TSS2_TCTI_CONTEXT *tctiContext,
66 TSS2_TCTI_CONTEXT *tctiContext,
70 TSS2_TCTI_CONTEXT *tctiContext,
[all …]
Dtctildr.c56 TSS2_TCTI_CONTEXT **tcti) in tcti_from_init()
71 *tcti = (TSS2_TCTI_CONTEXT *) calloc(1, size); in tcti_from_init()
93 TSS2_TCTI_CONTEXT **tcti) in tcti_from_info()
176 tctildr_context_cast (TSS2_TCTI_CONTEXT *ctx) in tctildr_context_cast()
185 TSS2_TCTI_CONTEXT *tctiContext, in tctildr_transmit()
197 TSS2_TCTI_CONTEXT *tctiContext, in tctildr_receive()
213 TSS2_TCTI_CONTEXT *tctiContext) in tctildr_cancel()
223 TSS2_TCTI_CONTEXT *tctiContext, in tctildr_get_poll_handles()
235 TSS2_TCTI_CONTEXT *tctiContext, in tctildr_set_locality()
246 TSS2_TCTI_CONTEXT *tctiContext, in tctildr_make_sticky()
[all …]
Dtcti-tbs.c37 tcti_tbs_context_cast (TSS2_TCTI_CONTEXT *tcti_ctx) in tcti_tbs_context_cast()
60 TSS2_TCTI_CONTEXT *tctiContext, in tcti_tbs_transmit()
109 TSS2_TCTI_CONTEXT *tctiContext, in tcti_tbs_receive()
188 TSS2_TCTI_CONTEXT *tctiContext) in tcti_tbs_finalize()
213 TSS2_TCTI_CONTEXT *tctiContext) in tcti_tbs_cancel()
230 TSS2_TCTI_CONTEXT *tctiContext, in tcti_tbs_get_poll_handles()
243 TSS2_TCTI_CONTEXT *tctiContext, in tcti_tbs_set_locality()
256 TSS2_TCTI_CONTEXT *tctiContext, in Tss2_Tcti_Tbs_Init()
Dtcti-device.c78 tcti_device_context_cast (TSS2_TCTI_CONTEXT *tcti_ctx) in tcti_device_context_cast()
100 TSS2_TCTI_CONTEXT *tctiContext, in tcti_device_transmit()
156 TSS2_TCTI_CONTEXT *tctiContext, in tcti_device_receive()
342 TSS2_TCTI_CONTEXT *tctiContext) in tcti_device_finalize()
356 TSS2_TCTI_CONTEXT *tctiContext) in tcti_device_cancel()
365 TSS2_TCTI_CONTEXT *tctiContext, in tcti_device_get_poll_handles()
400 TSS2_TCTI_CONTEXT *tctiContext, in tcti_device_set_locality()
423 TSS2_TCTI_CONTEXT *tctiContext, in Tss2_Tcti_Device_Init()
Dtcti-common.c28 tcti_common_context_cast (TSS2_TCTI_CONTEXT *ctx) in tcti_common_context_cast()
33 TSS2_TCTI_CONTEXT*
36 return (TSS2_TCTI_CONTEXT*)&ctx->v2; in tcti_common_down_cast()
91 TSS2_TCTI_CONTEXT *tctiContext, in tcti_make_sticky_not_implemented()
Dtcti-mssim.c39 tcti_mssim_context_cast (TSS2_TCTI_CONTEXT *tcti_ctx) in tcti_mssim_context_cast()
63 TSS2_TCTI_CONTEXT *tctiContext, in tcti_platform_command()
184 TSS2_TCTI_CONTEXT *tcti_ctx, in tcti_mssim_transmit()
228 TSS2_TCTI_CONTEXT *tctiContext) in tcti_mssim_cancel()
254 TSS2_TCTI_CONTEXT *tctiContext, in tcti_mssim_set_locality()
275 TSS2_TCTI_CONTEXT *tctiContext, in tcti_mssim_get_poll_handles()
287 TSS2_TCTI_CONTEXT *tctiContext) in tcti_mssim_finalize()
302 TSS2_TCTI_CONTEXT *tctiContext, in tcti_mssim_receive()
423 TSS2_TCTI_CONTEXT *tctiContext) in simulator_setup()
514 TSS2_TCTI_CONTEXT *tctiContext, in Tss2_Tcti_Mssim_Init()
Dtcti-common.h66 tcti_common_context_cast (TSS2_TCTI_CONTEXT *ctx);
71 TSS2_TCTI_CONTEXT*
109 TSS2_TCTI_CONTEXT *tctiContext,
/external/tpm2-tss/test/integration/
Dsapi-context-util.c30 TSS2_TCTI_CONTEXT *
35 TSS2_TCTI_CONTEXT *tcti_ctx; in tcti_device_init()
44 tcti_ctx = (TSS2_TCTI_CONTEXT *) calloc(1, size); in tcti_device_init()
68 TSS2_TCTI_CONTEXT *
73 TSS2_TCTI_CONTEXT *tcti_ctx; in tcti_socket_init()
83 tcti_ctx = (TSS2_TCTI_CONTEXT *) calloc(1, size); in tcti_socket_init()
106 TSS2_TCTI_CONTEXT *
111 TSS2_TCTI_CONTEXT *tcti_ctx; in tcti_fuzzing_init()
119 tcti_ctx = (TSS2_TCTI_CONTEXT *) calloc(1, size); in tcti_fuzzing_init()
141 sapi_init_from_tcti_ctx(TSS2_TCTI_CONTEXT * tcti_ctx) in sapi_init_from_tcti_ctx()
[all …]
Dmain-esapi.c45 TSS2_RC (*finalize) (TSS2_TCTI_CONTEXT *tctiContext);
46 TSS2_RC (*cancel) (TSS2_TCTI_CONTEXT *tctiContext);
47 TSS2_RC (*getPollHandles) (TSS2_TCTI_CONTEXT *tctiContext,
49 TSS2_RC (*setLocality) (TSS2_TCTI_CONTEXT *tctiContext, uint8_t locality);
50 TSS2_TCTI_CONTEXT *tctiInner;
55 tcti_proxy_cast (TSS2_TCTI_CONTEXT *ctx) in tcti_proxy_cast()
67 TSS2_TCTI_CONTEXT *tctiContext, in tcti_proxy_transmit()
105 TSS2_TCTI_CONTEXT *tctiContext, in tcti_proxy_receive()
141 TSS2_TCTI_CONTEXT *tctiContext) in tcti_proxy_finalize()
148 TSS2_TCTI_CONTEXT *tctiContext, in tcti_proxy_initialize()
[all …]
Dcontext-util.h19 TSS2_TCTI_CONTEXT *tcti_device_init(char const *device_name);
20 TSS2_TCTI_CONTEXT *tcti_socket_init(char const *address, uint16_t port);
21 TSS2_TCTI_CONTEXT *tcti_init_from_opts(test_opts_t * options);
23 TSS2_SYS_CONTEXT *sapi_init_from_tcti_ctx(TSS2_TCTI_CONTEXT * tcti_ctx);
24 void tcti_teardown(TSS2_TCTI_CONTEXT * tcti_context);
Dsapi-sys-initialize.int.c33 …rc = Tss2_Sys_Initialize( (TSS2_SYS_CONTEXT *)0, 10, (TSS2_TCTI_CONTEXT *)1, (TSS2_ABI_VERSION *)1… in test_invoke()
39 …rc = Tss2_Sys_Initialize( (TSS2_SYS_CONTEXT *)1, 10, (TSS2_TCTI_CONTEXT *)0, (TSS2_ABI_VERSION *)1… in test_invoke()
45 …rc = Tss2_Sys_Initialize( (TSS2_SYS_CONTEXT *)1, 10, (TSS2_TCTI_CONTEXT *)1, (TSS2_ABI_VERSION *)1… in test_invoke()
55 …ys_Initialize( (TSS2_SYS_CONTEXT *)1, Tss2_Sys_GetContextSize (0), (TSS2_TCTI_CONTEXT *)&tctiConte… in test_invoke()
65 …ys_Initialize( (TSS2_SYS_CONTEXT *)1, Tss2_Sys_GetContextSize (0), (TSS2_TCTI_CONTEXT *)&tctiConte… in test_invoke()
/external/tpm2-tss/include/tss2/
Dtss2_tcti.h140 typedef struct TSS2_TCTI_OPAQUE_CONTEXT_BLOB TSS2_TCTI_CONTEXT; typedef
147 TSS2_TCTI_CONTEXT *tctiContext,
151 TSS2_TCTI_CONTEXT *tctiContext,
156 TSS2_TCTI_CONTEXT *tctiContext);
158 TSS2_TCTI_CONTEXT *tctiContext);
160 TSS2_TCTI_CONTEXT *tctiContext,
164 TSS2_TCTI_CONTEXT *tctiContext,
167 TSS2_TCTI_CONTEXT *tctiContext,
171 TSS2_TCTI_CONTEXT *tctiContext,
Dtss2_tctildr.h15 Tss2_TctiLdr_Finalize (TSS2_TCTI_CONTEXT **context);
19 TSS2_TCTI_CONTEXT **context);
22 TSS2_TCTI_CONTEXT **context);
/external/tpm2-tss/test/fuzz/tcti/
Dtcti-fuzzing.c106 tcti_fuzzing_context_cast (TSS2_TCTI_CONTEXT *tcti_ctx) in tcti_fuzzing_context_cast()
129 TSS2_TCTI_CONTEXT *tcti_ctx, in tcti_fuzzing_transmit()
142 TSS2_TCTI_CONTEXT *tcti_ctx) in tcti_fuzzing_cancel()
150 TSS2_TCTI_CONTEXT *tcti_ctx, in tcti_fuzzing_set_locality()
160 TSS2_TCTI_CONTEXT *tcti_ctx, in tcti_fuzzing_get_poll_handles()
172 TSS2_TCTI_CONTEXT *tcti_ctx) in tcti_fuzzing_finalize()
179 TSS2_TCTI_CONTEXT *tcti_ctx, in tcti_fuzzing_receive()
242 TSS2_TCTI_CONTEXT *tcti_ctx, in Tss2_Tcti_Fuzzing_Init()

123