Re: Regarding construction of MasterSecret in ssl v3 handshake

2007-12-13 Thread jimmy bahuleyan
Suchindra Chandrahas wrote: > Hi Jimmy, > RFC-2246 is for TLS v1. However, i am going for SSL > v3. I don't know whether there is any function for the same. I went > through ssl3_enc.c in openssl code: > ssl3_generate_master_secret() is the equivalent one for ssl3. Although i

Re: Regarding construction of MasterSecret in ssl v3 handshake

2007-12-13 Thread Suchindra Chandrahas
Hi Jimmy, RFC-2246 is for TLS v1. However, i am going for SSL v3. I don't know whether there is any function for the same. I went through ssl3_enc.c in openssl code: int ssl3_generate_master_secret(SSL *s, unsigned char *out, unsigned char *p, int len) {

Re: Regarding construction of MasterSecret in ssl v3 handshake

2007-12-13 Thread jimmy bahuleyan
Suchindra Chandrahas wrote: > Hi Jimmy, > Yes i changed the no. of bytes to 32 (both client > and server random). Also, is it ok to use openssl tls1_prf for ssl v3 > handshake? > if you only want to do the prf calculation tls1_PRF() does just that for you. It does the PRF as s

Re: Regarding construction of MasterSecret in ssl v3 handshake

2007-12-13 Thread Suchindra Chandrahas
Hi Jimmy, Yes i changed the no. of bytes to 32 (both client and server random). Also, is it ok to use openssl tls1_prf for ssl v3 handshake? Thanks and Regards, Suchindra Chandrahas jimmy bahuleyan <[EMAIL PROTECTED]> wrote: Suchindra Chandrahas wrote: > Hi All, >

Re: Regarding construction of MasterSecret in ssl v3 handshake

2007-12-13 Thread jimmy bahuleyan
Suchindra Chandrahas wrote: > Hi All, > I am trying to write an SSL v3 handshake without using > openssl libraries. I have some problem with creation of MasterSecret in > SSL v3. Here is the code snippet of hardcoded client that i am > experimenting with: > > client_random is 28 byte