Lines Matching defs:u8
90 typedef uint8_t u8;
100 u8 tx_rc4key[16]; /* XXX for test module; make locals? */
104 u8 rx_rc4key[16]; /* XXX for test module; make locals? */
108 static void michael_mic(struct tkip_ctx *, const u8 *key,
110 u8 mic[IEEE80211_WEP_MICLEN]);
328 u8 mic[IEEE80211_WEP_MICLEN];
329 u8 mic0[IEEE80211_WEP_MICLEN];
433 static __inline u8 Lo8(u16 val)
438 static __inline u8 Hi8(u16 val)
453 static __inline u16 Mk16(u8 hi, u8 lo)
506 static void tkip_mixing_phase1(u16 *TTAK, const u8 *TK, const u8 *TA, u32 IV32)
531 static void tkip_mixing_phase2(u8 *WEPSeed, const u8 *TK, const u16 *TTAK,
578 wep_encrypt(u8 *key, struct mbuf *m0, u_int off, size_t data_len,
583 u8 S[256];
584 u8 *pos;
586 #define S_SWAP(a,b) do { u8 t = S[a]; S[a] = S[b]; S[b] = t; } while(0)
639 wep_decrypt(u8 *key, struct mbuf *m, u_int off, size_t data_len)
642 u8 S[256];
643 u8 *pos, icv[4];
734 static __inline u32 get_le32_split(u8 b0, u8 b1, u8 b2, u8 b3)
739 static __inline u32 get_le32(const u8 *p)
745 static __inline void put_le32(u8 *p, u32 v)
791 michael_mic(struct tkip_ctx *ctx, const u8 *key,
793 u8 mic[IEEE80211_WEP_MICLEN])