Licensing Information

Open Source Used In Cisco Nexus 9000 Series 7.0(3)I5(1)
3244
SLAB_HWCACHE_ALIGN, NULL
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
, NULL
#endif
 );
if (!qcache) {
printk("failed to create Qcache\n");
return -ENOENT;
}
memset(&ixpdev, 0, sizeof(ixpdev));
softc_device_init(&ixpdev, "ixp4xx", 0, ixp_methods);
ixp_id = crypto_get_driverid(softc_get_device(&ixpdev),
CRYPTOCAP_F_HARDWARE);
if (ixp_id < 0)
panic("IXP/OCF crypto device cannot initialize!");
#defineREGISTER(alg) \
crypto_register(ixp_id,alg,0,0)
REGISTER(CRYPTO_DES_CBC);
REGISTER(CRYPTO_3DES_CBC);
REGISTER(CRYPTO_RIJNDAEL128_CBC);
#ifdef CONFIG_OCF_IXP4XX_SHA1_MD5
REGISTER(CRYPTO_MD5);
REGISTER(CRYPTO_SHA1);
#endif
REGISTER(CRYPTO_MD5_HMAC);
REGISTER(CRYPTO_SHA1_HMAC);
#undef REGISTER
#ifdef __ixp46X
spin_lock_init(&ixp_pkq_lock);
/*
 * we do not enable the go fast options here as they can potentially
 * allow timing based attacks
 *
 * http://www.openssl.org/news/secadv_20030219.txt
 */
ixCryptoAccPkeEauExpConfig(0, 0);
crypto_kregister(ixp_id, CRK_MOD_EXP, 0);
#ifdef CONFIG_OCF_RANDOMHARVEST
crypto_rregister(ixp_id, ixp_read_random, NULL);
#endif
#endif
return 0;