Re: AES with CTS Mode

2008-01-17 Thread Herbert Xu
Kevin Coffman <[EMAIL PROTECTED]> wrote: > > I'm obviously no expert. I hadn't realized that CTS could be used > with ECB as well. However, if I'm understanding > http://en.wikipedia.org/wiki/Ciphertext_stealing correctly, then > things are done differently for ecb vs. cbc, so a generic wrapper

Re: New Crypto Hardware

2008-01-17 Thread Sebastian Siewior
* Loc Ho | 2008-01-17 10:37:20 [-0800]: >struct hash_alg { > int (*init)(struct hash_desc *desc); > int (*update)(struct hash_desc *desc, struct scatterlist *sg, > unsigned int nbytes); > int (*final)(struct hash_desc *desc, u8 *out); > int (*digest)(str

RE: New Crypto Hardware

2008-01-17 Thread Loc Ho
Hi, The current hash_alg struct is: struct hash_alg { int (*init)(struct hash_desc *desc); int (*update)(struct hash_desc *desc, struct scatterlist *sg, unsigned int nbytes); int (*final)(struct hash_desc *desc, u8 *out); int (*digest)(struct

Re: AES with CTS Mode

2008-01-17 Thread Kevin Coffman
On Jan 16, 2008 11:44 PM, Herbert Xu <[EMAIL PROTECTED]> wrote: > On Tue, Jan 15, 2008 at 08:28:15PM +, Kevin Coffman wrote: > > I need to implement AES with CTS mode for NFSv4 (rfc3962 & rfc4121). > > I love new algorithm submissions :) > > > I have implemented CTS starting with a copy of CBC

Re: New Crypto Hardware

2008-01-17 Thread Herbert Xu
On Wed, Jan 16, 2008 at 10:19:04AM -0800, Loc Ho wrote: > Hi, > > For hashing, there are HMAC key if HMAC and digest size. As digest size > is part of the algorithm, there is only HMAC key. Are you referring to > moving the HMAC key from transformation into the request structure? As I > am modeled