Lines Matching refs:ciphers
140 } ciphers[] = {
248 for (i = 0; ciphers[i].id; i++)
249 if (ciphers[i].id == cipher)
250 return (ciphers[i].ivmax);
264 for (i = 0; ciphers[i].id; i++)
265 if (ciphers[i].id == cipher)
266 return (ciphers[i].keylen == len);
275 for (i = 0; ciphers[i].id; i++)
276 if (ciphers[i].nid == nid)
277 return (ciphers[i].id);
282 * Find out what ciphers /dev/crypto will let us have a session for.
300 for (i = 0; ciphers[i].id && count < CRYPTO_ALGORITHM_MAX; i++) {
301 if (ciphers[i].nid == NID_undef)
303 sess.cipher = ciphers[i].id;
304 sess.keylen = ciphers[i].keylen;
308 nids[count++] = ciphers[i].nid;
358 * Find the useable ciphers|digests from dev/crypto - this is the first
360 * can use for ciphers from this engine. We want to return