Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/
H A Drk_crypto_api.c1456 TEE_OperationHandle rsa_op = NULL; in rk_rsa_begin() local
1498 res = TEE_AllocateOperation(&rsa_op, algo, mode, max_key_size); in rk_rsa_begin()
1504 res = TEE_SetOperationKey(rsa_op, obj); in rk_rsa_begin()
1511 ctx->op = rsa_op; in rk_rsa_begin()
1520 if (rsa_op) in rk_rsa_begin()
1521 TEE_FreeOperation(rsa_op); in rk_rsa_begin()
1619 TEE_OperationHandle rsa_op; in rk_rsa_crypto() local
1657 res = TEE_AllocateOperation(&rsa_op, algo, mode, max_key_size); in rk_rsa_crypto()
1663 res = TEE_SetOperationKey(rsa_op, obj); in rk_rsa_crypto()
1670 res = TEE_AsymmetricEncrypt(rsa_op, NULL, 0, in, len, out, &out_size); in rk_rsa_crypto()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/
H A Drk_crypto_api.c1512 TEE_OperationHandle rsa_op = NULL; in rk_rsa_begin() local
1554 res = TEE_AllocateOperation(&rsa_op, algo, mode, max_key_size); in rk_rsa_begin()
1560 res = TEE_SetOperationKey(rsa_op, obj); in rk_rsa_begin()
1567 ctx->op = rsa_op; in rk_rsa_begin()
1576 if (rsa_op) in rk_rsa_begin()
1577 TEE_FreeOperation(rsa_op); in rk_rsa_begin()
1675 TEE_OperationHandle rsa_op; in rk_rsa_crypto() local
1715 res = TEE_AllocateOperation(&rsa_op, algo, mode, max_key_size); in rk_rsa_crypto()
1721 res = TEE_SetOperationKey(rsa_op, obj); in rk_rsa_crypto()
1728 res = TEE_AsymmetricEncrypt(rsa_op, NULL, 0, in, len, out, &out_size); in rk_rsa_crypto()
[all …]