• Home
  • Raw
  • Download

Lines Matching refs:walk

49 static void crypto_ctr_crypt_final(struct blkcipher_walk *walk,  in crypto_ctr_crypt_final()  argument
54 u8 *ctrblk = walk->iv; in crypto_ctr_crypt_final()
57 u8 *src = walk->src.virt.addr; in crypto_ctr_crypt_final()
58 u8 *dst = walk->dst.virt.addr; in crypto_ctr_crypt_final()
59 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_final()
68 static int crypto_ctr_crypt_segment(struct blkcipher_walk *walk, in crypto_ctr_crypt_segment() argument
74 u8 *ctrblk = walk->iv; in crypto_ctr_crypt_segment()
75 u8 *src = walk->src.virt.addr; in crypto_ctr_crypt_segment()
76 u8 *dst = walk->dst.virt.addr; in crypto_ctr_crypt_segment()
77 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_segment()
94 static int crypto_ctr_crypt_inplace(struct blkcipher_walk *walk, in crypto_ctr_crypt_inplace() argument
101 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_inplace()
102 u8 *ctrblk = walk->iv; in crypto_ctr_crypt_inplace()
103 u8 *src = walk->src.virt.addr; in crypto_ctr_crypt_inplace()
125 struct blkcipher_walk walk; in crypto_ctr_crypt() local
132 blkcipher_walk_init(&walk, dst, src, nbytes); in crypto_ctr_crypt()
133 err = blkcipher_walk_virt_block(desc, &walk, bsize); in crypto_ctr_crypt()
135 while (walk.nbytes >= bsize) { in crypto_ctr_crypt()
136 if (walk.src.virt.addr == walk.dst.virt.addr) in crypto_ctr_crypt()
137 nbytes = crypto_ctr_crypt_inplace(&walk, child); in crypto_ctr_crypt()
139 nbytes = crypto_ctr_crypt_segment(&walk, child); in crypto_ctr_crypt()
141 err = blkcipher_walk_done(desc, &walk, nbytes); in crypto_ctr_crypt()
144 if (walk.nbytes) { in crypto_ctr_crypt()
145 crypto_ctr_crypt_final(&walk, child); in crypto_ctr_crypt()
146 err = blkcipher_walk_done(desc, &walk, 0); in crypto_ctr_crypt()