Searched refs:crda (Results 1 – 5 of 5) sorted by relevance
/openbsd/sys/arch/octeon/dev/ |
H A D | octcrypto.c | 693 KASSERT(crda != NULL); in octcrypto_authenc_gmac() 749 aadlen = crda->crd_len; in octcrypto_authenc_gmac() 764 crda->crd_skip + iskip, crda->crd_len - iskip, buf + oskip); in octcrypto_authenc_gmac() 767 crda->crd_skip + iskip, crda->crd_len - iskip, buf + oskip); in octcrypto_authenc_gmac() 962 crda->crd_skip + crda->crd_len) - skip; in octcrypto_authenc_hmac() 972 KASSERT(crda != NULL); in octcrypto_authenc_hmac() 974 skip = crda->crd_skip; in octcrypto_authenc_hmac() 975 len = crda->crd_len; in octcrypto_authenc_hmac() 981 if (crda != NULL && (crda->crd_flags & CRD_F_ESN) != 0) in octcrypto_authenc_hmac() 1050 if (crda != NULL) { in octcrypto_authenc_hmac() [all …]
|
/openbsd/sys/netinet/ |
H A D | ip_esp.c | 455 crda = &crp->crp_desc[0]; in esp_input() 459 crda->crd_skip = skip; in esp_input() 462 crda->crd_alg = esph->type; in esp_input() 463 crda->crd_key = tdb->tdb_amxkey; in esp_input() 468 memcpy(crda->crd_esn, &esn, 4); in esp_input() 469 crda->crd_flags |= CRD_F_ESN; in esp_input() 889 crda = &crp->crp_desc[1]; in esp_output() 915 crda = &crp->crp_desc[0]; in esp_output() 925 crda->crd_skip = skip; in esp_output() 929 crda->crd_alg = esph->type; in esp_output() [all …]
|
H A D | ip_ah.c | 534 struct cryptodesc *crda = NULL; in ah_input() local 642 crda = &crp->crp_desc[0]; in ah_input() 644 crda->crd_skip = 0; in ah_input() 645 crda->crd_len = m->m_pkthdr.len; in ah_input() 649 crda->crd_alg = ahx->type; in ah_input() 656 crda->crd_flags |= CRD_F_ESN; in ah_input() 861 struct cryptodesc *crda; in ah_output() local 1036 crda = &crp->crp_desc[0]; in ah_output() 1038 crda->crd_skip = 0; in ah_output() 1043 crda->crd_alg = ahx->type; in ah_output() [all …]
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | aesni.c | 500 if (crda) { in aesni_encdec() 502 aadlen = crda->crd_len; in aesni_encdec() 503 if (crda->crd_flags & CRD_F_ESN) { in aesni_encdec() 508 crda->crd_skip, 4, buf); in aesni_encdec() 511 crda->crd_skip, 4, buf); in aesni_encdec() 520 crda->crd_skip + iskip, crda->crd_len - iskip, in aesni_encdec() 524 crda->crd_skip + iskip, crda->crd_len - iskip, in aesni_encdec() 613 if (crda) { in aesni_encdec() 651 crda = crde = NULL; in aesni_process() 666 if (!crda) in aesni_process() [all …]
|
/openbsd/sys/crypto/ |
H A D | cryptosoft.c | 487 struct cryptodesc *crd, *crda = NULL, *crde = NULL; in swcr_authenc() local 522 crda = crd; in swcr_authenc() 533 if (crde == NULL || crda == NULL) in swcr_authenc() 569 aadlen = crda->crd_len; in swcr_authenc() 579 if (crda->crd_flags & CRD_F_ESN) { in swcr_authenc() 582 COPYDATA(outtype, buf, crda->crd_skip, 4, blk); in swcr_authenc() 585 bcopy(crda->crd_esn, blk + 4, 4); in swcr_authenc() 588 for (i = iskip; i < crda->crd_len; i += axf->hashsize) { in swcr_authenc() 589 len = MIN(crda->crd_len - i, axf->hashsize - oskip); in swcr_authenc() 590 COPYDATA(outtype, buf, crda->crd_skip + i, len, blk + oskip); in swcr_authenc() [all …]
|