Lines Matching refs:cipher
92 const EVP_CIPHER *cipher;
98 cipher = EVP_get_cipherbyname(name->name);
99 if (cipher == NULL ||
100 (EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) != 0 ||
101 EVP_CIPHER_mode(cipher) == EVP_CIPH_XTS_MODE)
134 const EVP_CIPHER *cipher = NULL, *c;
165 cipher = EVP_get_cipherbyname(pname);
167 if (!do_zlib && !base64 && (cipher == NULL)
170 if (!base64 && (cipher == NULL) && (strcmp(pname, "enc") != 0))
173 BIO_printf(bio_err, "%s is an unknown cipher\n", pname);
285 cipher = c;
287 cipher = NULL;
341 if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) {
347 if (cipher && (EVP_CIPHER_mode(cipher) == EVP_CIPH_XTS_MODE)) {
431 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) {
436 OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
504 if (cipher != NULL) {
552 EVP_BytesToKey(cipher, dgst, sptr,
564 int siz = EVP_CIPHER_iv_length(cipher);
566 BIO_printf(bio_err, "warning: iv not use by this cipher\n");
573 && EVP_CIPHER_iv_length(cipher) != 0) {
582 if ((hkey != NULL) && !set_hex(hkey, key, EVP_CIPHER_key_length(cipher))) {
600 if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc)) {
601 BIO_printf(bio_err, "Error setting cipher %s\n",
602 EVP_CIPHER_name(cipher));
611 BIO_printf(bio_err, "Error setting cipher %s\n",
612 EVP_CIPHER_name(cipher));
629 if (cipher->key_len > 0) {
631 for (i = 0; i < cipher->key_len; i++)
635 if (cipher->iv_len > 0) {
637 for (i = 0; i < cipher->iv_len; i++)