Lines Matching refs:cipher
121 EVP_CIPHER *cipher = NULL; in enc_main() local
287 cipher = NULL; in enc_main()
309 if (!opt_cipher(ciphername, &cipher)) in enc_main()
357 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { in enc_main()
364 EVP_CIPHER_get0_name(cipher), in enc_main()
432 if (cipher != NULL) { in enc_main()
496 int iklen = EVP_CIPHER_get_key_length(cipher); in enc_main()
497 int ivlen = EVP_CIPHER_get_iv_length(cipher); in enc_main()
512 if (!EVP_BytesToKey(cipher, dgst, sptr, in enc_main()
529 int siz = EVP_CIPHER_get_iv_length(cipher); in enc_main()
538 && EVP_CIPHER_get_iv_length(cipher) != 0) { in enc_main()
547 if (!set_hex(hkey, key, EVP_CIPHER_get_key_length(cipher))) { in enc_main()
565 if (!EVP_CipherInit_ex(ctx, cipher, e, NULL, NULL, enc)) { in enc_main()
567 EVP_CIPHER_get0_name(cipher)); in enc_main()
577 EVP_CIPHER_get0_name(cipher)); in enc_main()
594 if (EVP_CIPHER_get_key_length(cipher) > 0) { in enc_main()
596 for (i = 0; i < EVP_CIPHER_get_key_length(cipher); i++) in enc_main()
600 if (EVP_CIPHER_get_iv_length(cipher) > 0) { in enc_main()
602 for (i = 0; i < EVP_CIPHER_get_iv_length(cipher); i++) in enc_main()
648 EVP_CIPHER_free(cipher); in enc_main()
660 const EVP_CIPHER *cipher; in show_ciphers() local
666 cipher = EVP_get_cipherbyname(name->name); in show_ciphers()
667 if (cipher == NULL in show_ciphers()
668 || (EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0 in show_ciphers()
669 || EVP_CIPHER_get_mode(cipher) == EVP_CIPH_XTS_MODE) in show_ciphers()