Searched refs:crypto_ctx_t (Results 1 – 6 of 6) sorted by relevance
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/ |
| H A D | rk_crypto_api.h | 52 } crypto_ctx_t; typedef 98 crypto_ctx_t *rk_crypto_malloc_ctx(void); 99 void rk_crypto_free_ctx(crypto_ctx_t **ctx); 103 TEE_Result rk_hash_begin(crypto_ctx_t *ctx, uint32_t algo); 104 TEE_Result rk_hash_update(crypto_ctx_t *ctx, uint8_t *in, uint32_t in_len); 105 TEE_Result rk_hash_finish(crypto_ctx_t *ctx, uint8_t *in, uint8_t *out, 111 TEE_Result rk_set_padding(crypto_ctx_t *ctx, int padding); 112 TEE_Result rk_cipher_begin(crypto_ctx_t *ctx, uint8_t *key, uint32_t key_len, 114 TEE_Result rk_cipher_update(crypto_ctx_t *ctx, uint8_t *in, uint8_t *out, 116 TEE_Result rk_cipher_finish(crypto_ctx_t *ctx, uint8_t *out, uint32_t *out_len); [all …]
|
| H A D | rk_crypto_api.c | 388 TEE_Result rk_set_padding(crypto_ctx_t *ctx, int padding) in rk_set_padding() 398 TEE_Result rk_set_sign_mode(crypto_ctx_t *ctx, unsigned int mode) in rk_set_sign_mode() 451 crypto_ctx_t *rk_crypto_malloc_ctx(void) in rk_crypto_malloc_ctx() 453 return TEE_Malloc(sizeof(crypto_ctx_t), TEE_MALLOC_FILL_ZERO); in rk_crypto_malloc_ctx() 456 void rk_crypto_free_ctx(crypto_ctx_t **ctx) in rk_crypto_free_ctx() 468 TEE_MemFill(*ctx, 0, sizeof(crypto_ctx_t)); in rk_crypto_free_ctx() 473 TEE_Result rk_cipher_begin(crypto_ctx_t *ctx, uint8_t *key, uint32_t key_len, in rk_cipher_begin() 618 static TEE_Result rk_cipher_buffer_update(crypto_ctx_t *ctx, uint8_t *in, in rk_cipher_buffer_update() 713 TEE_Result rk_cipher_update(crypto_ctx_t *ctx, uint8_t *in, uint8_t *out, in rk_cipher_update() 752 TEE_Result rk_cipher_finish(crypto_ctx_t *ctx, uint8_t *out, uint32_t *out_len) in rk_cipher_finish() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/ |
| H A D | rk_crypto_api.h | 54 } crypto_ctx_t; typedef 115 crypto_ctx_t *rk_crypto_malloc_ctx(void); 116 void rk_crypto_free_ctx(crypto_ctx_t **ctx); 120 TEE_Result rk_hash_begin(crypto_ctx_t *ctx, uint32_t algo); 121 TEE_Result rk_hash_update(crypto_ctx_t *ctx, uint8_t *in, uint32_t in_len); 122 TEE_Result rk_hash_finish(crypto_ctx_t *ctx, uint8_t *in, uint8_t *out, 128 TEE_Result rk_set_padding(crypto_ctx_t *ctx, int padding); 129 TEE_Result rk_cipher_begin(crypto_ctx_t *ctx, uint8_t *key, uint32_t key_len, 131 TEE_Result rk_cipher_update(crypto_ctx_t *ctx, uint8_t *in, uint8_t *out, 133 TEE_Result rk_cipher_finish(crypto_ctx_t *ctx, uint8_t *out, uint32_t *out_len); [all …]
|
| H A D | rk_crypto_api.c | 402 TEE_Result rk_set_padding(crypto_ctx_t *ctx, int padding) in rk_set_padding() 414 TEE_Result rk_set_sign_mode(crypto_ctx_t *ctx, unsigned int mode) in rk_set_sign_mode() 467 crypto_ctx_t *rk_crypto_malloc_ctx(void) in rk_crypto_malloc_ctx() 469 return TEE_Malloc(sizeof(crypto_ctx_t), TEE_MALLOC_FILL_ZERO); in rk_crypto_malloc_ctx() 472 void rk_crypto_free_ctx(crypto_ctx_t **ctx) in rk_crypto_free_ctx() 484 TEE_MemFill(*ctx, 0, sizeof(crypto_ctx_t)); in rk_crypto_free_ctx() 489 TEE_Result rk_cipher_begin(crypto_ctx_t *ctx, uint8_t *key, uint32_t key_len, in rk_cipher_begin() 644 static TEE_Result rk_cipher_buffer_update(crypto_ctx_t *ctx, uint8_t *in, in rk_cipher_buffer_update() 739 TEE_Result rk_cipher_update(crypto_ctx_t *ctx, uint8_t *in, uint8_t *out, in rk_cipher_update() 780 TEE_Result rk_cipher_finish(crypto_ctx_t *ctx, uint8_t *out, uint32_t *out_len) in rk_cipher_finish() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_test/ |
| H A D | rktest_crypto.c | 24 crypto_ctx_t *ctx = NULL; in handle_crypto_sha() 91 crypto_ctx_t *ctx = NULL; in handle_crypto_aes() 204 crypto_ctx_t *ctx = NULL; in handle_crypto_rsa()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_test/ |
| H A D | rktest_crypto.c | 25 crypto_ctx_t *ctx = NULL; in handle_crypto_sha() 92 crypto_ctx_t *ctx = NULL; in handle_crypto_aes() 206 crypto_ctx_t *ctx = NULL; in handle_crypto_rsa()
|