Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
Hi, I'm trying to encrypt and decrypt data using RSA. In order to test, I generated a key pair using openssl rsa -outform DER and I transformed it into a C array getting this : unsigned char clepriv_der[] = { 0x30, 0x81, 0xab, 0x02, 0x01, 0x00, 0x02, 0x21, 0x00, 0xdb, 0x46, 0x81,

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Marek Marcola
Hello, clefpub=d2i_RSA_PUBKEY(NULL,(const unsigned char**)pub,62); clefpriv=d2i_RSAPrivateKey(NULL,(const unsigned char**)priv,230); puts(Chargement des clés terminé); You should check return code of this two functions, probably first function returns NULL and in RSA_check you

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
Hi Marek, thx for the answer This functions return : 804b298 and 804b0d0 That seems to be a pointer on a RSA object and that seems to mean that there is no error. Regards, -- Florian Manach NUMLOG [EMAIL PROTECTED] (+33)0130791616 Marek Marcola a écrit : Hello,

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Marek Marcola
Hello, This functions return : 804b298 and 804b0d0 That seems to be a pointer on a RSA object and that seems to mean that there is no error. Yes, this looks good, but after looking at documentation for RSA_check_key() there is information that this function checks integrity of all

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
The RSA_check_key doesn't core dump with the private key if I remove the one with the public key. I'll try to continue in this way and I'll let you know. Thanks a lot, Best regards, Marek Marcola a écrit : Hello, This functions return : 804b298 and 804b0d0 That seems to be a pointer

Re: Problem with d2i functions and RSA keys in C

2007-03-05 Thread Florian MANACH
My soft is running well now... Thx a lot Marek, Best regards, Florian MANACH a écrit : The RSA_check_key doesn't core dump with the private key if I remove the one with the public key. I'll try to continue in this way and I'll let you know. Thanks a lot, Best regards, Marek Marcola a

RE: RSA-SHA1 Digest

2007-03-05 Thread WCR
Hi Julius I'm beginning to get this now, but I still have a problem :-(( How do I obtain this result sXD2SsGQxI7DDFMwHwONxjGOaoI= from the data object in the soap envelope? Shouldn't it be the SHA1 digest of the text between soapenv:Body Id=MsgBody... in here .../soapenv:Body Then, is this a

Re: Some wird OpenSSL perfomance slowdown

2007-03-05 Thread Richard Koenning
Darryl Miles wrote: Sergey S. Levin wrote: 1. If i use FileZilla and SSL connection - it works on 100% of speed. I dont know what FileZilla is, but which SSL implementations is used and what key exchange protocol and what symmetric cipher did it choose ? FileZilla uses also OpenSSL.

Re: RSA-SHA1 Digest

2007-03-05 Thread Goetz Babin-Ebell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello David, WCR wrote: I'm beginning to get this now, but I still have a problem :-(( How do I obtain this result sXD2SsGQxI7DDFMwHwONxjGOaoI= from the data object in the soap envelope? For that you have to study the SOAP / XMLDSIG

Re: Some wird OpenSSL perfomance slowdown

2007-03-05 Thread Rick Jones
Sergey S. Levin wrote: Hello Rick, SW crypto aint cheap. It can consume lots of CPU cycles. If the system was nearly CPU saturated with a plain transfer, then the overhead of the crypto can very definitely take the throughput down considerably. 1. If i use FileZilla and SSL connection -

Re: Some wird OpenSSL perfomance slowdown

2007-03-05 Thread Victor Duchovni
On Mon, Mar 05, 2007 at 10:46:19AM -0800, Rick Jones wrote: Sergey S. Levin wrote: Hello Rick, SW crypto aint cheap. It can consume lots of CPU cycles. If the system was nearly CPU saturated with a plain transfer, then the overhead of the crypto can very definitely take the throughput

FIPS Module Question

2007-03-05 Thread Seshadri Veeraraghavan
Hi, I built FIPS 1.1.1, the latest 0.9.7 OpenSSL snapshot from March 2, and was able to also build the sample application mentioned in the User Guide (hmac.exe). They all work OK, but I have some questions that I can't find answers to, so I'd appreciate your help. 1. When I build OpenSSL, it

2 is not prime?

2007-03-05 Thread Brandon Ooi
Hi, Sorry if this is a dumb question but I couldn't find the openssl bugzilla (or equivalent) to look for this. I was using openssl to check primes and kept running into these weird issues until I found this... $ openssl version OpenSSL 0.9.7f 22 Mar 2005 $ openssl prime 2 2 is not prime

Re: 2 is not prime?

2007-03-05 Thread Victor Duchovni
On Mon, Mar 05, 2007 at 02:06:19PM -0800, Brandon Ooi wrote: Hi, Sorry if this is a dumb question but I couldn't find the openssl bugzilla (or equivalent) to look for this. I was using openssl to check primes and kept running into these weird issues until I found this... $ openssl

Re: 2 is not prime?

2007-03-05 Thread A . L . M . Buxey
Hi, $ openssl version OpenSSL 0.9.7f 22 Mar 2005 $ openssl prime 2 2 is not prime But.. 2 is prime right? correct. but its the only even prime number - hence its an odd prime number! ;-) perhaps this fact/quirk is why its not known as prime? alan

Re: 2 is not prime?

2007-03-05 Thread Keith Thompson
On Mon 07-03-05 14:06, Brandon Ooi wrote: Sorry if this is a dumb question but I couldn't find the openssl bugzilla (or equivalent) to look for this. I was using openssl to check primes and kept running into these weird issues until I found this... $ openssl version OpenSSL 0.9.7f 22 Mar

Re: 2 is not prime?

2007-03-05 Thread John Thingstad
On Mon, 05 Mar 2007 23:06:19 +0100, Brandon Ooi [EMAIL PROTECTED] wrote: Hi, Sorry if this is a dumb question but I couldn't find the openssl bugzilla (or equivalent) to look for this. I was using openssl to check primes and kept running into these weird issues until I found this... $

Openssl issue with embedded linux - monavista

2007-03-05 Thread Prasanna
Hello, I am using openssl 0.9.8a with SSL support. When I call SSL_CTX_free() when we close HTTP Session the openssl stack causes segmentation fault. in crypto/stack/stck.c in function sk_pop_free() the ht-num has some junk value. whihc causes the segfault. When we used openssl 0.9.7d we