Lines Matching refs:cipher
278 EVP_CIPHER_INFO cipher;
296 if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
298 if (!PEM_do_header(&cipher, data, &len, cb, u))
363 /* actually it needs the cipher block size extra... */
439 int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
450 if (cipher->cipher == NULL)
465 if (!EVP_BytesToKey(cipher->cipher, EVP_md5(), &(cipher->iv[0]),
471 o = EVP_DecryptInit_ex(&ctx, cipher->cipher, NULL, key, &(cipher->iv[0]));
489 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
495 cipher->cipher = NULL;
539 cipher->cipher = enc = EVP_get_cipherbyname(p);
547 if (!load_iv(header_pp, &(cipher->iv[0]), enc->iv_len))