In order to estimate the (maximal) packet overhead which is added by OpenSSL, we do the following things:
1) We add up the header length: SSL3_RT_HEADER_LENGTH (5 bytes)
2) We add up the hash size: EVP_MD_size(..) (e.g. 16 bytes with MD5, 20 bytes with SHA) 3) We add up the block size of the cipher: EVP_CIPHER_CTX_block_size(...) (actually, only required in case of block ciphers because of padding)
We are sure that there is no compression.
Is this correct or should we take another approach?
By the way, is the ciphers block_size set to 0, in case it is not a block cipher? Or can we distinguish block ciphers and stream ciphers for the calculation in a generic way?
Regards
- Marcel Vinzens
______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
