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... */
436 int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
447 if (cipher->cipher == NULL) return(1);
462 EVP_BytesToKey(cipher->cipher,EVP_md5(),&(cipher->iv[0]),
467 EVP_DecryptInit_ex(&ctx,cipher->cipher,NULL, key,&(cipher->iv[0]));
483 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
489 cipher->cipher=NULL;
524 cipher->cipher=enc=EVP_get_cipherbyname(p);
533 if (!load_iv(header_pp,&(cipher->iv[0]),enc->iv_len))