<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>ieee80211_get_tkip_p2k</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="The 802.11 subsystems – for kernel developers" /><link rel="up" href="hardware-crypto-offload.html" title="Chapter 8. Hardware crypto acceleration" /><link rel="prev" href="API-ieee80211-get-tkip-p1k-iv.html" title="ieee80211_get_tkip_p1k_iv" /><link rel="next" href="powersave.html" title="Chapter 9. Powersave support" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">ieee80211_get_tkip_p2k</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ieee80211-get-tkip-p1k-iv.html">Prev</a> </td><th width="60%" align="center">Chapter 8. Hardware crypto acceleration</th><td width="20%" align="right"> <a accesskey="n" href="powersave.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="API-ieee80211-get-tkip-p2k"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ieee80211_get_tkip_p2k — get a TKIP phase 2 key </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <strong class="fsfunc">ieee80211_get_tkip_p2k </strong>(</code></td><td>struct ieee80211_key_conf * <var class="pdparam">keyconf</var>, </td></tr><tr><td> </td><td>struct sk_buff * <var class="pdparam">skb</var>, </td></tr><tr><td> </td><td>u8 * <var class="pdparam">p2k</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a id="idm139754517012800"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>keyconf</code></em></span></dt><dd><p> the parameter passed with the set key </p></dd><dt><span class="term"><em class="parameter"><code>skb</code></em></span></dt><dd><p> the packet to take the IV32/IV16 values from that will be encrypted with this key </p></dd><dt><span class="term"><em class="parameter"><code>p2k</code></em></span></dt><dd><p> a buffer to which the key will be written, 16 bytes </p></dd></dl></div></div><div class="refsect1"><a id="idm139754517005520"></a><h2>Description</h2><p> </p><p> This function computes the TKIP RC4 key for the IV values in the packet. </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ieee80211-get-tkip-p1k-iv.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="hardware-crypto-offload.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="powersave.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ieee80211_get_tkip_p1k_iv</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 9. Powersave support</td></tr></table></div></body></html>