Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
#include <linux/sched.h>
#include <asm/kmap_types.h>
-#ifdef BUILT_IN_CRYPTO
-#ifdef CONFIG_CRYPTO_HMAC
-#undef CONFIG_CRYPTO_HMAC
-#endif
-
-#ifdef CONFIG_KMOD
-#undef CONFIG_KMOD
-#endif
-#endif /* BUILT_IN_CRYPTO */
-
extern enum km_type crypto_km_types[];
static inline enum km_type crypto_kmap_type(int out)
int ret;
int error;
-#ifdef BUILT_IN_CRYPTO
- ret = arc4_init();
- if (ret) {
- printk(KERN_ERR "arc4_init() failed %d\n", ret);
- return ret;
- }
-
-
- ret = michael_mic_init();
- if (ret) {
- printk(KERN_ERR "michael_mic_init() failed %d\n", ret);
- return ret;
- }
-
- ret = aes_init();
- if (ret) {
- printk(KERN_ERR "aes_init() failed %d\n", ret);
- return ret;
- }
-#endif
ret = rtllib_init();
if (ret) {
printk(KERN_ERR "rtllib_init() failed %d\n", ret);
rtllib_crypto_wep_exit();
rtllib_crypto_deinit();
rtllib_exit();
-#ifdef BUILT_IN_CRYPTO
- arc4_exit();
- michael_mic_exit();
- aes_fini();
-#endif
-
}
void check_rfctrl_gpio_timer(unsigned long data)
#include <asm/page.h>
#include <asm/errno.h>
-#ifdef BUILT_IN_CRYPTO
-#ifdef CONFIG_CRYPTO_HMAC
-#undef CONFIG_CRYPTO_HMAC
-#endif
-
-#ifdef CONFIG_KMOD
-#undef CONFIG_KMOD
-#endif
-#endif /* BUILT_IN_CRYPTO */
-
#define crypto_register_alg crypto_register_alg_rsl
#define crypto_unregister_alg crypto_unregister_alg_rsl
#define crypto_alloc_tfm crypto_alloc_tfm_rsl