I am new to openSSL and I am looking at the DES support in the crypto
functions.
In the test program provided, destest.c, the part that deals with Triple DES
in cbc mode has code like this:

        
des_ede3_cbc_encrypt(cbc_data,cbc_out,16L,ks,ks2,ks3,&iv3,DES_ENCRYPT);
        des_ede3_cbc_encrypt(&(cbc_data[16]),&(cbc_out[16]),i-16,ks,ks2,ks3,
                             &iv3,DES_ENCRYPT);

The encryption of the data in cbc_data is done using 2 calls to
des_ede3_cbc_encrypt(). The first call seems to work on the first 16 bytes
of the data and the second call works on the reamining.

Any idea why this is done as a 2 step process?

Thanks.

-sridhar
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to