public class PBKDF2Engine
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected PBKDF2Parameters |
parameters |
protected com.fr.zip4j.crypto.PBKDF2.PRF |
prf |
构造器和说明 |
---|
PBKDF2Engine() |
PBKDF2Engine(PBKDF2Parameters parameters) |
PBKDF2Engine(PBKDF2Parameters parameters,
com.fr.zip4j.crypto.PBKDF2.PRF prf) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
_F(byte[] dest,
int offset,
com.fr.zip4j.crypto.PBKDF2.PRF prf,
byte[] S,
int c,
int blockIndex) |
protected void |
assertPRF(byte[] P) |
protected int |
ceil(int a,
int b) |
byte[] |
deriveKey(char[] inputPassword) |
byte[] |
deriveKey(char[] inputPassword,
int dkLen) |
PBKDF2Parameters |
getParameters() |
com.fr.zip4j.crypto.PBKDF2.PRF |
getPseudoRandomFunction() |
protected void |
INT(byte[] dest,
int offset,
int i) |
protected byte[] |
PBKDF2(com.fr.zip4j.crypto.PBKDF2.PRF prf,
byte[] S,
int c,
int dkLen) |
void |
setParameters(PBKDF2Parameters parameters) |
void |
setPseudoRandomFunction(com.fr.zip4j.crypto.PBKDF2.PRF prf) |
boolean |
verifyKey(char[] inputPassword) |
protected void |
xor(byte[] dest,
byte[] src) |
protected PBKDF2Parameters parameters
protected com.fr.zip4j.crypto.PBKDF2.PRF prf
public PBKDF2Engine()
public PBKDF2Engine(PBKDF2Parameters parameters)
public PBKDF2Engine(PBKDF2Parameters parameters, com.fr.zip4j.crypto.PBKDF2.PRF prf)
public byte[] deriveKey(char[] inputPassword)
public byte[] deriveKey(char[] inputPassword, int dkLen)
public boolean verifyKey(char[] inputPassword)
protected void assertPRF(byte[] P)
public com.fr.zip4j.crypto.PBKDF2.PRF getPseudoRandomFunction()
protected byte[] PBKDF2(com.fr.zip4j.crypto.PBKDF2.PRF prf, byte[] S, int c, int dkLen)
protected int ceil(int a, int b)
protected void _F(byte[] dest, int offset, com.fr.zip4j.crypto.PBKDF2.PRF prf, byte[] S, int c, int blockIndex)
protected void xor(byte[] dest, byte[] src)
protected void INT(byte[] dest, int offset, int i)
public PBKDF2Parameters getParameters()
public void setParameters(PBKDF2Parameters parameters)
public void setPseudoRandomFunction(com.fr.zip4j.crypto.PBKDF2.PRF prf)