MDC/Non-MDC mode question

Werner Koch wk at gnupg.org
Tue Jul 31 11:06:01 CEST 2001


On Mon, 30 Jul 2001 23:40:28 -0400 (EDT), Kahil D Jallad said:

> use a slightly different mode of encryption, but I can't find this in the
> code,  i.e. as far as I can tell non-mdc packets and mdc packets do the
> same things with  as cipher resyncs and CFB encryption . . .

g10/cipher.c, line 80:

    cfx->cipher_hd = cipher_open( cfx->dek->algo,
				  use_mdc? CIPHER_MODE_CFB
					 : CIPHER_MODE_AUTO_CFB, 1 );

AUTO_CFB usually uses the classic PGP CFB mode whereas the simple mode
does use straight CFB mode without resynchronization.

Hth,

  Werner

-- 
Werner Koch        Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH      et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions                                        -- Augustinus





More information about the Gnupg-devel mailing list