Searched refs:abreq (Results 1 – 4 of 4) sorted by relevance
/linux-4.4.14/crypto/ |
D | authenc.c | 204 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local 222 ablkcipher_request_set_tfm(abreq, enc); in crypto_authenc_encrypt() 223 ablkcipher_request_set_callback(abreq, aead_request_flags(req), in crypto_authenc_encrypt() 225 ablkcipher_request_set_crypt(abreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt() 227 err = crypto_ablkcipher_encrypt(abreq); in crypto_authenc_encrypt() 243 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail + in crypto_authenc_decrypt_tail() local 263 ablkcipher_request_set_tfm(abreq, ctx->enc); in crypto_authenc_decrypt_tail() 264 ablkcipher_request_set_callback(abreq, aead_request_flags(req), in crypto_authenc_decrypt_tail() 266 ablkcipher_request_set_crypt(abreq, src, dst, in crypto_authenc_decrypt_tail() 269 return crypto_ablkcipher_decrypt(abreq); in crypto_authenc_decrypt_tail()
|
D | authencesn.c | 197 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail in crypto_authenc_esn_encrypt() local 218 ablkcipher_request_set_tfm(abreq, enc); in crypto_authenc_esn_encrypt() 219 ablkcipher_request_set_callback(abreq, aead_request_flags(req), in crypto_authenc_esn_encrypt() 221 ablkcipher_request_set_crypt(abreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt() 223 err = crypto_ablkcipher_encrypt(abreq); in crypto_authenc_esn_encrypt() 237 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail in crypto_authenc_esn_decrypt_tail() local 259 ablkcipher_request_set_tfm(abreq, ctx->enc); in crypto_authenc_esn_decrypt_tail() 260 ablkcipher_request_set_callback(abreq, flags, in crypto_authenc_esn_decrypt_tail() 262 ablkcipher_request_set_crypt(abreq, dst, dst, cryptlen, req->iv); in crypto_authenc_esn_decrypt_tail() 264 return crypto_ablkcipher_decrypt(abreq); in crypto_authenc_esn_decrypt_tail()
|
D | ccm.c | 53 struct ablkcipher_request abreq; member 350 struct ablkcipher_request *abreq = &pctx->abreq; in crypto_ccm_encrypt() local 369 ablkcipher_request_set_tfm(abreq, ctx->ctr); in crypto_ccm_encrypt() 370 ablkcipher_request_set_callback(abreq, pctx->flags, in crypto_ccm_encrypt() 372 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt() 373 err = crypto_ablkcipher_encrypt(abreq); in crypto_ccm_encrypt() 410 struct ablkcipher_request *abreq = &pctx->abreq; in crypto_ccm_decrypt() local 432 ablkcipher_request_set_tfm(abreq, ctx->ctr); in crypto_ccm_decrypt() 433 ablkcipher_request_set_callback(abreq, pctx->flags, in crypto_ccm_decrypt() 435 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt() [all …]
|
D | gcm.c | 77 struct ablkcipher_request abreq; member 226 struct ablkcipher_request *ablk_req = &pctx->u.abreq; in crypto_gcm_init_crypt() 497 struct ablkcipher_request *abreq = &pctx->u.abreq; in crypto_gcm_encrypt() local 502 ablkcipher_request_set_callback(abreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt() 504 return crypto_ablkcipher_encrypt(abreq) ?: in crypto_gcm_encrypt() 536 struct ablkcipher_request *abreq = &pctx->u.abreq; in gcm_dec_hash_continue() local 540 ablkcipher_request_set_callback(abreq, flags, gcm_decrypt_done, req); in gcm_dec_hash_continue() 541 return crypto_ablkcipher_decrypt(abreq) ?: crypto_gcm_verify(req); in gcm_dec_hash_continue()
|