public class PBKDF2Engine extends Object
Modifier and Type | Field and Description |
---|---|
protected PBKDF2Parameters |
parameters |
protected net.lingala.zip4j.crypto.PBKDF2.PRF |
prf |
Constructor and Description |
---|
PBKDF2Engine() |
PBKDF2Engine(PBKDF2Parameters parameters) |
PBKDF2Engine(PBKDF2Parameters parameters,
net.lingala.zip4j.crypto.PBKDF2.PRF prf) |
Modifier and Type | Method and Description |
---|---|
protected void |
_F(byte[] dest,
int offset,
net.lingala.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() |
net.lingala.zip4j.crypto.PBKDF2.PRF |
getPseudoRandomFunction() |
protected void |
INT(byte[] dest,
int offset,
int i) |
protected byte[] |
PBKDF2(net.lingala.zip4j.crypto.PBKDF2.PRF prf,
byte[] S,
int c,
int dkLen) |
void |
setParameters(PBKDF2Parameters parameters) |
void |
setPseudoRandomFunction(net.lingala.zip4j.crypto.PBKDF2.PRF prf) |
boolean |
verifyKey(char[] inputPassword) |
protected void |
xor(byte[] dest,
byte[] src) |
protected PBKDF2Parameters parameters
protected net.lingala.zip4j.crypto.PBKDF2.PRF prf
public PBKDF2Engine()
public PBKDF2Engine(PBKDF2Parameters parameters)
public PBKDF2Engine(PBKDF2Parameters parameters, net.lingala.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 net.lingala.zip4j.crypto.PBKDF2.PRF getPseudoRandomFunction()
protected byte[] PBKDF2(net.lingala.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, net.lingala.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(net.lingala.zip4j.crypto.PBKDF2.PRF prf)
Copyright © 2013. All rights reserved.