Package net.lingala.zip4j.crypto.PBKDF2
Class PBKDF2Engine
java.lang.Object
net.lingala.zip4j.crypto.PBKDF2.PBKDF2Engine
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPBKDF2Engine
(PBKDF2Parameters parameters) PBKDF2Engine
(PBKDF2Parameters parameters, PRF prf) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
assertPRF
(byte[] P) private int
ceil
(int a, int b) byte[]
deriveKey
(char[] inputPassword, int dkLen, boolean useUtf8ForPassword) protected void
INT
(byte[] dest, int offset, int i) private byte[]
void
setParameters
(PBKDF2Parameters parameters) void
private void
xor
(byte[] dest, byte[] src)
-
Field Details
-
parameters
-
prf
-
-
Constructor Details
-
PBKDF2Engine
-
PBKDF2Engine
-
-
Method Details
-
deriveKey
public byte[] deriveKey(char[] inputPassword, int dkLen, boolean useUtf8ForPassword) -
assertPRF
private void assertPRF(byte[] P) -
PBKDF2
-
ceil
private int ceil(int a, int b) -
_F
-
xor
private void xor(byte[] dest, byte[] src) -
INT
protected void INT(byte[] dest, int offset, int i) -
getParameters
-
setParameters
-
setPseudoRandomFunction
-