Class PDFEncryptionJCE.RevBefore5Engine

    • Field Detail

      • padding

        protected final byte[] padding
        Padding for passwords.
    • Method Detail

      • preparePassword

        protected byte[] preparePassword​(java.lang.String password)
        Adds padding to the password as directed in page 78 of the PDF 1.4 Reference.
        Specified by:
        preparePassword in class PDFEncryptionJCE.InitializationEngine
        Parameters:
        password - the password
        Returns:
        the password with additional padding if necessary
      • computeOValueStep3

        protected abstract byte[] computeOValueStep3​(byte[] hash)
      • computeOValueStep7

        protected abstract byte[] computeOValueStep7​(byte[] key,
                                                     byte[] encryptionResult)
      • createEncryptionKeyStep6

        protected abstract byte[] createEncryptionKeyStep6​(byte[] hash)