Home
last modified time | relevance | path

Searched refs:pctx (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/crypto/
Dgcm.c176 struct crypto_gcm_req_priv_ctx *pctx = crypto_gcm_reqctx(req); in crypto_gcm_init_common() local
180 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
181 memcpy(pctx->iv, req->iv, GCM_AES_IV_SIZE); in crypto_gcm_init_common()
182 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common()
184 sg_init_table(pctx->src, 3); in crypto_gcm_init_common()
185 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
186 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_gcm_init_common()
187 if (sg != pctx->src + 1) in crypto_gcm_init_common()
188 sg_chain(pctx->src, 2, sg); in crypto_gcm_init_common()
191 sg_init_table(pctx->dst, 3); in crypto_gcm_init_common()
[all …]
Dccm.c181 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req); in crypto_ccm_auth() local
187 u8 *odata = pctx->odata; in crypto_ccm_auth()
188 u8 *idata = pctx->idata; in crypto_ccm_auth()
210 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth()
231 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth()
241 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req); in crypto_ccm_encrypt_done() local
242 u8 *odata = pctx->odata; in crypto_ccm_encrypt_done()
262 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req); in crypto_ccm_init_crypt() local
271 pctx->flags = aead_request_flags(req); in crypto_ccm_init_crypt()
278 sg_init_table(pctx->src, 3); in crypto_ccm_init_crypt()
[all …]
/linux-4.19.296/fs/cifs/
Dsmb2pdu.c507 struct smb2_neg_context *pctx; in smb311_decode_neg_context() local
530 pctx = (struct smb2_neg_context *)(offset + (char *)rsp); in smb311_decode_neg_context()
531 clen = le16_to_cpu(pctx->DataLength); in smb311_decode_neg_context()
535 if (pctx->ContextType == SMB2_PREAUTH_INTEGRITY_CAPABILITIES) in smb311_decode_neg_context()
537 (struct smb2_preauth_neg_context *)pctx); in smb311_decode_neg_context()
538 else if (pctx->ContextType == SMB2_ENCRYPTION_CAPABILITIES) in smb311_decode_neg_context()
540 (struct smb2_encryption_neg_context *)pctx); in smb311_decode_neg_context()
541 else if (pctx->ContextType == SMB2_POSIX_EXTENSIONS_AVAILABLE) in smb311_decode_neg_context()
545 le16_to_cpu(pctx->ContextType)); in smb311_decode_neg_context()