com.lowagie.text.pdf.crypto
Class IVGenerator
java.lang.Object
com.lowagie.text.pdf.crypto.IVGenerator
- public class IVGenerator
- extends Object
An initialization vector generator for a CBC block encryption. It's a random generator based on RC4.
- Author:
- Paulo Soares (psoares@consiste.pt)
Constructor Summary |
private |
IVGenerator()
Creates a new instance of IVGenerator |
Method Summary |
static byte[] |
getIV()
Gets a 16 byte random initialization vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rc4
private static RC4Encryption rc4
IVGenerator
private IVGenerator()
- Creates a new instance of IVGenerator
getIV
public static byte[] getIV()
- Gets a 16 byte random initialization vector.
- Returns:
- a 16 byte random initialization vector