Lines Matching defs:iv
347 unsigned char iv[EVP_MAX_IV_LENGTH];
389 OPENSSL_assert(enc->iv_len <= (int)sizeof(iv));
390 if (RAND_pseudo_bytes(iv, enc->iv_len) < 0) /* Generate a salt */
393 * The 'iv' is used as the iv and as a salt. It is NOT taken from
396 if (!EVP_BytesToKey(enc, EVP_md5(), iv, kstr, klen, 1, key, NULL))
407 PEM_dek_info(buf, objstr, enc->iv_len, (char *)iv);
412 if (!EVP_EncryptInit_ex(&ctx, enc, NULL, key, iv)
429 OPENSSL_cleanse(iv, sizeof(iv));
465 if (!EVP_BytesToKey(cipher->cipher, EVP_md5(), &(cipher->iv[0]),
471 o = EVP_DecryptInit_ex(&ctx, cipher->cipher, NULL, key, &(cipher->iv[0]));
547 if (!load_iv(header_pp, &(cipher->iv[0]), enc->iv_len))