Home
last modified time | relevance | path

Searched refs:crypto_op (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/aes_perf/
H A Dta_aes_perf.c29 static TEE_OperationHandle crypto_op = NULL; variable
150 res = do_update(crypto_op, in, unit, out, &outsz); in cmd_process()
156 res = do_update(crypto_op, in, insz % unit, out, &outsz); in cmd_process()
237 res = TEE_AllocateOperation(&crypto_op, algo, mode, op_keysize); in cmd_prepare_key()
260 res = TEE_SetOperationKey2(crypto_op, hkey, hkey2); in cmd_prepare_key()
265 res = TEE_SetOperationKey(crypto_op, hkey); in cmd_prepare_key()
280 return TEE_AEInit(crypto_op, ivp, ivlen, TAG_LEN, 0, 0); in cmd_prepare_key()
282 TEE_CipherInit(crypto_op, ivp, ivlen); in cmd_prepare_key()
289 if (crypto_op) in cmd_clean_res()
290 TEE_FreeOperation(crypto_op); in cmd_clean_res()
/OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/
H A Drk_crypto_api.c245 TEE_OperationHandle crypto_op = NULL; in rk_cipher_crypto() local
321 res = TEE_AllocateOperation(&crypto_op, algo, mode, op_key_size); in rk_cipher_crypto()
356 res = TEE_SetOperationKey2(crypto_op, obj, obj_2); in rk_cipher_crypto()
363 res = TEE_SetOperationKey(crypto_op, obj); in rk_cipher_crypto()
370 TEE_CipherInit(crypto_op, iv, iv_len); in rk_cipher_crypto()
371 res = TEE_CipherDoFinal(crypto_op, in, len, out, &out_size); in rk_cipher_crypto()
383 if (crypto_op) in rk_cipher_crypto()
384 TEE_FreeOperation(crypto_op); in rk_cipher_crypto()
477 TEE_OperationHandle crypto_op = NULL; in rk_cipher_begin() local
547 res = TEE_AllocateOperation(&crypto_op, algo, mode, op_key_size); in rk_cipher_begin()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/
H A Drk_crypto_api.c245 TEE_OperationHandle crypto_op = NULL; in rk_cipher_crypto() local
335 res = TEE_AllocateOperation(&crypto_op, algo, mode, op_key_size); in rk_cipher_crypto()
370 res = TEE_SetOperationKey2(crypto_op, obj, obj_2); in rk_cipher_crypto()
377 res = TEE_SetOperationKey(crypto_op, obj); in rk_cipher_crypto()
384 TEE_CipherInit(crypto_op, iv, iv_len); in rk_cipher_crypto()
385 res = TEE_CipherDoFinal(crypto_op, in, len, out, &out_size); in rk_cipher_crypto()
397 if (crypto_op) in rk_cipher_crypto()
398 TEE_FreeOperation(crypto_op); in rk_cipher_crypto()
493 TEE_OperationHandle crypto_op = NULL; in rk_cipher_begin() local
573 res = TEE_AllocateOperation(&crypto_op, algo, mode, op_key_size); in rk_cipher_begin()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/gp/include/
H A Dxml_crypto_api.h899 struct crypto_op { struct
904 struct crypto_op saved_alloc; argument