linux/drivers/staging/rtl8192e/rtllib_crypt_tkip.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Host AP crypt: host-based TKIP encryption implementation for Host AP driver
 *
 * Copyright (c) 2003-2004, Jouni Malinen <[email protected]>
 */

#include <crypto/arc4.h>
#include <crypto/hash.h>
#include <linux/fips.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/random.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
#include <linux/string.h>
#include <linux/crc32.h>
#include <linux/etherdevice.h>

#include "rtllib.h"

struct rtllib_tkip_data {};

static void *rtllib_tkip_init(int key_idx)
{}

static void rtllib_tkip_deinit(void *priv)
{}

static inline u16 RotR1(u16 val)
{}

static inline u8 Lo8(u16 val)
{}

static inline u8 Hi8(u16 val)
{}

static inline u16 Lo16(u32 val)
{}

static inline u16 Hi16(u32 val)
{}

static inline u16 Mk16(u8 hi, u8 lo)
{}

static inline u16 Mk16_le(u16 *v)
{}

static const u16 Sbox[256] =;

static inline u16 _S_(u16 v)
{}

#define PHASE1_LOOP_COUNT

static void tkip_mixing_phase1(u16 *TTAK, const u8 *TK, const u8 *TA, u32 IV32)
{}

static void tkip_mixing_phase2(u8 *WEPSeed, const u8 *TK, const u16 *TTAK,
			       u16 IV16)
{}

static int rtllib_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
{}

static int rtllib_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
{}

static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr,
		       u8 *data, size_t data_len, u8 *mic)
{}

static void michael_mic_hdr(struct sk_buff *skb, u8 *hdr)
{}

static int rtllib_michael_mic_add(struct sk_buff *skb, int hdr_len, void *priv)
{}

static void rtllib_michael_mic_failure(struct net_device *dev,
				       struct ieee80211_hdr *hdr,
				       int keyidx)
{}

static int rtllib_michael_mic_verify(struct sk_buff *skb, int keyidx,
				     int hdr_len, void *priv)
{}

static int rtllib_tkip_set_key(void *key, int len, u8 *seq, void *priv)
{}

static int rtllib_tkip_get_key(void *key, int len, u8 *seq, void *priv)
{}

static void rtllib_tkip_print_stats(struct seq_file *m, void *priv)
{}

static const struct lib80211_crypto_ops rtllib_crypt_tkip =;

static int __init rtllib_crypto_tkip_init(void)
{}

static void __exit rtllib_crypto_tkip_exit(void)
{}

module_init(rtllib_crypto_tkip_init);
module_exit(rtllib_crypto_tkip_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();