RSA sign in java and openssl

  • Follow


Hello!

I am trying to sign some bytes in java so that the signature could be
verified wiht RSA_verify (from openssl) in C. But the signature made in
java is different than the one made with RSA_sign() in C. The signature
in java is just like output of:
openssl sha1 -sign /myPrivateRSA.key fileToSign

But RSA_sign() in openssl creates a signature that is different. Isn't
there any standard that says what is a RSA signature?

How to make java signature identical to the RSA_sign signature()?

Thanks

Tomek

0
Reply niechce (1) 1/24/2005 10:41:02 AM

In article <1106563264.3589.17.camel@localhost.localdomain>
Tomasz Woroniecki <niechce@spamu.pl> wrote:
>
>Hello!
>
>I am trying to sign some bytes in java so that the signature could be
>verified wiht RSA_verify (from openssl) in C. But the signature made in
>java is different than the one made with RSA_sign() in C. The signature
>in java is just like output of:
>openssl sha1 -sign /myPrivateRSA.key fileToSign

Clarke.

>But RSA_sign() in openssl creates a signature that is different. Isn't
>there any standard that says what is a RSA signature?

Why do you ask if a rsa signature is?

>How to make java signature identical to the RSA_sign signature()?

>Thanks

Yanks

--
Lady Chatterly

"lady chatterly and i hand yings leash to you. good luck. oh and it
forgets its housetrained at times" -- edens morgan mair fheal
greykitten tomys des anges

0
Reply Lady 1/24/2005 12:00:36 PM


1 Replies
507 Views

(page loaded in 0.054 seconds)

Similiar Articles:













7/22/2012 11:19:27 PM


Reply: