Lines Matching defs:cipher
276 EVP_CIPHER_INFO cipher;
295 if (!PEM_get_EVP_CIPHER_INFO(header,&cipher)) goto err;
296 if (!PEM_do_header(&cipher,data,&len,cb,u)) goto err;
362 /* actually it needs the cipher block size extra... */
440 int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
451 if (cipher->cipher == NULL) return(1);
466 if (!EVP_BytesToKey(cipher->cipher,EVP_md5(),&(cipher->iv[0]),
472 o = EVP_DecryptInit_ex(&ctx,cipher->cipher,NULL, key,&(cipher->iv[0]));
490 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
496 cipher->cipher=NULL;
531 cipher->cipher=enc=EVP_get_cipherbyname(p);
540 if (!load_iv(header_pp,&(cipher->iv[0]),enc->iv_len))