Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F6AA18039 for ; Wed, 10 Feb 2016 19:05:43 +0000 (UTC) Received: (qmail 29628 invoked by uid 500); 10 Feb 2016 19:05:43 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 29603 invoked by uid 500); 10 Feb 2016 19:05:43 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 29591 invoked by uid 99); 10 Feb 2016 19:05:43 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 19:05:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 90F09C112D for ; Wed, 10 Feb 2016 19:05:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.054 X-Spam-Level: *** X-Spam-Status: No, score=3.054 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HK_RANDOM_ENVFROM=0.626, HK_RANDOM_FROM=0.999, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2-SqUi-YvsWg for ; Wed, 10 Feb 2016 19:05:41 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CEBCD20271 for ; Wed, 10 Feb 2016 19:05:40 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id 128so39739503wmz.1 for ; Wed, 10 Feb 2016 11:05:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=VuoKBZMcFsBwOcKOZk3qnN30j1zQhrIZBHVAwNxhzgI=; b=oJMGY0x6+NEYI3OTEiNaOwzZHCKUgPR93exziqF0PORb3MJWrDTddLx3ISUU5e6Qum wh9jwpDOjtVC762SEv/oHqfgVM7HWFjUHnYshmG4Wq2ReoDKHod9Wq/Nfi5IGVVZYGUK ZgMNXCMv2RInyoyQPB9si3e1krQEd0MZ/zYVarb/NHcKFzCIGjsFKQ2JSAun/Q+NMIzc WlL72ayO112N/sIrL96BWRwcHDd8kuHphEBklUkW0WMcfZLT/q0SpdEcsCeknG+Euln1 XWOCpS/4REkpLNU9cGuQe9+v173ZfPZoV8bLgsGQ/sIYaQcO6laY05gWY3uuVcA8wI4M uNpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=VuoKBZMcFsBwOcKOZk3qnN30j1zQhrIZBHVAwNxhzgI=; b=O0amnAIr9hmG5l/mRYXL7vFfXlV/KoVOwUW1zspCPTR01QfiunILrms8crJ+JHTyHI bsxNcE/w+5qfWSEMtYzewofz4r4nMGnA1U+cfuEpmUX0zkoP5ctlBcTpJHfPjOjtpSAh cDam0Kjqxa6joGZ+FvsyjYNPmNenoqfzwFw7L6AanzpRX3EqnihezSRcDx/ih6Qr6ChC ZMj0pmzd40wjvuDofZYWCseKs+RBislucej/mV/pGvgWaPGPT8ft21bzWUa5SBqmHDCe ZZ3fiWKN5oZTrRWBWQS+90Tuu3Ce6S9GtCVjS5fze0Oa51xiM4ju19UKFaotGFVh1xIo n5/g== X-Gm-Message-State: AG10YORpkpKG2oJ6+dChDKCYmOX1Dt4hJqnz3nRjR3psjQiSCAF5JNniHsNuepmPFXdF2pPCGM2XDXjIMkwdXg== X-Received: by 10.194.203.168 with SMTP id kr8mr42111924wjc.168.1455131133353; Wed, 10 Feb 2016 11:05:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.39.133 with HTTP; Wed, 10 Feb 2016 11:05:13 -0800 (PST) Reply-To: brzrkr@pobox.com In-Reply-To: <56BB7E9E.8030405@t-online.de> References: <56BB7E9E.8030405@t-online.de> From: Brzrk One Date: Wed, 10 Feb 2016 14:05:13 -0500 Message-ID: Subject: Re: Input length must be multiple of 16 when decrypting with padded cipher To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=047d7bae42ec4e22d8052b6f1e80 --047d7bae42ec4e22d8052b6f1e80 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Is there a workaround? On Wed, Feb 10, 2016 at 1:17 PM, Tilman Hausherr wrote: > Your file is incorrect: it is encrypted, the META data is unencrypted, bu= t > EncryptMetadata is not set to false. > > Tilman > > > Am 10.02.2016 um 18:36 schrieb Brzrk One: > >> Hi there! >> Using pdfbox-1.8.9, pdfbox-1.8.11, and pdfbox-2.0.0-RC3, I get the >> error/trace shown below for the PDF at this web address. Same error usin= g >> PDFDebugger or Decrypt, or any other command-line too. Same error in my >> code, using either the bottom-up or top-down parser. >> >> Curiously, pdfbox-1.8.3 does not complain. (Not that I will use 1.8.3...= ) >> >> Is this a known bug? >> Tnx, Pat >> >> URL: >> >> http://pharmacychain366.ru/wp-content/files_mf/1431539883%D0%9E%D1%82%D1= %87%D0%B5%D1%82%D0%BD%D0%BE%D1%81%D1%82%D1%8C%D0%9C%D0%A1%D0%A4%D0%9E%D0%B8= %D0%B0%D1%83%D0%B4%D0%B8%D1%82%D0%BE%D1%80%D1%81%D0%BA%D0%BE%D0%B5%D0%B7%D0= %B0%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%D0%B7%D0%B02014%D0%B3..= pdf >> >> Stack trace (pdfbox-1.8.11): >> >> Feb 10, 2016 12:35:15 PM org.apache.pdfbox.pdfparser.PDFParser parse >> >> INFO: Document is encrypted >> >> PDFDebugger failed with the following exception: >> >> org.apache.pdfbox.exceptions.WrappedIOException: Input length must be >> multiple of 16 when decrypting with padded cipher >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(Securit= yHandler.java:368) >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(Secur= ityHandler.java:472) >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHan= dler.java:430) >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(Secur= ityHandler.java:400) >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(S= ecurityHandler.java:218) >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocu= ment(StandardSecurityHandler.java:158) >> >> at >> org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1612= ) >> >> at org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:958) >> >> at org.apache.pdfbox.PDFDebugger.parseDocument(PDFDebugger.java:412) >> >> at org.apache.pdfbox.PDFDebugger.readPDFFile(PDFDebugger.java:387) >> >> at org.apache.pdfbox.PDFDebugger.main(PDFDebugger.java:375) >> >> at org.apache.pdfbox.PDFBox.main(PDFBox.java:78) >> >> Caused by: javax.crypto.IllegalBlockSizeException: Input length must be >> multiple of 16 when decrypting with padded cipher >> >> at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) >> >> at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) >> >> at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..) >> >> at javax.crypto.Cipher.doFinal(DashoA13*..) >> >> at >> >> org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(Securit= yHandler.java:348) >> >> ... 11 more >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > --047d7bae42ec4e22d8052b6f1e80--