/linux-4.1.27/crypto/ |
H A D | authencesn.c | 103 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_esn_geniv_ahash_update_done() local 108 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, authenc_esn_geniv_ahash_update_done() 110 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_esn_geniv_ahash_update_done() 114 err = crypto_ahash_update(ahreq); authenc_esn_geniv_ahash_update_done() 118 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, authenc_esn_geniv_ahash_update_done() 120 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_esn_geniv_ahash_update_done() 124 err = crypto_ahash_finup(ahreq); authenc_esn_geniv_ahash_update_done() 128 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, authenc_esn_geniv_ahash_update_done() 143 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_esn_geniv_ahash_update_done2() local 148 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, authenc_esn_geniv_ahash_update_done2() 150 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_esn_geniv_ahash_update_done2() 154 err = crypto_ahash_finup(ahreq); authenc_esn_geniv_ahash_update_done2() 158 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, authenc_esn_geniv_ahash_update_done2() 174 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_esn_geniv_ahash_done() local 179 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, authenc_esn_geniv_ahash_done() 198 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_esn_verify_ahash_update_done() local 204 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, authenc_esn_verify_ahash_update_done() 207 ahash_request_set_callback(ahreq, authenc_esn_verify_ahash_update_done() 212 err = crypto_ahash_update(ahreq); authenc_esn_verify_ahash_update_done() 216 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, authenc_esn_verify_ahash_update_done() 218 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_esn_verify_ahash_update_done() 222 err = crypto_ahash_finup(ahreq); authenc_esn_verify_ahash_update_done() 228 ihash = ahreq->result + authsize; authenc_esn_verify_ahash_update_done() 232 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; authenc_esn_verify_ahash_update_done() 259 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_esn_verify_ahash_update_done2() local 265 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, authenc_esn_verify_ahash_update_done2() 267 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_esn_verify_ahash_update_done2() 271 err = crypto_ahash_finup(ahreq); authenc_esn_verify_ahash_update_done2() 277 ihash = ahreq->result + authsize; authenc_esn_verify_ahash_update_done2() 281 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; authenc_esn_verify_ahash_update_done2() 309 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_esn_verify_ahash_done() local 317 ihash = ahreq->result + authsize; authenc_esn_verify_ahash_done() 321 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; authenc_esn_verify_ahash_done() 345 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); crypto_authenc_esn_ahash() local 352 ahash_request_set_tfm(ahreq, auth); crypto_authenc_esn_ahash() 354 err = crypto_ahash_init(ahreq); crypto_authenc_esn_ahash() 358 ahash_request_set_crypt(ahreq, areq_ctx->hsg, hash, areq_ctx->headlen); crypto_authenc_esn_ahash() 359 ahash_request_set_callback(ahreq, aead_request_flags(req) & flags, crypto_authenc_esn_ahash() 362 err = crypto_ahash_update(ahreq); crypto_authenc_esn_ahash() 366 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, areq_ctx->cryptlen); crypto_authenc_esn_ahash() 367 ahash_request_set_callback(ahreq, aead_request_flags(req) & flags, crypto_authenc_esn_ahash() 370 err = crypto_ahash_update(ahreq); crypto_authenc_esn_ahash() 374 ahash_request_set_crypt(ahreq, areq_ctx->tsg, hash, crypto_authenc_esn_ahash() 376 ahash_request_set_callback(ahreq, aead_request_flags(req) & flags, crypto_authenc_esn_ahash() 379 err = crypto_ahash_finup(ahreq); crypto_authenc_esn_ahash()
|
H A D | authenc.c | 129 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_geniv_ahash_update_done() local 134 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, authenc_geniv_ahash_update_done() 136 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_geniv_ahash_update_done() 140 err = crypto_ahash_finup(ahreq); authenc_geniv_ahash_update_done() 144 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, authenc_geniv_ahash_update_done() 158 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_geniv_ahash_done() local 163 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, authenc_geniv_ahash_done() 181 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_verify_ahash_update_done() local 187 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, authenc_verify_ahash_update_done() 189 ahash_request_set_callback(ahreq, aead_request_flags(req) & authenc_verify_ahash_update_done() 193 err = crypto_ahash_finup(ahreq); authenc_verify_ahash_update_done() 199 ihash = ahreq->result + authsize; authenc_verify_ahash_update_done() 203 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; authenc_verify_ahash_update_done() 230 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); authenc_verify_ahash_done() local 238 ihash = ahreq->result + authsize; authenc_verify_ahash_done() 242 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; authenc_verify_ahash_done() 265 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); crypto_authenc_ahash_fb() local 272 ahash_request_set_tfm(ahreq, auth); crypto_authenc_ahash_fb() 274 err = crypto_ahash_init(ahreq); crypto_authenc_ahash_fb() 278 ahash_request_set_crypt(ahreq, req->assoc, hash, req->assoclen); crypto_authenc_ahash_fb() 279 ahash_request_set_callback(ahreq, aead_request_flags(req) & flags, crypto_authenc_ahash_fb() 282 err = crypto_ahash_update(ahreq); crypto_authenc_ahash_fb() 286 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, crypto_authenc_ahash_fb() 288 ahash_request_set_callback(ahreq, aead_request_flags(req) & flags, crypto_authenc_ahash_fb() 291 err = crypto_ahash_finup(ahreq); crypto_authenc_ahash_fb() 304 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); crypto_authenc_ahash() local 311 ahash_request_set_tfm(ahreq, auth); crypto_authenc_ahash() 312 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, crypto_authenc_ahash() 314 ahash_request_set_callback(ahreq, aead_request_flags(req) & flags, crypto_authenc_ahash() 317 err = crypto_ahash_digest(ahreq); crypto_authenc_ahash()
|
H A D | gcm.c | 73 struct ahash_request ahreq; member in union:crypto_gcm_req_priv_ctx::__anon3256 235 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash_update() local 237 ahash_request_set_callback(ahreq, aead_request_flags(req), gcm_hash_update() 239 ahash_request_set_crypt(ahreq, src, NULL, len); gcm_hash_update() 241 return crypto_ahash_update(ahreq); gcm_hash_update() 249 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash_remain() local 251 ahash_request_set_callback(ahreq, aead_request_flags(req), gcm_hash_remain() 254 ahash_request_set_crypt(ahreq, pctx->src, NULL, remain); gcm_hash_remain() 256 return crypto_ahash_update(ahreq); gcm_hash_remain() 262 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash_len() local 270 ahash_request_set_callback(ahreq, aead_request_flags(req), gcm_hash_len() 272 ahash_request_set_crypt(ahreq, pctx->src, gcm_hash_len() 275 return crypto_ahash_update(ahreq); gcm_hash_len() 281 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash_final() local 283 ahash_request_set_callback(ahreq, aead_request_flags(req), gcm_hash_final() 285 ahash_request_set_crypt(ahreq, NULL, pctx->iauth_tag, 0); gcm_hash_final() 287 return crypto_ahash_final(ahreq); gcm_hash_final() 461 struct ahash_request *ahreq = &pctx->u.ahreq; gcm_hash() local 468 ahash_request_set_tfm(ahreq, ctx->ghash); gcm_hash() 470 ahash_request_set_callback(ahreq, aead_request_flags(req), gcm_hash() 472 err = crypto_ahash_init(ahreq); gcm_hash()
|