/*
 * Copyright 2003-2004, Instant802 Networks, Inc.
 * Copyright 2006, Devicescape Software, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef AES_CCM_H
#define AES_CCM_H

#include <linux/crypto.h>

#define CCM_AAD_LEN	32

struct crypto_aead *ieee80211_aes_key_setup_encrypt(const u8 key[],
						    size_t key_len,
						    size_t mic_len);
int ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
			      u8 *data, size_t data_len, u8 *mic,
			      size_t mic_len);
int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
			      u8 *data, size_t data_len, u8 *mic,
			      size_t mic_len);
void ieee80211_aes_key_free(struct crypto_aead *tfm);

#endif /* AES_CCM_H */
net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='b60a00f9c5f14695991cb77dce7e926623269d88'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/perf/Documentation/examples.txt?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/Documentation/examples.txt?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/Documentation/examples.txt?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/Documentation/examples.txt?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/Documentation/examples.txt'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='b60a00f9c5f14695991cb77dce7e926623269d88'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/Documentation?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>Documentation</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/Documentation/examples.txt?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88'>examples.txt</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/Documentation/examples.txt?h=nds-private-remove&amp;id=b60a00f9c5f14695991cb77dce7e926623269d88&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>