ietf-openpgp
[Top] [All Lists]

Re: Armor vs. Binary

1998-05-18 11:11:59
At 10:36 AM 5/16/98 +0200, Christoph Moser wrote:
   Hi !
   
   Is there a difference between the binary-code generated by PGP and the
   Radix-64 equivalent ?
   I have written a program to convert the Radix-64-Code into binary-code and
   this binary-code should be the same as the one PGP generates. The first
   4 Triple-Blocks are identical, but then our result differ.
   
   Example:
   
   The result my program generates:
   
   133,1,12
   3,118,42
   25,11,104
   23,21,225
   ------------------- from then on the codes differ
   1,8,0
   142,140,4
   43,235,81
   43,190,74
   
   
   PGP-generated binary-code:
   
   133,1,12
   3,118,42
   25,11,104
   23,21,225
   -------------------
   1,7,253
   24,146,75
   220,144,71
   127,219,200
   
   I tested my program, and it works correct, but if you like I also could
   post it. But maybe there is a simple misunderstanding from my side.
   
What I suspect is happening is that you are using a signed number someplace
where you should be using an unsigned number. If you look at the first
triplet that differs, you have an eight turning into a 7, which is the sort
of thing that makes me think it's a signed/unsigned problem.

Why don't you send us 24 bytes of source binary, and we can tell you what
it's supposed to armor to?

        Jon



-----
Jon Callas                                  jon(_at_)pgp(_dot_)com
CTO, Total Network Security                 3965 Freedom Circle
Network Associates, Inc.                    Santa Clara, CA 95054
(408) 346-5860                              
Fingerprints: D1EC 3C51 FCB1 67F8 4345 4A04 7DF9 C2E6 F129 27A9 (DSS)
              665B 797F 37D1 C240 53AC 6D87 3A60 4628           (RSA)

<Prev in Thread] Current Thread [Next in Thread>