On Tue, Oct 4, 2011 at 10:58 AM, brajan <[email protected]> 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
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]