/*
 * Copyright 2014-2015, Qualcomm Atheros, 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_GCM_H
#define AES_GCM_H

#include <linux/crypto.h>

#define GCM_AAD_LEN	32

int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad,
			      u8 *data, size_t data_len, u8 *mic);
int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad,
			      u8 *data, size_t data_len, u8 *mic);
struct crypto_aead *ieee80211_aes_gcm_key_setup_encrypt(const u8 key[],
							size_t key_len);
void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm);

#endif /* AES_GCM_H */
ndex</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='2372bcda5e681bc85d57a3604265155e1a4c040b'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>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/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/sctp/ulpqueue.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/sctp/ulpqueue.c?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/sctp/ulpqueue.c?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/sctp/ulpqueue.c?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/sctp/ulpqueue.c'>
<input type='hidden' name='id' value='2372bcda5e681bc85d57a3604265155e1a4c040b'/><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/?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sctp?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>sctp</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sctp/ulpqueue.c?id=2372bcda5e681bc85d57a3604265155e1a4c040b'>ulpqueue.c</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/net/sctp/ulpqueue.c?id=2372bcda5e681bc85d57a3604265155e1a4c040b&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>