Lines Matching refs:cipher
225 EVP_CIPHER_INFO cipher;
244 if (!PEM_get_EVP_CIPHER_INFO(header,&cipher)) goto err;
245 if (!PEM_do_header(&cipher,data,&len,cb,u)) goto err;
311 /* actually it needs the cipher block size extra... */
385 int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
396 if (cipher->cipher == NULL) return(1);
411 EVP_BytesToKey(cipher->cipher,EVP_md5(),&(cipher->iv[0]),
416 EVP_DecryptInit_ex(&ctx,cipher->cipher,NULL, key,&(cipher->iv[0]));
432 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
439 cipher->cipher=NULL;
475 cipher->cipher=enc=EVP_get_cipherbyname(p);
484 if (!load_iv(header_pp,&(cipher->iv[0]),enc->iv_len))