On Tue, May 22, 2007 at 05:19:19PM +0200, Sebastian Siewior (linux-crypto@xxxxxxxxxxxxxxxx) wrote: > * Evgeniy Polyakov | 2007-05-22 16:58:29 [+0400]: > > >Current driver only supports AES ECB encrypt/decrypt, since I do not > >know how to detect operation mode in runtime (a question). > Take a look on my skeleton driver (posted just a few seconds ago). It > should solve your problem here. It does not - your code only supposed to work with ecb, since it is what was requested during initialization time. This new scheme with templates helps alot for ciphers/crypto modes which do not support several templates, so I used old scheme with 'cipher' only template, not 'ecb(cipher)', 'cbc(cipher)' and so on. And, btw, do not use mutex in encryption path, it is not supposed to sleep in ipsec. HIFN supports at least 12 different ciphers/mode (3des, des and aes, each one with 4 modes), so it is not a good idea to put them all into separated structures, so I rised a question about it. > Sebastian -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html