Lines Matching refs:blk
102 unsigned char iv[EALG_MAX_BLOCK_LEN], blk[EALG_MAX_BLOCK_LEN], *idat; in swcr_encdec() local
167 m_copydata(m, k, blks, blk); in swcr_encdec()
173 blk); in swcr_encdec()
176 blk); in swcr_encdec()
181 blk[j] ^= ivp[j]; in swcr_encdec()
183 exf->encrypt(sw->sw_kschedule, blk); in swcr_encdec()
189 bcopy(blk, iv, blks); in swcr_encdec()
197 bcopy(blk, nivp, blks); in swcr_encdec()
199 exf->decrypt(sw->sw_kschedule, blk); in swcr_encdec()
203 blk[j] ^= ivp[j]; in swcr_encdec()
208 m_copyback(m, k, blks, blk, M_NOWAIT); in swcr_encdec()
294 cuio_copydata(uio, count, blks, blk); in swcr_encdec()
300 blk); in swcr_encdec()
303 blk); in swcr_encdec()
308 blk[j] ^= ivp[j]; in swcr_encdec()
310 exf->encrypt(sw->sw_kschedule, blk); in swcr_encdec()
316 bcopy(blk, iv, blks); in swcr_encdec()
324 bcopy(blk, nivp, blks); in swcr_encdec()
326 exf->decrypt(sw->sw_kschedule, blk); in swcr_encdec()
330 blk[j] ^= ivp[j]; in swcr_encdec()
335 cuio_copyback(uio, count, blks, blk); in swcr_encdec()
483 u_char *blk = (u_char *)blkbuf; in swcr_authenc() local
582 COPYDATA(outtype, buf, crda->crd_skip, 4, blk); in swcr_authenc()
585 bcopy(crda->crd_esn, blk + 4, 4); in swcr_authenc()
590 COPYDATA(outtype, buf, crda->crd_skip + i, len, blk + oskip); in swcr_authenc()
591 bzero(blk + len + oskip, axf->hashsize - len - oskip); in swcr_authenc()
592 axf->Update(&ctx, blk, axf->hashsize); in swcr_authenc()
603 bzero(blk, blksz); in swcr_authenc()
604 COPYDATA(outtype, buf, crde->crd_skip + i, len, blk); in swcr_authenc()
606 exf->encrypt(swe->sw_kschedule, blk); in swcr_authenc()
607 axf->Update(&ctx, blk, len); in swcr_authenc()
609 axf->Update(&ctx, blk, len); in swcr_authenc()
610 exf->decrypt(swe->sw_kschedule, blk); in swcr_authenc()
612 COPYBACK(outtype, buf, crde->crd_skip + i, len, blk); in swcr_authenc()
621 bzero(blk, axf->hashsize); in swcr_authenc()
622 blkp = (uint32_t *)blk + 1; in swcr_authenc()
624 blkp = (uint32_t *)blk + 3; in swcr_authenc()
626 axf->Update(&ctx, blk, axf->hashsize); in swcr_authenc()
630 bzero(blk, axf->hashsize); in swcr_authenc()
631 blkp = (uint32_t *)blk; in swcr_authenc()
633 blkp = (uint32_t *)blk + 2; in swcr_authenc()
635 axf->Update(&ctx, blk, axf->hashsize); in swcr_authenc()