alistair23-linux/drivers/staging/ks7010/michael_mic.h
Sergio Paracuellos a0a954b151 staging: ks7010: add SPDX identifiers to all files
It's good to have SPDX identifiers in all files to make it easier to
audit the kernel tree for correct licenses.

Fix up the all of the staging ks7010 files to have a proper SPDX
identifier, based on the license text in the file itself.  The SPDX
identifier is a legally binding shorthand, which can be used instead of
the full boiler plate text.

Extra GPL text wording can be removed as it is no longer needed at all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-06 18:58:36 -07:00

22 lines
533 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Driver for KeyStream wireless LAN
*
* Copyright (C) 2005-2008 KeyStream Corp.
* Copyright (C) 2009 Renesas Technology Corp.
*/
/* MichaelMIC routine define */
struct michael_mic {
u32 k0; // Key
u32 k1; // Key
u32 l; // Current state
u32 r; // Current state
u8 m[4]; // Message accumulator (single word)
int m_bytes; // # bytes in M
u8 result[8];
};
void michael_mic_function(struct michael_mic *mic, u8 *key,
u8 *data, unsigned int len, u8 priority, u8 *result);