large file support in Win32

Ryan Malayter ryan at malayter.com
Thu Sep 22 05:47:10 CEST 2005


Werner, this is a follow-up post to the recent threads on the gnupg-users lists.

I just ran some tests on a 45 GB file called myfile.bkf. GPG 1.4.2
actually encrypts the entire file without reporting any errors on Win
XP SP2. However, the resulting file is corrupt. The file cannot be
decrypted, even with redirection to stdout.

Encrypting files using redirection to stdin and stdout does work
around the problem, but as you mentioned it should be working using
standard filename parameters.

So here is a transcript of my test session, with the -vv parameter.
Please let me know if you would like me to test anything else:

E:\>dir e:\myfile.bkf
09/18/2005 05:44 AM 45,284,360,192 myfile.bkf

E:\>gpg -c -vv -z 1 --cipher aes -o c:\temp\myfile.bkf.gpg e:\myfile.bkf
gpg: using cipher AES
gpg: writing to `c:\temp\myfile.bkf.gpg'

E:\>dir c:\temp\myfile.bkf.gpg
09/21/2005 10:06 AM 31,336,076,736 myfile.bkf.gpg

E:\>gpg -d -vv -o e:\myfile2.bkf c:\temp\myfile.bkf.gpg
:symkey enc packet: version 4, cipher 7, s2k 3, hash 2
 salt 6b08ed303fb90a22, count 96
gpg: AES encrypted data
:encrypted data packet:
 length: unknown
 mdc_method: 2
gpg: encrypted with 1 passphrase
:compressed packet: algo=1
:literal data packet:
 mode b (62), created 1127307875, name="myfile.bkf",
 raw data: 2334687232 bytes
gpg: original file name='myfile.bkf'
gpg: [don't know]: invalid packet (ctb=5f)
gpg: [don't know]: indeterminate length for invalid packet type 5
gpg: WARNING: encrypted message has been manipulated!
gpg: [don't know]: invalid packet (ctb=74)

E:\>dir e:\myfile2.bkf
 Volume in drive E is Backup disk
 Volume Serial Number is 9EE2-3002

 Directory of e:\

09/21/2005 07:32 PM 2,334,687,232 myfile2.bkf

E:\>gpg -d -vv c:\temp\myfile.bkf.gpg > e:\myfile2.bkf
:symkey enc packet: version 4, cipher 7, s2k 3, hash 2
 salt 6b08ed303fb90a22, count 96
gpg: AES encrypted data
:encrypted data packet:
 length: unknown
 mdc_method: 2
gpg: encrypted with 1 passphrase
:compressed packet: algo=1
:literal data packet:
 mode b (62), created 1127307875, name="myfile.bkf",
 raw data: 2334687232 bytes
gpg: original file name='myfile.bkf'
gpg: [don't know]: invalid packet (ctb=5f)
gpg: [don't know]: indeterminate length for invalid packet type 5
gpg: WARNING: encrypted message has been manipulated!
gpg: [don't know]: invalid packet (ctb=74)

E:\>dir e:\myfile2.bkf
09/21/2005 08:09 PM 2,334,687,232 myfile2.bkf



More information about the Gnupg-devel mailing list