Page MenuHome GnuPG

blanks in file are truncated
Closed, ResolvedPublic

Description

Release: 1.2.2

Environment

Unix

Description

In PeopleSoft a file is created that allows for 14 dependents for each employee. The entire line is 6,658 bytes and most lines have over 5,000 blank bytes at each end. The file is pgp encrypted and when decrypted, all blanks at end each line are truncated. They are not trunc when -t flag is not used; vendor requires -t to ensure both carriage return 0D and line end 0A on each line

How To Repeat

Encrypt: /usr/local/bin/gpg --homedir /usr/peoplesoft/bin/.gnupg --armor -t --recipient "Cornell HR" --output /ps_ftp/hrif181/01000012.PSDEVO8.dat.pgp --encrypt --sign /ps_ftp/hrif181/01000012.PSDEVO8.dat

Fix

Unknown

Event Timeline

Not a bug bug demanded by the OpenPGP specs.

A solution to your problem is to first make sure that the
files has proper line endings and then to run gpg without
"-t" to create binary messages.