Jeffrey Walton-3 wrote:
>
> On Tue, Oct 4, 2011 at 10:58 AM, brajan <balamurugan....@gmail.com> wrote:
>>
>> hi
>> can any one tell me why the signature verification in openssl fail when
>> the
>> message is signed bu java IBM fips compliant.i am using openssl 0.9.8g in
>> power Pc. i am getting error in
>>
>> if (((unsigned int)sig->digest->length != m_len) ||
>> (memcmp(m,sig->digest->data,m_len) != 0)) line of source code in
>> RSA_verify().
>> the value are
>>
>> m data :a12df146d87db3ce911e61444eed322bbd027a58cfa27ceec3626317ebe62f89
>> sig->digest->data :�*�H�b9���A6w�(�
>> Memcompare fail mLen :64 sig->digest->length :20
>>
> DSA? Java uses a DER encoded signature per RFC 3279:
>
> SEQUENCE ::= {
> r INTEGER,
> s INTEGER }
>
> Jeff
>
>
> Hi Jeff ,, i didnt get what u are asking as DSA ? . i am using
> "SHA1WithRSA" in java
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List openssl-users@openssl.org
> Automated List Manager majord...@openssl.org
>
>
--
View this message in context:
http://old.nabble.com/Java-signature-verification-fail-in-openssl-tp32589928p32594404.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org