Re: File Encryption: CBC vs ECB+IV modes

From: DSCOTT (daVvid_a_scott@email.com)
Date: 02/04/03


From: daVvid_a_scott@email.com (DSCOTT)
Date: 4 Feb 2003 15:28:34 GMT

ukoganti@yahoo.com (Sudheer Koganti) wrote in
<e700e1e3.0302032130.4d674f43@posting.google.com>:

>
>Suppose a file needed to be encrypted and random accesses and frequent
>writes are common and are a critical design criteria. Furthermore,
>lets assume a block cipher is being used. One could choose various
>modes, but the simplest choice is the ECB mode. To make sure, two
>blocks in different files won't encrypt to the same cipher text, an IV
>can be used to XOR the plain text before encrypting. Lets call this
>ECB+IV mode.
>
>

  Are you saying the IV use for first block in ECB or all blocks?
If all blocks does the IV change for each block. If not then
two blocks haveing the same input data they will encrypt exactly the
same.

David A. Scott

-- 
My Crypto code
http://cryptography.org/cgi-bin/crypto.cgi/Misc/scott19u.zip
http://cryptography.org/cgi-bin/crypto.cgi/Misc/scott16u.zip
http://www.jim.com/jamesd/Kong/scott19u.zip old version
My Compression code http://bijective.dogma.net/
**TO EMAIL ME drop the roman "five" **
Disclaimer:I am in no way responsible for any of the statements
 made in the above text. For all I know I might be drugged.
As a famous person once said "any cryptograhic
system is only as strong as its weakest link"


Relevant Pages

  • Re: key length vs block length, most secure encryption algorithm today?
    ... I use it mostly to encrypt small ... Does this make AES-256 more secure than the other two, ... My Crypto code ...
    (sci.crypt)
  • Re: Can I use an used One-Time-Pad to encrypt a new OTP?
    ... Correct he should not use *THE OLD KEY TO ENCRYPT* ... Sorry none of this will lead to something as safe as an OTP not ... look a real OTP is secure because any message could have been ... My Crypto code ...
    (sci.crypt)
  • Re: encryption & padding
    ... >All the C reference implementation do encrypt 32 bits of data block. ... >So, I know I have to use padding technique, but I don't know exactly ... My Crypto code ... system is only as strong as its weakest link" ...
    (sci.crypt)
  • Re: algorithm info
    ... > I already took into account stream cyphers, and probably i will choose one of those. ... > I have to encrypt files in block of 1 byte, and with the possibility to decrypt a byte ... position of the byte you want to decrypt - not good. ... encrypt the encrypted previous block with a block cipher, ...
    (sci.crypt)
  • Re: IVs versus Nonces
    ... >Requirements on IVs for block cipher modes are something I'm addressing ... >requirement for IVs in these modes. ... Encrypt with the same key? ... `Provably secure in random ...
    (sci.crypt)