On 10/4/2011 4:58 PM, brajan 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

why this is happening.? whether is it due to d2i_X509_SIG() this function
Was the signature made with a different hash algorithm than the one you try to use to verify it?

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to