Lines Matching refs:cipher
106 {"", OPT_CIPHER, '-', "Any supported cipher"},
121 EVP_CIPHER *cipher = NULL;
287 cipher = NULL;
307 /* Get the cipher name, either from progname (if set) or flag. */
309 if (!opt_cipher(ciphername, &cipher))
357 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) {
364 EVP_CIPHER_get0_name(cipher),
432 if (cipher != NULL) {
496 int iklen = EVP_CIPHER_get_key_length(cipher);
497 int ivlen = EVP_CIPHER_get_iv_length(cipher);
512 if (!EVP_BytesToKey(cipher, dgst, sptr,
529 int siz = EVP_CIPHER_get_iv_length(cipher);
531 BIO_printf(bio_err, "warning: iv not used by this cipher\n");
538 && EVP_CIPHER_get_iv_length(cipher) != 0) {
547 if (!set_hex(hkey, key, EVP_CIPHER_get_key_length(cipher))) {
565 if (!EVP_CipherInit_ex(ctx, cipher, e, NULL, NULL, enc)) {
566 BIO_printf(bio_err, "Error setting cipher %s\n",
567 EVP_CIPHER_get0_name(cipher));
576 BIO_printf(bio_err, "Error setting cipher %s\n",
577 EVP_CIPHER_get0_name(cipher));
594 if (EVP_CIPHER_get_key_length(cipher) > 0) {
596 for (i = 0; i < EVP_CIPHER_get_key_length(cipher); i++)
600 if (EVP_CIPHER_get_iv_length(cipher) > 0) {
602 for (i = 0; i < EVP_CIPHER_get_iv_length(cipher); i++)
645 EVP_CIPHER_free(cipher);
657 const EVP_CIPHER *cipher;
663 cipher = EVP_get_cipherbyname(name->name);
664 if (cipher == NULL
665 || (EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0
666 || EVP_CIPHER_get_mode(cipher) == EVP_CIPH_XTS_MODE)