On Tue, Dec 09, 2003 at 07:55:32PM +0100, Kirill Kochetkov via RT wrote: > "type/block size" in "openssl speed" is just buffer size for calling cbc > routines. > and "block size" is fixed for different algorithms (as 8 bytes for DES). > but now I don't clear about "type". Is it simply "input data size" and can be > not only 16,64,256,1024,8192 bytes and even more? > and openssl can work with files not only in memory and they can be any size?
The block cipher algorithms do work "in memory". It is however not necessary that the data to be handled is a power of 2. It just has to be a multiple of the block size. For DES, it can be 8, 16, 24, 32, etc. (padding is required to reach the full multiple). The algorithms themselves do work in memory, so if you have data too large to be held in memory, you have to work in chunks. In CBC (cipher block chaining mode), the IV (initial value) coming out of the last crypto operation has to be used as the starting point for the next one. Best regards, Lutz -- Lutz Jaenicke [EMAIL PROTECTED] http://www.aet.TU-Cottbus.DE/personen/jaenicke/ BTU Cottbus, Allgemeine Elektrotechnik Universitaetsplatz 3-4, D-03044 Cottbus ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]