Please try to run this openssl-RSA code on linux !

2001-03-05 Thread nl89071
Hi, Because I cant find the problem in this piece of source code and I would like to ask you for help. Would you please try to run this code on linux. I have run this source on AIX and it runs fine. When I run it on linux things dont work. I have Suse linux 7. Maybe you could help me find th

encrypts fine on AIX, same function NOT on linux.

2001-02-23 Thread nl89071
Hi, I am building a piece of software with authentication. I have a server node and a client node. The server runs on SuSE linux 7.0 , the client runs AIX 4.3.3.0. the software is made with gnu c++. I have a function in which a certificate(self-made) is being generated. The certificate I am us

When is threadsupport actually needed for openssl ???

2001-02-21 Thread nl89071
Hi, I am making a client-server applicationin C++ on AIX. I have recently implemented the openssl RSA_encrypt functions in a thread. I would like to know when I should implement the CRYPTO thread mutexlocks functions and stuff. I am using ONE RSA instance in ONE thread. Do I need to setup op

first 8 bytes of unsigned char * fail to encrypt/decrypt !?

2001-01-25 Thread nl89071
Hi, When I encrypt a large chunk of data (in my case 12220 bytes) the first 8 bytes of that data cannot be encrypted and decrypted again properly. They are garbage. The routines I use are the following : // read a file in an unsigned char * cbc_data // Length = number of bytes read // cbc_ou

RSA_public_encrypt isnt consistent in return value ??

2001-01-18 Thread nl89071
Hi, I have a simple application which encrypts a piece of text using RSA. when I call RSA_public_encrypt, it should return a char * of 256 chars, right ? The returned char is not 256 chars long. I measure with pointer hopping like this while (*sp++) ; This way it should hop to the end of the

encrypt/decrypt large files

2001-01-11 Thread nl89071
Hi, I posted this question earlier but I wasnt a member of mailinglist so some things went wrong :( I want to encrypt a plaintext file (about 700Kb) en decrypt it later with RSA, ofcourse with the openssl lib Now i am able to encrypt chunks of 200 chars at a time but i cant figure out how the

how do I encrypt large files with rsa ??

2001-01-11 Thread nl89071
Hi, I want to encrypt large files with RSA. At the moment I can encrypt approx. 200 characters at a time. But when I write the encrypted data to disk, how do I know how much characters to read in to decrypt ?? I thought about the extra padding bits, so i have to read in 211 (for PKCS1) bits, b

RSA read and write to and from file

2000-11-30 Thread nl89071
Hi, I am having a problem with the RSA functions of the openssl package. I want to generate an RSA key pair. Write them to disk and use them later (this all in linux/AIX) I managed to generate a keypair. But then the problem starts. I can“t find any functions to write the whole key (not just pr