Marc St-Jean <[EMAIL PROTECTED]> wrote: > > I'm porting a security engine driver from 2.6.18 to 2.6.21/22. I've found > that although 'cit_mode' is still in struct cipher_tfm, the definitions > for CRYPTO_TFM_MODE_ECB and CRYPTO_TFM_MODE_CBC are gone!
Thanks for noticing it, I'll make sure that cit_mode disappears :) > Our HW needs to know what mode to set up some SA flags. Any advice on > how to best find this mode from a common cipher function which can handle > AES, DES and 3DES? The block algorithm is now part of the name just like the cipher algorithm itself. So if you're providing a block cipher you should register it as "cbc(aes)" (for example) instead of "aes" as you would've done previously. Check out drivers/crypto/padlock* for a good example. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html