Searched refs:g_hash_ctx (Results 1 – 1 of 1) sorted by relevance
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/ |
D | kapi_hash.c | 51 static channel_context g_hash_ctx[HASH_SOFT_CHANNEL_MAX]; variable 82 if (g_hash_ctx[hi_handle_get_chnid(handle)].open == HI_FALSE) { in kapi_hash_chk_handle() 109 ret = crypto_channel_init(g_hash_ctx, HASH_SOFT_CHANNEL_MAX, sizeof(kapi_hash_ctx)); in kapi_hash_init() 126 ret = crypto_channel_deinit(g_hash_ctx, HASH_SOFT_CHANNEL_MAX); in kapi_hash_deinit() 142 return crypto_channel_get_context(g_hash_ctx, HASH_SOFT_CHANNEL_MAX, id); in kapi_hash_get_ctx() 153 ret = crypto_channel_alloc(g_hash_ctx, HASH_SOFT_CHANNEL_MAX, HASH_SOFT_CHANNEL_MASK, &chn); in kapi_hash_create() 174 crypto_channel_free(g_hash_ctx, HASH_SOFT_CHANNEL_MAX, id); in kapi_hash_destroy() 652 if (g_hash_ctx[i].open == HI_TRUE) { in kapi_hash_release()
|