|
Lines 408-414
g_eli_auth_run(struct g_eli_worker *wr, struct bio
Link Here
|
| 408 |
struct cryptodesc *crde, *crda; |
408 |
struct cryptodesc *crde, *crda; |
| 409 |
u_int i, lsec, nsec, data_secsize, decr_secsize, encr_secsize; |
409 |
u_int i, lsec, nsec, data_secsize, decr_secsize, encr_secsize; |
| 410 |
off_t dstoff; |
410 |
off_t dstoff; |
| 411 |
int err, error; |
|
|
| 412 |
u_char *p, *data, *auth, *authkey, *plaindata; |
411 |
u_char *p, *data, *auth, *authkey, *plaindata; |
| 413 |
|
412 |
|
| 414 |
G_ELI_LOGREQ(3, bp, "%s", __func__); |
413 |
G_ELI_LOGREQ(3, bp, "%s", __func__); |
|
Lines 451-457
g_eli_auth_run(struct g_eli_worker *wr, struct bio
Link Here
|
| 451 |
bp->bio_inbed = 0; |
450 |
bp->bio_inbed = 0; |
| 452 |
bp->bio_children = nsec; |
451 |
bp->bio_children = nsec; |
| 453 |
|
452 |
|
| 454 |
error = 0; |
|
|
| 455 |
for (i = 1; i <= nsec; i++, dstoff += encr_secsize) { |
453 |
for (i = 1; i <= nsec; i++, dstoff += encr_secsize) { |
| 456 |
crp = (struct cryptop *)p; p += sizeof(*crp); |
454 |
crp = (struct cryptop *)p; p += sizeof(*crp); |
| 457 |
crde = (struct cryptodesc *)p; p += sizeof(*crde); |
455 |
crde = (struct cryptodesc *)p; p += sizeof(*crde); |
|
Lines 519-528
g_eli_auth_run(struct g_eli_worker *wr, struct bio
Link Here
|
| 519 |
crda->crd_klen = G_ELI_AUTH_SECKEYLEN * 8; |
517 |
crda->crd_klen = G_ELI_AUTH_SECKEYLEN * 8; |
| 520 |
|
518 |
|
| 521 |
crp->crp_etype = 0; |
519 |
crp->crp_etype = 0; |
| 522 |
err = crypto_dispatch(crp); |
520 |
crypto_dispatch(crp); |
| 523 |
if (err != 0 && error == 0) |
|
|
| 524 |
error = err; |
| 525 |
} |
521 |
} |
| 526 |
if (bp->bio_error == 0) |
|
|
| 527 |
bp->bio_error = error; |
| 528 |
} |
522 |
} |