[PATCH] step 2 of the config.h cleanup: context sizes,symmetry of modes.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

This patch is a superset of config_h-cleanup-2.2.17.8. It does:

o Remove the declarations for encrypt/decrypt/set_key routines from 
  include/linux/crypto.h. Dto. for the digest functions.
o Remove the #define'f of *_SCHEDULE_KEY_SIZE from
  include/linux/crypto.h. Used sizeof(...) where cx->keyinfo is a
  pointer to "...".
o Change CIPHER_CBC to CIPHER_MODE_CBC and fixes all occurences.
o Add CIPHER_MODE_ECB and CIPHER_MODE_CTR (the latter being not
  implemented yet). Make the implicit OR with 0x0 for ECB mode
  explicit.
o Ciphers now appear as cipher-ecb and cipher-cbc in
  /proc/crypto/cipher. Previously, "cipher-ecb" read only "cipher".
o Reserves the high-order 16 bits of cipher-id's for the mode used.
  Only affects the module request in crypto/cryptoapi.c

All of this has been tested to compile as modules and blowfish has been
tested to load, register and to not break my crypted fs.

Marc

BTW: Why don't rijndael.c and rc62.c include gen-ecb.h? I made them.
Please check these changes carefully.

-- 
Marc Mutz <Marc@xxxxxxxx>     http://EncryptionHOWTO.sourceforge.net/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)

Attachment: step-2-crypto_h-cleanup-2.2.17.10.patch.bz2
Description: Binary data


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux