Package net.lingala.zip4j.crypto.PBKDF2
Class PBKDF2Engine
- java.lang.Object
-
- net.lingala.zip4j.crypto.PBKDF2.PBKDF2Engine
-
public class PBKDF2Engine extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private PBKDF2Parametersparametersprivate PRFprf
-
Constructor Summary
Constructors Constructor Description PBKDF2Engine(PBKDF2Parameters parameters)PBKDF2Engine(PBKDF2Parameters parameters, PRF prf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void_F(byte[] dest, int offset, PRF prf, byte[] S, int c, int blockIndex)private voidassertPRF(byte[] P)private intceil(int a, int b)byte[]deriveKey(char[] inputPassword, int dkLen, boolean useUtf8ForPassword)PBKDF2ParametersgetParameters()protected voidINT(byte[] dest, int offset, int i)private byte[]PBKDF2(PRF prf, byte[] S, int c, int dkLen)voidsetParameters(PBKDF2Parameters parameters)voidsetPseudoRandomFunction(PRF prf)private voidxor(byte[] dest, byte[] src)
-
-
-
Field Detail
-
parameters
private PBKDF2Parameters parameters
-
prf
private PRF prf
-
-
Constructor Detail
-
PBKDF2Engine
public PBKDF2Engine(PBKDF2Parameters parameters)
-
PBKDF2Engine
public PBKDF2Engine(PBKDF2Parameters parameters, PRF prf)
-
-
Method Detail
-
deriveKey
public byte[] deriveKey(char[] inputPassword, int dkLen, boolean useUtf8ForPassword)
-
assertPRF
private void assertPRF(byte[] P)
-
PBKDF2
private byte[] PBKDF2(PRF prf, byte[] S, int c, int dkLen)
-
ceil
private int ceil(int a, int b)
-
_F
private void _F(byte[] dest, int offset, PRF prf, byte[] S, int c, int blockIndex)
-
xor
private void xor(byte[] dest, byte[] src)
-
INT
protected void INT(byte[] dest, int offset, int i)
-
getParameters
public PBKDF2Parameters getParameters()
-
setParameters
public void setParameters(PBKDF2Parameters parameters)
-
setPseudoRandomFunction
public void setPseudoRandomFunction(PRF prf)
-
-