Re: BN_rand question

2001-01-18 Thread Marco Russo
- Original Message - From: "Ben Laurie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 7:18 PM Subject: Re: BN_rand question > Marco Russo wrote: > > > > I need to generate a random polynomial in Zp, with p very larg

BN_rand question

2001-01-17 Thread Marco Russo
Hi all, how can I use BN_rand to generate a random integer n in the range [0, p-1], where p is a given integer? Thanks      

Re: PEM_write_RSAPrivateKey problem

2000-10-02 Thread marco russo
Dirk Janssens wrote: > Hello, > > I want to write a private RSA key to a file with PEM encoding. > I found the PEM_write_RSAPrivateKey function in the pem.h headerfile. > It seems to me that it does exactly what I want. But when I use it, all I > can do is write to stdout. Even with the code be

secret sharing question

2000-05-31 Thread Marco Russo
Hi all. I' ve implemented the simplest form of the Shamir secret sharing protocol (http://www.iks-jena.de/mitarb/lutz/security/cryptfaq/q104.html) using openssl. My procedure is simple: 1. generate RSA structure. 2. save public key in a file. 3. convert rsa->p and rsa->q to a string with BN_bn2hex

PKCS7_sign question

2000-05-18 Thread Marco Russo
Hi all. I' m looking at the PKCS7_sign function: if(!(flags & PKCS7_NOCERTS)) { PKCS7_add_certificate(p7, signcert); if(certs) for(i = 0; i < sk_X509_num(certs); i++) PKCS7_add_certificate(p7, sk_X509_value(certs, i)); } Why can't I include additional certificates in the p7 st