aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rt2860/rtmp_ckipmic.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/rt2860/rtmp_ckipmic.h')
-rw-r--r--drivers/staging/rt2860/rtmp_ckipmic.h45
1 files changed, 15 insertions, 30 deletions
diff --git a/drivers/staging/rt2860/rtmp_ckipmic.h b/drivers/staging/rt2860/rtmp_ckipmic.h
index 39955b914de7..6ff935dd3dd1 100644
--- a/drivers/staging/rt2860/rtmp_ckipmic.h
+++ b/drivers/staging/rt2860/rtmp_ckipmic.h
@@ -37,42 +37,27 @@
#ifndef __RTMP_CKIPMIC_H__
#define __RTMP_CKIPMIC_H__
-typedef struct _MIC_CONTEXT {
+struct rt_mic_context {
/* --- MMH context */
- UCHAR CK[16]; /* the key */
- UCHAR coefficient[16]; /* current aes counter mode coefficients */
- ULONGLONG accum; /* accumulated mic, reduced to u32 in final() */
- UINT position; /* current position (byte offset) in message */
- UCHAR part[4]; /* for conversion of message to u32 for mmh */
-} MIC_CONTEXT, *PMIC_CONTEXT;
+ u8 CK[16]; /* the key */
+ u8 coefficient[16]; /* current aes counter mode coefficients */
+ unsigned long long accum; /* accumulated mic, reduced to u32 in final() */
+ u32 position; /* current position (byte offset) in message */
+ u8 part[4]; /* for conversion of message to u32 for mmh */
+};
-VOID xor_128(
- IN PUCHAR a,
- IN PUCHAR b,
- OUT PUCHAR out);
+void xor_128(u8 *a, u8 *b, u8 *out);
-UCHAR RTMPCkipSbox(
- IN UCHAR a);
+u8 RTMPCkipSbox(u8 a);
-VOID xor_32(
- IN PUCHAR a,
- IN PUCHAR b,
- OUT PUCHAR out);
+void xor_32(u8 *a, u8 *b, u8 *out);
-VOID next_key(
- IN PUCHAR key,
- IN INT round);
+void next_key(u8 *key, int round);
-VOID byte_sub(
- IN PUCHAR in,
- OUT PUCHAR out);
+void byte_sub(u8 *in, u8 *out);
-VOID shift_row(
- IN PUCHAR in,
- OUT PUCHAR out);
+void shift_row(u8 *in, u8 *out);
-VOID mix_column(
- IN PUCHAR in,
- OUT PUCHAR out);
+void mix_column(u8 *in, u8 *out);
-#endif //__RTMP_CKIPMIC_H__
+#endif /*__RTMP_CKIPMIC_H__ */