Class PBKDF2Engine


  • public class PBKDF2Engine
    extends java.lang.Object
    • 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)
      • setPseudoRandomFunction

        public void setPseudoRandomFunction​(PRF prf)