matheus ribeiro wrote: > Hi Karsten, > > > > Enter text : 3031 > > > > Select the algorithm: > > 0. Abort this selection. > > 1. RSA with MD5 hash and PKCS#1 padding > > > > Choose (0-1): 1 > > Result : 0A2B > > Crypt Successful. > > ================================ > > The command was not successful. 0a2B is obviously no correct signature. > A signature must have the same length of the RSA modulus, i.e 2048 bit > in your case. > > > Interesting. I thought the sig was the same length as the input text.
No, if the RSA modulus is 1024 bits, the result is calculated mod this 1024 bit modulus, which results in a result which is at most 1024 bits in length. > But what if its padded with zeros to the left? Just guessing here. No, the output is always printed completely. And beside of this, it would be really strange if there where padding zeros. The result must be statistical random. If the result of a complex operation would be a trivial result, everybody could forge it with no effort. > > This is really strange. This can only happen if something is corrupted > on the card. What card do you use? Do you have another card form > another > manufacturer to test this? Can you presnt an APDU command log? Stop > pcscd and start pcscd in foreground (pcscd -f -d -a or something like > this should present this information). > > > I tried this on 2 cards with same results: a gemplus GXPRO R3.x (applet > 0.9.11 burned with GemPlus RadXpress) and an OpenPlataform PK32K V2.0 > JCOP (applet 0.9.2 burned with ID ally), same result on both. Ill give > you the APDU when I have access to the reader again. > > > Which version of autoconf do you use? This error seems common to be if > you try to use autoconf 2.13. I will try on my own. > > > I think it is 2.13. What version should I use? The latest. At least 2.5x. I had the same problem with my Debian Linux, in the beginning it was so stable, that some things like this did not work. Karsten > > Thanks again Karsten! > Matheus > > > ------------------------------------------------------------------------ > > _______________________________________________ > Muscle mailing list > [email protected] > http://lists.drizzle.com/mailman/listinfo/muscle _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
