Far from trying to calculate the overhead, I would try finding the
lowest level function call to std::write or std::read and simply log the
bytes written/read :)  A good starting point would be BIO_write
(crpyto/bio_lib.c) or SSL_write, then trace from there to find the write
system call.  Same thing goes for read. It shouldn't be too hard to find
the std::read/write calls if you compile w/the -g flag.  You could even
set a breakpoint in a simple program to try it (break write ;)

Fred Crable 
-----Original Message-----
From: Shashank Khanvilkar [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 12:05 PM
To: [EMAIL PROTECTED]
Subject: Estimating the packet overhead imposed by SSL.


Is there any way (or document) in which i can estimate the packet 
overhead added by SSL.
Assume that i am sending 100 bytes of data (with no compression), using
some symmetric cipher (say aes-128-cbc). In this case, how many more
bytes of overhead will be introduced by the SSL layer (I guess the
record layer).
(I will appreciate if someone can provide a breakup).

Will reading the SSLv3 spec help me in this (i tried to read it here
http://wp.netscape.com/eng/ssl3/draft302.txt
, but it seems that the draft has expired)..
Any help is appreciated.
Shashank
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to