Re: Issue with key length

2014-01-13 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Ken Goldman > Sent: Monday, January 13, 2014 10:09 > > static char evc41_lg_n[] = > > > "1554614688781379247809520819030312275762225093858462793190489160 > 0175202510061523794334042548615734687660421922313164335745291109 > 786474147016936927527

Re: Issue with key length

2014-01-13 Thread Ken Goldman
On 1/10/2014 4:20 AM, Som M wrote: static char evc41_lg_n[] = "15546146887813792478095208190303122757622250938584627931904891600175202510061523794334042548615734687660421922313164335745291109786474147016936927527006755886906416183365029894549142316203446261188204728397612179022068004146715593144

Re: [openssl.org #3229] Fwd: Issue with key length

2014-01-13 Thread Ken Goldman
On 1/12/2014 2:04 AM, Som M wrote: [openssl.org #3229] Yes, I suspected the same. But even though it returns 129, I prepended "00" to the hex string and sent it as argument to to RSA_verify. authMsgLen = RSA_size(rsa_pb); authMsgHexStr = "00" + authMsgHexStr; This might wo

Re: [openssl.org #3229] Fwd: Issue with key length

2014-01-11 Thread Som M
[openssl.org #3229] Yes, I suspected the same. But even though it returns 129, I prepended "00" to the hex string and sent it as argument to to RSA_verify. authMsgLen = RSA_size(rsa_pb); authMsgHexStr = "00" + authMsgHexStr; RSA_verify(NID_md5, digest, MD5_DIGEST_LENGTH, (unsigned char *)a

Issue with key length

2014-01-10 Thread Som M
Hi, We are facing some issue with rsa key size while porting our application from montavista to RHEL 6.4. The RSA key size(RSA_size) for montavista is returning 128 bytes but on RHEL its returning 129 bytes. #include #include #include #include #include #include #include /*using namespac