Jivin Park, Jin Hyung lays it down ...
> Hello :)
>
> im working on some cryptographic linux kernel module with ixp425
> chipset.
>
> i'm using the intel access library 1.4.
>
> i have a problem with calling "ixCryptoAccInit()".
>
> just my thought, i need to call it in module init() function, like
>
> 91 if (IX_SUCCESS != ixCryptoAccConfig
> (IX_CRYPTO_ACC_CFG_CRYPTO_WEP_NPE_ACC_EN))
> 92 {
> 93 printk("Error AccConfig!\n");
> 94 return IX_FAIL;
> 95 }
> 96
> 97 if (IX_SUCCESS != ixCryptoAccInit())
> 98 {
> 99 printk("Error ixCryptoAccInit!\n");
> 100 //return IX_FAIL;
> 101 }
>
> but in my module, ixCryptoAccInit always returns IX_FAIL !
Thats probably because the network driver (or someone else) has already
initted it for you.
> i couldnt find the reason. could anybody explain it for me?
>
> another question, does i need to call all of ixNpeDlNpeInitAndStart
> (), IxCryptoAccConfig(), ixCryptoAccinit() before using ixCryptoAcc ?
Have a look at the ixp4xx driver in ocf-linux for how to do all this:
http://ocf-linux.sourceforge.net/
Cheers,
Davidm
--
David McCullough, [EMAIL PROTECTED], Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com
-
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