You have heared about: PEM_read_RSAPrivateKey(fp, NULL, cb, &p); PEM_write_RSAPrivateKey(fp, key, enc, NULL, 0, cb, NULL); d2i_RSAPrivateKey_fp(fp, NULL); i2d_RSAPrivateKey_fp(fp, rsa);
? regards Christian On Tue, Sep 17, 2002 at 04:43:05PM -0300, Bruno Bisol wrote: > Hi, I am starting to implement an autentication > mechanism for an application and decided to use the > openssl libray. For now, I just need to send some > signed data (using RSA and SHA-1) and verify the > signature. > Now I'm trying to save the keys I generate to > these files. I'm trying to convert each RSA component > (p,q,e,etc) to binary representation (with bn_bn2bin) > and writting to a file. The problem is whem I try to > recover these values: I can read then and convert then > back to BIGNUM's , but when I try to perform any > operation on the rsa struct, I get a segmentation > fault. None of the functions I am using return errors, > so I'm lost.... > I'm attaching the programs I made to test saving > and reading keys. Any help is apreciated :) > > _______________________________________________________________________ > Yahoo! GeoCities > Tudo para criar o seu site: ferramentas fáceis de usar, espaço de sobra e acessórios. > http://br.geocities.yahoo.com/ > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]