Searched refs:bsize (Results 1 - 9 of 9) sorted by relevance

/crypto/
H A Dcts.c80 int bsize = crypto_blkcipher_blocksize(desc->tfm); local
81 u8 tmp[bsize], tmp2[bsize];
84 int lastn = nbytes - bsize;
85 u8 iv[bsize];
86 u8 s[bsize * 2], d[bsize * 2];
98 memcpy(iv, desc->info, bsize);
104 sg_set_buf(&sgsrc[0], s, bsize);
105 sg_set_buf(&sgdst[0], tmp, bsize);
130 int bsize = crypto_blkcipher_blocksize(desc->tfm); local
166 int bsize = crypto_blkcipher_blocksize(desc->tfm); local
224 int bsize = crypto_blkcipher_blocksize(desc->tfm); local
[all...]
H A Dpcbc.c51 int bsize = crypto_cipher_blocksize(tfm); local
58 crypto_xor(iv, src, bsize);
60 memcpy(iv, dst, bsize);
61 crypto_xor(iv, src, bsize);
63 src += bsize;
64 dst += bsize;
65 } while ((nbytes -= bsize) >= bsize);
76 int bsize = crypto_cipher_blocksize(tfm); local
80 u8 tmpbuf[bsize];
129 int bsize = crypto_cipher_blocksize(tfm); local
156 int bsize = crypto_cipher_blocksize(tfm); local
[all...]
H A Dcbc.c48 int bsize = crypto_cipher_blocksize(tfm); local
55 crypto_xor(iv, src, bsize);
57 memcpy(iv, dst, bsize);
59 src += bsize;
60 dst += bsize;
61 } while ((nbytes -= bsize) >= bsize);
72 int bsize = crypto_cipher_blocksize(tfm); local
78 crypto_xor(src, iv, bsize);
82 src += bsize;
120 int bsize = crypto_cipher_blocksize(tfm); local
146 int bsize = crypto_cipher_blocksize(tfm); local
[all...]
H A Dctr.c58 unsigned int bsize = crypto_cipher_blocksize(tfm); local
61 u8 tmp[bsize + alignmask];
71 crypto_inc(ctrblk, bsize);
79 unsigned int bsize = crypto_cipher_blocksize(tfm); local
88 crypto_xor(dst, src, bsize);
91 crypto_inc(ctrblk, bsize);
93 src += bsize;
94 dst += bsize;
95 } while ((nbytes -= bsize) >= bsize);
105 unsigned int bsize = crypto_cipher_blocksize(tfm); local
135 unsigned int bsize = crypto_cipher_blocksize(child); local
[all...]
H A Dlrw.c84 int err, bsize = LRW_BLOCK_SIZE; local
85 const u8 *tweak = key + keylen - bsize;
90 err = crypto_cipher_setkey(child, key, keylen - bsize);
221 const unsigned int bsize = LRW_BLOCK_SIZE; local
222 const unsigned int max_blks = req->tbuflen / bsize;
239 nblocks = min(walk.nbytes / bsize, max_blks);
270 nblocks * bsize);
278 nbytes -= nblocks * bsize;
279 nblocks = min(nbytes / bsize, max_blks);
287 nblocks = min(nbytes / bsize, max_blk
[all...]
H A Decb.c46 int bsize = crypto_cipher_blocksize(tfm); local
59 wsrc += bsize;
60 wdst += bsize;
61 } while ((nbytes -= bsize) >= bsize);
H A Dxts.c173 const unsigned int bsize = XTS_BLOCK_SIZE; local
174 const unsigned int max_blks = req->tbuflen / bsize;
190 nblocks = min(nbytes / bsize, max_blks);
213 nblocks * bsize);
221 nbytes -= nblocks * bsize;
222 nblocks = min(nbytes / bsize, max_blks);
232 nblocks = min(nbytes / bsize, max_blks);
H A Dblkcipher.c74 unsigned int bsize)
79 addr = blkcipher_get_spot(addr, bsize);
80 scatterwalk_copychunks(addr, &walk->out, bsize, 1);
81 return bsize;
148 unsigned int bsize,
152 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1);
170 walk->dst.virt.addr = blkcipher_get_spot(walk->dst.virt.addr, bsize);
172 aligned_bsize, bsize);
174 scatterwalk_copychunks(walk->src.virt.addr, &walk->in, bsize, 0);
176 walk->nbytes = bsize;
73 blkcipher_done_slow(struct blkcipher_walk *walk, unsigned int bsize) argument
146 blkcipher_next_slow(struct blkcipher_desc *desc, struct blkcipher_walk *walk, unsigned int bsize, unsigned int alignmask) argument
226 unsigned int bsize; local
[all...]
H A Dablkcipher.c80 unsigned int bsize)
82 unsigned int n = bsize;
96 return bsize;
154 unsigned int bsize,
158 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1);
174 src = dst = ablkcipher_get_spot(dst, bsize);
176 p->len = bsize;
179 scatterwalk_copychunks(src, &walk->in, bsize, 0);
183 walk->nbytes = bsize;
232 unsigned int alignmask, bsize, local
79 ablkcipher_done_slow(struct ablkcipher_walk *walk, unsigned int bsize) argument
152 ablkcipher_next_slow(struct ablkcipher_request *req, struct ablkcipher_walk *walk, unsigned int bsize, unsigned int alignmask, void **src_p, void **dst_p) argument
[all...]

Completed in 793 milliseconds