[LWN Logo]
[Timeline]
Date:	Fri, 5 Jan 2001 23:07:56 +0100
From:	Alexander S A Kjeldaas <Alexander.Kjeldaas@fast.no>
To:	linux-crypto@humbolt.nl.linux.org
Subject: New patches out for 2.2 and 2.4.

Two new patches are out - 2.2.18.4pre1 and 2.4.0.1, available at:
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/
ftp://ftp.kernel.org/pub/linux/kernel/people/astor/v2.2/

This patch includes most of the changes I wanted to have done before
switching to 2.4.  There are no more cipher or digest IDs in this
patch.  This means there is no longer any need to have util-linux in
synch with the kernel.  Names of ciphers are passed as a string from
user-land.  Also cipher_implementations now have both atomic and
non-atomic versions of encrypt/decrypt/set_key as discussed on the
list earlier.  When calling

ci_atomic = find_cipher_by_name("somecipher-cbc", 1);
...
ci_atomic->encrypt_atomic(...);

there is a second argument that specifies whether you need to use the
atomic functions.  When set to 1, find_cipher_by_name is required to
return a cipher_implementation that supports this (i.e. a software
cipher).  All the ciphers currently support this.

All the ciphers have been renamed since they are now loaded based on
their names.  So

find_cipher_by_name("somecipher-cbc", 0);

will look for the following modules until somecipher-cbc is found or
all options have been exhausted:
 cipher-somecipher-cbc
 cipher-somecipher
 cipher
..byebye to /etc/modules.conf hell.

The util-linux patch probably needs some cleanups still, but I wanted
to get this out.

Oh, and this patch requires you to recompile util-linux.

astor

-- 
Alexander Kjeldaas                Mail:  astor@fast.no
finger astor@master.kernel.org for OpenPGP key.

Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/