Package com.itextpdf.kernel.crypto
Class IVGenerator
java.lang.Object
com.itextpdf.kernel.crypto.IVGenerator
An initialization vector generator for a CBC block encryption. It's a random generator based on ARCFOUR.
-
Method Summary
-
Method Details
-
getIV
public static byte[] getIV()Gets a 16 byte random initialization vector.- Returns:
- a 16 byte random initialization vector
-
getIV
public static byte[] getIV(int len) Gets a random initialization vector.- Parameters:
-
len
- the length of the initialization vector - Returns:
- a random initialization vector
-