SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
amcrypt-ossl-asym: trailing garbage
Author Message
Post amcrypt-ossl-asym: trailing garbage 
On Sun, 5 Sep 2010, Dustin J. Mitchell wrote:

On Sun, Sep 5, 2010 at 5:52 AM, Peter Norden
<s0678265 < at > mail.zih.tu-dresden.de> wrote:
I tracked down the problem to the amcrypt-ossl-asym script itself. In the
simple test case

$ echo "foo" | amcrypt-ossl-asym | amcrypt-ossl-asym -d

the output is not simply "foo" (as expected), but "foo" with some binary
data append. The symmetrical version amcrypt-ossl works fine, btw.

You've narrowed down the problem correctly, and I think that this is a
bug in the script. Amanda expects its data consumers to correctly
handle trailing zeroes, but if amcrypt-ossl-asym is injecting random
binary data, then that is not correct. Note, however, that trailing
zeroes will cause exactly the same gzip warning. I wish there was a
way to turn this warning off, as the alternative is to frame and
unframe the datastream such that Amanda can identify and remove such
pad bytes.

Dustin



I have been using Amanda for years and it is great
I am about to implement encryption
Has this been fixed

Richard

Post amcrypt-ossl-asym: trailing garbage 
lxnf98mm < at > comcast.net wrote:
On Sun, 5 Sep 2010, Dustin J. Mitchell wrote:

On Sun, Sep 5, 2010 at 5:52 AM, Peter Norden
<s0678265 < at > mail.zih.tu-dresden.de> wrote:
I tracked down the problem to the amcrypt-ossl-asym script itself.
In the
simple test case

$ echo "foo" | amcrypt-ossl-asym | amcrypt-ossl-asym -d

the output is not simply "foo" (as expected), but "foo" with some
binary
data append. The symmetrical version amcrypt-ossl works fine, btw.

You've narrowed down the problem correctly, and I think that this is a
bug in the script. Amanda expects its data consumers to correctly
handle trailing zeroes, but if amcrypt-ossl-asym is injecting random
binary data, then that is not correct. Note, however, that trailing
zeroes will cause exactly the same gzip warning. I wish there was a
way to turn this warning off, as the alternative is to frame and
unframe the datastream such that Amanda can identify and remove such
pad bytes.

Dustin



I have been using Amanda for years and it is great
I am about to implement encryption
Has this been fixed

Richard
It's fixed in next release (3.2.2), it will works only with dump done
with 3.2.2

Jean-Louis

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB