Class PBKDF2Engine


  • public class PBKDF2Engine
    extends Object
    • Field Detail

      • prf

        protected net.lingala.zip4j.crypto.PBKDF2.PRF prf
    • Constructor Detail

      • PBKDF2Engine

        public PBKDF2Engine()
      • PBKDF2Engine

        public PBKDF2Engine​(PBKDF2Parameters parameters,
                            net.lingala.zip4j.crypto.PBKDF2.PRF prf)
    • Method Detail

      • deriveKey

        public byte[] deriveKey​(char[] inputPassword)
      • deriveKey

        public byte[] deriveKey​(char[] inputPassword,
                                int dkLen)
      • verifyKey

        public boolean verifyKey​(char[] inputPassword)
      • assertPRF

        protected void assertPRF​(byte[] P)
      • getPseudoRandomFunction

        public net.lingala.zip4j.crypto.PBKDF2.PRF getPseudoRandomFunction()
      • PBKDF2

        protected byte[] PBKDF2​(net.lingala.zip4j.crypto.PBKDF2.PRF prf,
                                byte[] S,
                                int c,
                                int dkLen)
      • ceil

        protected int ceil​(int a,
                           int b)
      • _F

        protected void _F​(byte[] dest,
                          int offset,
                          net.lingala.zip4j.crypto.PBKDF2.PRF prf,
                          byte[] S,
                          int c,
                          int blockIndex)
      • xor

        protected void xor​(byte[] dest,
                           byte[] src)
      • INT

        protected void INT​(byte[] dest,
                           int offset,
                           int i)
      • setPseudoRandomFunction

        public void setPseudoRandomFunction​(net.lingala.zip4j.crypto.PBKDF2.PRF prf)