Re: question about RSA in openSSL

2008-04-27 Thread Tuan Vu
> > - 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 or not ? > > gcd(e, (p-1)*(q-1) >= 2 for all even e, so it cant generate such key for sure

Re: get key from an SSL object

2008-04-07 Thread Tuan Vu
n, Apr 07, 2008 at 06:34:29PM -0600, Tuan Vu wrote: > > > Yes I know it makes no sense, but this is what I have to do in the > > assignment. > > I complained to the prof already but he still wants to do something like > > that. > > If it is an assignment, you have t

Re: get key from an SSL object

2008-04-07 Thread Tuan Vu
ssl), can I use this API for part 1? If not, what else can I do. And how can I do part 2. I know it doesnt make sense but it's what I have to do. Do you have any idea? Thanks. On Mon, Apr 7, 2008 at 6:34 PM, Tuan Vu <[EMAIL PROTECTED]> wrote: > Yes I know it makes no sense, bu

Re: get key from an SSL object

2008-04-07 Thread Tuan Vu
Yes I know it makes no sense, but this is what I have to do in the assignment. I complained to the prof already but he still wants to do something like that. On Mon, Apr 7, 2008 at 6:29 PM, Victor Duchovni < [EMAIL PROTECTED]> wrote: > On Mon, Apr 07, 2008 at 06:25:21PM -0600, Tuan

get key from an SSL object

2008-04-07 Thread Tuan Vu
Hi, Assume that I write a client app A and a server app B. A and B set up a SSL connection. A wants to send B some file and its signature. Once B receives the file and its signature, B has to verify if it's correct or not. I dont want A and B to exchange any signing key manually. Instead, I want