/linux-4.1.27/crypto/ |
H A D | authencesn.c | 193 struct ablkcipher_request *abreq; authenc_esn_verify_ahash_update_done() local 236 abreq = aead_request_ctx(req); authenc_esn_verify_ahash_update_done() 237 ablkcipher_request_set_tfm(abreq, ctx->enc); authenc_esn_verify_ahash_update_done() 238 ablkcipher_request_set_callback(abreq, aead_request_flags(req), authenc_esn_verify_ahash_update_done() 240 ablkcipher_request_set_crypt(abreq, req->src, req->dst, authenc_esn_verify_ahash_update_done() 243 err = crypto_ablkcipher_decrypt(abreq); authenc_esn_verify_ahash_update_done() 254 struct ablkcipher_request *abreq; authenc_esn_verify_ahash_update_done2() local 285 abreq = aead_request_ctx(req); authenc_esn_verify_ahash_update_done2() 286 ablkcipher_request_set_tfm(abreq, ctx->enc); authenc_esn_verify_ahash_update_done2() 287 ablkcipher_request_set_callback(abreq, aead_request_flags(req), authenc_esn_verify_ahash_update_done2() 289 ablkcipher_request_set_crypt(abreq, req->src, req->dst, authenc_esn_verify_ahash_update_done2() 292 err = crypto_ablkcipher_decrypt(abreq); authenc_esn_verify_ahash_update_done2() 304 struct ablkcipher_request *abreq; authenc_esn_verify_ahash_done() local 325 abreq = aead_request_ctx(req); authenc_esn_verify_ahash_done() 326 ablkcipher_request_set_tfm(abreq, ctx->enc); authenc_esn_verify_ahash_done() 327 ablkcipher_request_set_callback(abreq, aead_request_flags(req), authenc_esn_verify_ahash_done() 329 ablkcipher_request_set_crypt(abreq, req->src, req->dst, authenc_esn_verify_ahash_done() 332 err = crypto_ablkcipher_decrypt(abreq); authenc_esn_verify_ahash_done() 460 struct ablkcipher_request *abreq = aead_request_ctx(areq); crypto_authenc_esn_encrypt_done() local 461 u8 *iv = (u8 *)(abreq + 1) + crypto_authenc_esn_encrypt_done() 478 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail crypto_authenc_esn_encrypt() local 480 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(enc); crypto_authenc_esn_encrypt() 483 ablkcipher_request_set_tfm(abreq, enc); crypto_authenc_esn_encrypt() 484 ablkcipher_request_set_callback(abreq, aead_request_flags(req), crypto_authenc_esn_encrypt() 486 ablkcipher_request_set_crypt(abreq, req->src, dst, cryptlen, req->iv); crypto_authenc_esn_encrypt() 490 err = crypto_ablkcipher_encrypt(abreq); crypto_authenc_esn_encrypt() 617 struct ablkcipher_request *abreq = aead_request_ctx(req); crypto_authenc_esn_decrypt() local 631 ablkcipher_request_set_tfm(abreq, ctx->enc); crypto_authenc_esn_decrypt() 632 ablkcipher_request_set_callback(abreq, aead_request_flags(req), crypto_authenc_esn_decrypt() 634 ablkcipher_request_set_crypt(abreq, req->src, req->dst, cryptlen, iv); crypto_authenc_esn_decrypt() 636 return crypto_ablkcipher_decrypt(abreq); crypto_authenc_esn_decrypt()
|
H A D | authenc.c | 176 struct ablkcipher_request *abreq; authenc_verify_ahash_update_done() local 207 abreq = aead_request_ctx(req); authenc_verify_ahash_update_done() 208 ablkcipher_request_set_tfm(abreq, ctx->enc); authenc_verify_ahash_update_done() 209 ablkcipher_request_set_callback(abreq, aead_request_flags(req), authenc_verify_ahash_update_done() 211 ablkcipher_request_set_crypt(abreq, req->src, req->dst, authenc_verify_ahash_update_done() 214 err = crypto_ablkcipher_decrypt(abreq); authenc_verify_ahash_update_done() 225 struct ablkcipher_request *abreq; authenc_verify_ahash_done() local 246 abreq = aead_request_ctx(req); authenc_verify_ahash_done() 247 ablkcipher_request_set_tfm(abreq, ctx->enc); authenc_verify_ahash_done() 248 ablkcipher_request_set_callback(abreq, aead_request_flags(req), authenc_verify_ahash_done() 250 ablkcipher_request_set_crypt(abreq, req->src, req->dst, authenc_verify_ahash_done() 253 err = crypto_ablkcipher_decrypt(abreq); authenc_verify_ahash_done() 384 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail crypto_authenc_encrypt_done() local 386 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(ctx->enc); crypto_authenc_encrypt_done() 402 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail crypto_authenc_encrypt() local 404 u8 *iv = (u8 *)abreq - crypto_ablkcipher_ivsize(enc); crypto_authenc_encrypt() 407 ablkcipher_request_set_tfm(abreq, enc); crypto_authenc_encrypt() 408 ablkcipher_request_set_callback(abreq, aead_request_flags(req), crypto_authenc_encrypt() 410 ablkcipher_request_set_crypt(abreq, req->src, dst, cryptlen, req->iv); crypto_authenc_encrypt() 414 err = crypto_ablkcipher_encrypt(abreq); crypto_authenc_encrypt() 525 struct ablkcipher_request *abreq = aead_request_ctx(req); crypto_authenc_decrypt() local 539 ablkcipher_request_set_tfm(abreq, ctx->enc); crypto_authenc_decrypt() 540 ablkcipher_request_set_callback(abreq, aead_request_flags(req), crypto_authenc_decrypt() 542 ablkcipher_request_set_crypt(abreq, req->src, req->dst, cryptlen, iv); crypto_authenc_decrypt() 544 return crypto_ablkcipher_decrypt(abreq); crypto_authenc_decrypt()
|
H A D | ccm.c | 47 struct ablkcipher_request abreq; member in struct:crypto_ccm_req_priv_ctx 308 struct ablkcipher_request *abreq = &pctx->abreq; crypto_ccm_encrypt() local 342 ablkcipher_request_set_tfm(abreq, ctx->ctr); crypto_ccm_encrypt() 343 ablkcipher_request_set_callback(abreq, pctx->flags, crypto_ccm_encrypt() 345 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); crypto_ccm_encrypt() 346 err = crypto_ablkcipher_encrypt(abreq); crypto_ccm_encrypt() 378 struct ablkcipher_request *abreq = &pctx->abreq; crypto_ccm_decrypt() local 413 ablkcipher_request_set_tfm(abreq, ctx->ctr); crypto_ccm_decrypt() 414 ablkcipher_request_set_callback(abreq, pctx->flags, crypto_ccm_decrypt() 416 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); crypto_ccm_decrypt() 417 err = crypto_ablkcipher_decrypt(abreq); crypto_ccm_decrypt()
|
H A D | gcm.c | 74 struct ablkcipher_request abreq; member in union:crypto_gcm_req_priv_ctx::__anon3256 548 struct ablkcipher_request *abreq = &pctx->u.abreq; crypto_gcm_encrypt() local 552 crypto_gcm_init_crypt(abreq, req, req->cryptlen); crypto_gcm_encrypt() 553 ablkcipher_request_set_callback(abreq, aead_request_flags(req), crypto_gcm_encrypt() 560 err = crypto_ablkcipher_encrypt(abreq); crypto_gcm_encrypt() 602 struct ablkcipher_request *abreq = &pctx->u.abreq; gcm_dec_hash_done() local 606 ablkcipher_request_set_callback(abreq, aead_request_flags(req), gcm_dec_hash_done() 608 crypto_gcm_init_crypt(abreq, req, gctx->cryptlen); gcm_dec_hash_done() 609 err = crypto_ablkcipher_decrypt(abreq); gcm_dec_hash_done() 623 struct ablkcipher_request *abreq = &pctx->u.abreq; crypto_gcm_decrypt() local 641 ablkcipher_request_set_callback(abreq, aead_request_flags(req), crypto_gcm_decrypt() 643 crypto_gcm_init_crypt(abreq, req, cryptlen); crypto_gcm_decrypt() 644 err = crypto_ablkcipher_decrypt(abreq); crypto_gcm_decrypt()
|