[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNU Crypto] Re: [Classpathx-crypto] Problem/Bug in gnu-crypto-1.0.0
From: |
Raif S. Naffah |
Subject: |
Re: [GNU Crypto] Re: [Classpathx-crypto] Problem/Bug in gnu-crypto-1.0.0 |
Date: |
Fri, 8 Nov 2002 04:50:36 +1100 |
User-agent: |
KMail/1.4.3 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
On Thursday 07 November 2002 05:39, Casey Marshall wrote:
> Stefan Prelle wrote:
> > ...
> > Another quick question: How to I save/restore a generated
> > Key to/from a bytebuffer? My first guess was the method
> > "getEncoded" in combination but that didn't work.
>
> ...
> The DSS*Key classes also have the getEncoded() and the
> valueOf(byte[]) methods, which translate keys to/from byte arrays.
> The problem here is that the latter method doesn't actually work
> (they check for the wrong magic number at the start of the input).
>
> Which brings up a good point for the list: the valueOf() methods in
> the DSS classes don't work, since they check for the magic values
> "GSDA" and "GSDB", when it appears the correct values are "GNUA" and
> "GNUa".
>
> In the meantime the attached diff should fix this.
i'll fix this to use a constant from Registry and add a JUnit test case.
i'll also ensure the same is in place for RSA sig.
cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Que du magnifique
iD8DBQE9yqft+e1AKnsTRiERA2roAKDP9kn4zZqPl4HyCNZupiJQDzp9swCfds6X
1tLHV5TbreOHPaF2v8OPKt4=
=pDug
-----END PGP SIGNATURE-----