Re: Are there any drivers that use aead.ko

2008-11-09 Thread Herbert Xu
Dean Jenkins <[EMAIL PROTECTED]> wrote: > > Are there any example drivers that make use of aead.ko ? drivers/crypto/talitos > Is it true that an AEAD driver can perform encryption and hashing in a single > call ? Apparently yes according to Bilbo. > I assume aead.ko is designed for hardware c

Re: Unloading hardware based crypto to fallback to software based crypto

2008-11-09 Thread Herbert Xu
Dean Jenkins <[EMAIL PROTECTED]> wrote: > > Is there a mechanism to allow a hardware crypto driver to be unloaded and the > IPsec session to fallback to using software based crypto drivers ? Fail-over should be implemented within the driver. Please look at drivers/crypto/padlock-sha.c for an ex

Re: What is the difference between aead.ko and authenc.ko ?

2008-11-09 Thread Herbert Xu
Dean Jenkins <[EMAIL PROTECTED]> wrote: > > Can anyone explain the difference between aead.ko and authenc.ko ? AEAD is a type of crypto algorithms, just like cipher or hash. Authenc is a particular AEAD algorithm, just like AES is a cipher or SHA is a hash. > How does crypto decide to use aead.

[PATCH 1/8] crypto/md4.c: use ARRAY_SIZE

2008-11-09 Thread Julia Lawall
From: Julia Lawall <[EMAIL PROTECTED]> ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @i@ @@ #include @depends