summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ks7010/michael_mic.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2016-05-31 12:56:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-07 22:42:53 -0700
commit13a9930d15b424ab7d3b906af8ba7ff8c409edfe (patch)
treeca1490a09b5f633a1cec5014dd360ad5c934f336 /drivers/staging/ks7010/michael_mic.h
parente3c9078af85dceaa6cda2a573c4bf0be7d978bc4 (diff)
downloadop-kernel-dev-13a9930d15b424ab7d3b906af8ba7ff8c409edfe.zip
op-kernel-dev-13a9930d15b424ab7d3b906af8ba7ff8c409edfe.tar.gz
staging: ks7010: add driver from Nanonote extra-repository
See the TODO for details where this driver came from. Only a few minor changes were made to make the driver suitable for staging: * updated Kconfig help text and dependencies * added TODO * removed two __DATE__ and __TIME__ printouts to allow reproducible builds * added to staging main Kconfig + Makefile Tested on a Renesas Salvator-X board with a Spectec SDW-823 card. I could connect to a WPA-protected network. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010/michael_mic.h')
-rw-r--r--drivers/staging/ks7010/michael_mic.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/staging/ks7010/michael_mic.h b/drivers/staging/ks7010/michael_mic.h
new file mode 100644
index 0000000..f14f160
--- /dev/null
+++ b/drivers/staging/ks7010/michael_mic.h
@@ -0,0 +1,29 @@
+/*
+ * Driver for KeyStream wireless LAN
+ *
+ * michael_mic.h
+ * $Id: michael_mic.h 991 2009-09-14 01:38:58Z sekine $
+ *
+ * Copyright (C) 2005-2008 KeyStream Corp.
+ * Copyright (C) 2009 Renesas Technology Corp.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it undr the terms of the GNU General Public License version 2 as
+ * published by the Free Sotware Foundation.
+ */
+
+/* MichelMIC routine define */
+struct michel_mic_t {
+ uint32_t K0; // Key
+ uint32_t K1; // Key
+ uint32_t L; // Current state
+ uint32_t R; // Current state
+ uint8_t M[4]; // Message accumulator (single word)
+ int nBytesInM; // # bytes in M
+ uint8_t Result[8];
+};
+
+extern
+void MichaelMICFunction( struct michel_mic_t *Mic, uint8_t *Key,
+ uint8_t *Data, int Len, uint8_t priority,
+ uint8_t *Result );
OpenPOWER on IntegriCloud