Lines Matching defs:cipher
122 const EVP_CIPHER *cipher = NULL, *c;
153 cipher = EVP_get_cipherbyname(pname);
155 if (!do_zlib && !base64 && (cipher == NULL)
158 if (!base64 && (cipher == NULL) && (strcmp(pname, "enc") != 0))
161 BIO_printf(bio_err, "%s is an unknown cipher\n", pname);
273 cipher = c;
275 cipher = NULL;
329 if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) {
335 if (cipher && (EVP_CIPHER_mode(cipher) == EVP_CIPH_XTS_MODE)) {
419 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) {
424 OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
492 if (cipher != NULL) {
540 EVP_BytesToKey(cipher, dgst, sptr,
552 int siz = EVP_CIPHER_iv_length(cipher);
554 BIO_printf(bio_err, "warning: iv not use by this cipher\n");
561 && EVP_CIPHER_iv_length(cipher) != 0) {
570 if ((hkey != NULL) && !set_hex(hkey, key, EVP_CIPHER_key_length(cipher))) {
588 if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc)) {
589 BIO_printf(bio_err, "Error setting cipher %s\n",
590 EVP_CIPHER_name(cipher));
599 BIO_printf(bio_err, "Error setting cipher %s\n",
600 EVP_CIPHER_name(cipher));
617 if (cipher->key_len > 0) {
619 for (i = 0; i < cipher->key_len; i++)
623 if (cipher->iv_len > 0) {
625 for (i = 0; i < cipher->iv_len; i++)