Searched refs:pctx (Results 1 – 3 of 3) sorted by relevance
| /crypto/ |
| A D | algif_rng.c | 205 pctx = kzalloc(sizeof(*pctx), GFP_KERNEL); in rng_bind() 206 if (!pctx) in rng_bind() 211 kfree(pctx); in rng_bind() 215 pctx->drng = rng; in rng_bind() 216 return pctx; in rng_bind() 223 if (unlikely(!pctx)) in rng_release() 227 kfree_sensitive(pctx); in rng_release() 261 ctx->drng = pctx->drng; in rng_accept_parent() 294 if (pctx->entropy) in rng_setentropy() 306 crypto_rng_alg(pctx->drng)->set_ent(pctx->drng, kentropy, len); in rng_setentropy() [all …]
|
| A D | gcm.c | 154 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_common() 158 sg_init_table(pctx->src, 3); in crypto_gcm_init_common() 159 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common() 161 if (sg != pctx->src + 1) in crypto_gcm_init_common() 162 sg_chain(pctx->src, 2, sg); in crypto_gcm_init_common() 166 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common() 168 if (sg != pctx->dst + 1) in crypto_gcm_init_common() 182 dst = req->src == req->dst ? pctx->src : pctx->dst; in crypto_gcm_init_crypt() 187 pctx->iv); in crypto_gcm_init_crypt() 229 sg_init_one(&pctx->sg, pctx->iauth_tag, 16); in gcm_hash_len() [all …]
|
| A D | ccm.c | 174 u8 *odata = pctx->odata; in crypto_ccm_auth() 175 u8 *idata = pctx->idata; in crypto_ccm_auth() 229 u8 *odata = pctx->odata; in crypto_ccm_encrypt_done() 302 dst = pctx->src; in crypto_ccm_encrypt() 304 dst = pctx->dst; in crypto_ccm_encrypt() 329 pctx->flags = 0; in crypto_ccm_decrypt_done() 331 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in crypto_ccm_decrypt_done() 335 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 352 u8 *iv = pctx->idata; in crypto_ccm_decrypt() 364 dst = pctx->src; in crypto_ccm_decrypt() [all …]
|
Completed in 9 milliseconds