On Mon, Aug 21, 2006 at 08:58:30AM +1000, Herbert Xu wrote: > On Sun, Aug 20, 2006 at 06:49:08PM +0400, Solar Designer wrote: > > > > Can we maybe define working but IV-ignoring functions for ECB (like I > > did), but use memory-clearing nocrypt*() for CFB and CTR (as long as > > these are not supported)? Of course, all of these will return -ENOSYS. > > In cryptodev-2.6, with block ciphers you can no longer select CFB/CTR > until someone writes support for them so this is no longer an issue. > > For 2.4, I don't really mind either way what nocrypt does. OK, I've merged Willy's suggestion for the memset()s into the patch that I had submitted previously. The resulting patch is attached. Alexander