Lines Matching defs:cipher

55  * Table of registered cipher modules.
116 * Establish a relationship between the specified key and cipher
129 ieee80211_crypto_newkey(ieee80211com_t *ic, int cipher, int flags,
138 * Validate cipher and set reference to cipher routines.
140 if (cipher >= IEEE80211_CIPHER_MAX) {
142 "invalid cipher %u\n", cipher);
145 cip = ic->ic_ciphers[cipher];
149 "unable to load cipher %u, module %s\n",
150 cipher, cipher < IEEE80211_N(cipher_modnames) ?
151 cipher_modnames[cipher] : "<unknown>");
158 * If the hardware does not support the cipher then
161 if ((ic->ic_caps & (1<<cipher)) == 0) {
163 "no h/w support for cipher %s, falling back to s/w\n",
170 * the cipher modules honor it.
172 if (cipher == IEEE80211_CIPHER_TKIP &&
180 * Bind cipher to key instance. Note we do this
182 * cipher module can optimize space usage based on
183 * whether or not it needs to do the cipher work.
188 * Fillin the flags so cipher modules can see s/w
197 "unable to attach cipher %s\n", cip->ic_name);
201 CIPHER_DETACH(key); /* Detach old cipher */
215 * cipher template. Note also that when using software
231 "no h/w resources for cipher %s, "
235 if (cipher == IEEE80211_CIPHER_TKIP)
240 "unable to setup cipher %s\n", cip->ic_name);
326 * Give cipher a chance to validate key contents.
331 "cipher %s rejected key index %u len %u flags 0x%x\n",
360 uint32_t cipher;
377 cipher = key->wk_cipher->ic_cipher;
378 ASSERT(cipher < IEEE80211_N(ciphermap));
379 return (ciphermap[cipher]);
464 * This is useful especially for the cipher test modules.
491 * Register a crypto cipher module.
499 "cipher %s has an invalid cipher index %u\n",
506 "cipher %s registered with a different template\n",
514 * Unregister a crypto cipher module.
522 "cipher %s has an invalid cipher index %u\n",
529 "cipher %s registered with a different template\n",