Home
last modified time | relevance | path

Searched refs:op_handle (Results 1 – 2 of 2) sorted by relevance

/optee_examples/aes/ta/
A Daes_ta.c151 if (sess->op_handle != TEE_HANDLE_NULL) in alloc_resources()
152 TEE_FreeOperation(sess->op_handle); in alloc_resources()
161 sess->op_handle = TEE_HANDLE_NULL; in alloc_resources()
211 if (sess->op_handle != TEE_HANDLE_NULL) in alloc_resources()
212 TEE_FreeOperation(sess->op_handle); in alloc_resources()
213 sess->op_handle = TEE_HANDLE_NULL; in alloc_resources()
282 TEE_ResetOperation(sess->op_handle); in set_aes_key()
353 if (sess->op_handle == TEE_HANDLE_NULL) in cipher_buffer()
391 sess->op_handle = TEE_HANDLE_NULL; in TA_OpenSessionEntryPoint()
410 if (sess->op_handle != TEE_HANDLE_NULL) in TA_CloseSessionEntryPoint()
[all …]
/optee_examples/hotp/ta/
A Dhotp_ta.c48 TEE_OperationHandle op_handle = TEE_HANDLE_NULL; in hmac_sha1() local
62 res = TEE_AllocateOperation(&op_handle, TEE_ALG_HMAC_SHA1, TEE_MODE_MAC, in hmac_sha1()
94 res = TEE_SetOperationKey(op_handle, key_handle); in hmac_sha1()
101 TEE_MACInit(op_handle, NULL, 0); in hmac_sha1()
102 TEE_MACUpdate(op_handle, in, inlen); in hmac_sha1()
103 res = TEE_MACComputeFinal(op_handle, NULL, 0, out, outlen); in hmac_sha1()
105 if (op_handle != TEE_HANDLE_NULL) in hmac_sha1()
106 TEE_FreeOperation(op_handle); in hmac_sha1()

Completed in 4 milliseconds