method
iv=
v2_2_9 -
Show latest stable
-
0 notes -
Class: Cipher
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (38)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (-8)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
iv=(p1)
public
Sets the cipher IV. Please note that since you should never be using ECB mode, an IV is always explicitly required and should be set prior to encryption. The IV itself can be safely transmitted in public, but it should be unpredictable to prevent certain kinds of attacks. You may use Cipher#random_iv to create a secure random IV.
Only call this method after calling Cipher#encrypt or Cipher#decrypt.
If not explicitly set, the OpenSSL default of an all-zeroes (“\0”) IV is used.