mateus wrote:
> Hi,
>
> I'm trying to insert a RSA key into a cryptoflex 32k e-gate and I'm
> having odd problems.
> I'm genarating a 1024 RSA key using openssl, reading it to a RSA
> structure, using BN_bn2bin to convert the primes (p,q) and the other
> parts (a,c,f => rsa->iqmp, dmp1, dmq1 respectively).
> I'm having no problems to write the key file, but when I try to use
> the key in a "internal auth" command I get the 6F00 response (Technical
> problem without a specified diagnostic).
> I've already tried to use a key genarated in the card by another
> application and it has worked just fine. The problem is, this other
> application is windows based and I do not have access to the process of
> insertion of the key (if it's inserted, it could have been created in
> the card and I wouldn't know).
> If anybody knows a linux application that does this insertion I'd be
> very gratefull of taking a look at it.
> Any other tips will be welcome to.
>
> Thanks in advance.
>
You have to reverse order of the bytes of the key components before you
insert them into the card, because bn2bin converts the bn to MSB to LSB
binary representation and the card expects LSB to MSB binary representation.
Tom Mraz
--
Man, those grapes are so sour if I tried to make jelly
there'd be acid crystals in it.
Rufus Polson in some comment on Linuxtoday.com
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle