> From: [email protected]  On Behalf Of Ken Goldman
> Sent: Monday, January 13, 2014 10:09

> > static char evc41_lg_n[] =
> >
> "1554614688781379247809520819030312275762225093858462793190489160
> 0175202510061523794334042548615734687660421922313164335745291109
> 7864741470169369275270067558869064161833650298945491423162034462
> 6118820472839761217902206800414671559314408457702449950833441331
> 90925465159949456383958641405933050126040553008833193";*
> 
> > // evc41 lg public exponent
> > static char evc41_lg_e[] = "65537";
> 
> One obvious problem is that you're trying to put a pointer to string
> that holds an ASCII decimal representation of a modulus and exponent
> into arrays that expect binary.
> 
No, he(?) used  BN_dec2bn. Using hex or binary or an external format 
such as PKCS#8 might be better, but this isn't wrong.

And re your other message on "00" + strvar, since posted code was valid 
C++ syntax and used strvar.c_str() which is idiomatic C++, I assumed that. 
There operator+ on std::string (and wstring and basic_string) does concat.

> > Montavista openssl version : 0.98
> > RHEL openssl version : 1.0.0
> >
> > Can anyone please let me know what is the issue?
> 
> openssl is a well used product.  Start by assuming you have a bug in
> your code, not that you found a bug in openssl.
> 
Agree there. Dr Henson notes it could be in a vendor version (patch?) 
although I would be surprised if RH messed up something this basic.



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to