1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct ieee80211_key_conf</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-enum-set-key-cmd.html" title="enum set_key_cmd"><link rel="next" href="API-enum-ieee80211-key-flags.html" title="enum ieee80211_key_flags"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct ieee80211_key_conf</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-enum-set-key-cmd.html">Prev</a> </td><th width="60%" align="center">Chapter 8. Hardware crypto acceleration</th><td width="20%" align="right"> <a accesskey="n" href="API-enum-ieee80211-key-flags.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-ieee80211-key-conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ieee80211_key_conf — 2 key information 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct ieee80211_key_conf { 5 u32 cipher; 6 u8 icv_len; 7 u8 iv_len; 8 u8 hw_key_idx; 9 u8 flags; 10 s8 keyidx; 11 u8 keylen; 12 u8 key[0]; 13}; </pre></div><div class="refsect1"><a name="idp1114021020"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">cipher</span></dt><dd><p> 14The key's cipher suite selector. 15 </p></dd><dt><span class="term">icv_len</span></dt><dd><p> 16The ICV length for this key type 17 </p></dd><dt><span class="term">iv_len</span></dt><dd><p> 18The IV length for this key type 19 </p></dd><dt><span class="term">hw_key_idx</span></dt><dd><p> 20To be set by the driver, this is the key index the driver 21wants to be given when a frame is transmitted and needs to be 22encrypted in hardware. 23 </p></dd><dt><span class="term">flags</span></dt><dd><p> 24key flags, see <span class="structname">enum</span> ieee80211_key_flags. 25 </p></dd><dt><span class="term">keyidx</span></dt><dd><p> 26the key index (0-3) 27 </p></dd><dt><span class="term">keylen</span></dt><dd><p> 28key material length 29 </p></dd><dt><span class="term">key[0]</span></dt><dd><p> 30key material. For ALG_TKIP the key is encoded as a 256-bit (32 byte) 31 </p></dd></dl></div></div><div class="refsect1"><a name="idp1114027548"></a><h2>Description</h2><p> 32 </p><p> 33 34 This key information is given by mac80211 to the driver by 35 the <code class="function">set_key</code> callback in <span class="structname">struct ieee80211_ops</span>. 36</p></div><div class="refsect1"><a name="idp1114028940"></a><h2>data block</h2><p> 37 - Temporal Encryption Key (128 bits) 38 - Temporal Authenticator Tx MIC Key (64 bits) 39 - Temporal Authenticator Rx MIC Key (64 bits) 40</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-enum-set-key-cmd.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="API-enum-ieee80211-key-flags.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">enum set_key_cmd</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">enum ieee80211_key_flags</span></td></tr></table></div></body></html> 41