Lines Matching refs:cipher
302 printf ("The following ciphers and cipher modes are available\n"
303 "for use with " PACKAGE_NAME ". Each cipher shown below may be\n"
304 "used as a parameter to the --cipher option. The default\n"
312 const EVP_CIPHER *cipher = EVP_get_cipherbynid (nid);
313 if (cipher && cipher_ok (OBJ_nid2sn (nid)))
315 const unsigned int mode = EVP_CIPHER_mode (cipher);
323 EVP_CIPHER_key_length (cipher) * 8,
324 ((EVP_CIPHER_flags (cipher) & EVP_CIPH_VARIABLE_LENGTH) ?
478 * Generic cipher key type functions
486 const EVP_CIPHER *cipher = NULL;
490 cipher = EVP_get_cipherbyname (ciphername);
492 if ((NULL == cipher) || !cipher_ok (OBJ_nid2sn (EVP_CIPHER_nid (cipher))))
495 if (EVP_CIPHER_key_length (cipher) > MAX_CIPHER_KEY_LENGTH)
498 EVP_CIPHER_key_length (cipher),
501 return cipher;
508 return "[null-cipher]";
539 * Generic cipher context functions
554 msg (M_SSLERR, "EVP cipher init #1");
560 msg (M_SSLERR, "EVP cipher init #2");