Class PBKDF2Engine

java.lang.Object
net.lingala.zip4j.crypto.PBKDF2.PBKDF2Engine

public class PBKDF2Engine extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • 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)