Re: can CTR use blkcipher_walk_virt()?

2007-08-17 Thread Herbert Xu
On Fri, Aug 17, 2007 at 02:54:52PM -0500, Joy Latten wrote: > > Just to make sure I understand correctly, > our plaintext will be a multiple of the blocksize, > therefore it may be padded, right? Yes but the padding is something for the user to worry about and shouldn't concern you. > Also, si

Re: can CTR use blkcipher_walk_virt()?

2007-08-17 Thread Joy Latten
On Fri, 2007-08-17 at 10:19 +0800, Herbert Xu wrote: > Joy Latten <[EMAIL PROTECTED]> wrote: > > I am in learning mode and have been looking into CTR. > > Based on the fact that CTR does not require the plaintext to > > be a multiple of the blocksize nor is padding required, > > should I use ciphe

Re: [patch 01/10] t add cast to regain ablkcipher_request from private ctx

2007-08-17 Thread Herbert Xu
On Thu, Aug 16, 2007 at 10:01:06PM +0200, Sebastian Siewior wrote: > This cast allows to regain the struct ablkcipher_request for a request > from private data. Hi Sebastian: I think this function would make more sense as a private function in your driver. That way you can give it an explicit t