Searched refs:crda (Results 1 – 4 of 4) sorted by relevance
| /netbsd/src/sys/netipsec/ |
| D | xform_esp.c | 402 struct cryptodesc *crda; in esp_input() local 405 crda = crp->crp_desc; in esp_input() 408 crda->crd_skip = skip; in esp_input() 410 crda->crd_len = hlen - sav->ivlen; in esp_input() 412 crda->crd_len = m->m_pkthdr.len - (skip + alen); in esp_input() 413 crda->crd_inject = m->m_pkthdr.len - alen; in esp_input() 415 crda->crd_alg = esph->type; in esp_input() 418 crda->crd_key = _KEYBUF(sav->key_enc); in esp_input() 419 crda->crd_klen = _KEYBITS(sav->key_enc); in esp_input() 421 crda->crd_key = _KEYBUF(sav->key_auth); in esp_input() [all …]
|
| D | xform_ah.c | 531 struct cryptodesc *crda; in ah_input() local 601 crda = crp->crp_desc; in ah_input() 602 KASSERT(crda != NULL); in ah_input() 604 crda->crd_skip = 0; in ah_input() 605 crda->crd_len = m->m_pkthdr.len; in ah_input() 606 crda->crd_inject = skip + rplen; in ah_input() 609 crda->crd_alg = ahx->type; in ah_input() 610 crda->crd_key = _KEYBUF(sav->key_auth); in ah_input() 611 crda->crd_klen = _KEYBITS(sav->key_auth); in ah_input() 692 crda->crd_len, crda->crd_skip, crda->crd_inject); in ah_input() [all …]
|
| /netbsd/src/sys/opencrypto/ |
| D | cryptodev.c | 457 struct cryptodesc *crde = NULL, *crda = NULL, *crdc = NULL; in cryptodev_op() local 524 crda = crdc ? crdc->crd_next : crp->crp_desc; in cryptodev_op() 525 if (cse->txform && crda) in cryptodev_op() 526 crde = crda->crd_next; in cryptodev_op() 572 if (crda) { in cryptodev_op() 573 crda->crd_skip = 0; in cryptodev_op() 574 crda->crd_len = cop->len; in cryptodev_op() 575 crda->crd_inject = 0; /* ??? */ in cryptodev_op() 577 crda->crd_alg = cse->mac; in cryptodev_op() 578 crda->crd_key = cse->mackey; in cryptodev_op() [all …]
|
| D | cryptosoft.c | 570 struct cryptodesc *crd, *crda = NULL, *crde = NULL; in swcr_combined() local 598 crda = crd; in swcr_combined() 609 if (crde == NULL || crda == NULL) in swcr_combined() 647 for (i = 0; i < crda->crd_len; i += blksz) { in swcr_combined() 648 len = MIN(crda->crd_len - i, blksz); in swcr_combined() 649 COPYDATA(outtype, buf, crda->crd_skip + i, len, blk); in swcr_combined() 670 switch (crda->crd_alg) { in swcr_combined() 677 *blkp = htobe32(crda->crd_len * 8); in swcr_combined() 689 COPYBACK(outtype, buf, crda->crd_inject, axf->auth_hash->authsize, aalg); in swcr_combined()
|