Lines Matching refs:cipher
90 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
101 alg_nid = EVP_CIPHER_type(cipher);
120 if (EVP_CIPHER_iv_length(cipher)) {
122 memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher));
123 else if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0)
130 if (!EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0))
138 * If prf NID unspecified see if cipher has a preference. An error is OK
151 keylen = EVP_CIPHER_key_length(cipher);
198 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
201 return PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, -1);