Searched refs:pctx (Results 1 – 2 of 2) sorted by relevance
/crypto/ |
D | ccm.c | 165 struct crypto_ccm_req_priv_ctx *pctx) in compute_mac() argument 168 u8 *odata = pctx->odata; in compute_mac() 169 u8 *idata = pctx->idata; in compute_mac() 175 getlen = bs - pctx->ilen; in compute_mac() 177 memcpy(idata + pctx->ilen, data, getlen); in compute_mac() 182 pctx->ilen = 0; in compute_mac() 198 memcpy(idata + pctx->ilen, data, datalen); in compute_mac() 199 pctx->ilen += datalen; in compute_mac() 204 struct crypto_ccm_req_priv_ctx *pctx, in get_data_to_compute() argument 221 compute_mac(tfm, data_src, n, pctx); in get_data_to_compute() [all …]
|
D | gcm.c | 274 struct crypto_gcm_req_priv_ctx *pctx = crypto_gcm_reqctx(req); in crypto_gcm_init_crypt() local 276 struct crypto_gcm_ghash_ctx *ghash = &pctx->ghash; in crypto_gcm_init_crypt() 280 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_crypt() 283 sg_init_table(pctx->src, 2); in crypto_gcm_init_crypt() 284 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_crypt() 285 scatterwalk_sg_chain(pctx->src, 2, req->src); in crypto_gcm_init_crypt() 287 dst = pctx->src; in crypto_gcm_init_crypt() 289 sg_init_table(pctx->dst, 2); in crypto_gcm_init_crypt() 290 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_crypt() 291 scatterwalk_sg_chain(pctx->dst, 2, req->dst); in crypto_gcm_init_crypt() [all …]
|