question about RSA in openSSL

2008-04-27 Thread Th�nh Trung Nguy#7877;n
Hi, I have 2 question about RSA generating in OpenSSL : - First, does p and q statisfy condition : sqrt(N)/2 p q 2sqrt(N) - second, when I use RSA_generate_key() with odd value of e, then it runs ok. But when use with even value of e, it runs very slow and I don't know if can it finish

Blowfish CBC output ciphertext differs in OpenSSL and Java with same key and IV

2008-04-27 Thread Vishal Rao
Hello, I'm trying to encrypt a few bytes (as a trial run) with the same key and IV with Blowfish in CBC mode and standard PKCS padding using OpenSSL in a C++ app and also using SUN's Java crypto libraries. The output ciphertext is different in both places which means that I cannot get them to