DES-CBC?

Werner Koch wk@gnupg.org
Mon, 10 Jun 2002 09:43:53 +0200


On Fri, 07 Jun 2002 21:36:56 +0200, Simon Josefsson said:

> Any plans to add DES-CBC?  Calling

3-key-EDE-DES in CBC mode should work.  If you need plain old DES I
will implement it.

> gcry_cipher_open(GCRY_CIPHER_DES_SK, GCRY_CIPHER_MODE_CBC, 0)

DES/SK is not implemented because it is marked as an reserved
algorithm in OpenPGP and not further specified.

> The mode of operation seem to be implemented in the same file as the
> encryption algorithms.  Would it make sense to separate the encryption

No, the encryption algorithm should just do an ECB and we build on
that in cipher/cipher.c to implement CFB and CBC using a generic
method.  This is not the fastest way of doing so but saves us a lot of
work and code.

Salam-Shalom,

   Werner