Re: question about crypto module dependency

2012-01-22 Thread Francis Moreau
On Thu, Jan 19, 2012 at 1:28 PM, Herbert Xu wrote: > On Thu, Jan 19, 2012 at 01:26:30PM +0100, Francis Moreau wrote: >> On Thu, Jan 19, 2012 at 12:58 PM, Herbert Xu >> wrote: >> > On Thu, Jan 19, 2012 at 09:10:48AM +0100, Francis Moreau wrote: >> >> >> >> How things are supposed to work when : >>

Re: question about crypto module dependency

2012-01-19 Thread Herbert Xu
On Thu, Jan 19, 2012 at 01:26:30PM +0100, Francis Moreau wrote: > On Thu, Jan 19, 2012 at 12:58 PM, Herbert Xu > wrote: > > On Thu, Jan 19, 2012 at 09:10:48AM +0100, Francis Moreau wrote: > >> > >> How things are supposed to work when : > >> > >>   - crc32c module is not loaded > >>   - libcrc32c

Re: question about crypto module dependency

2012-01-19 Thread Francis Moreau
On Thu, Jan 19, 2012 at 12:58 PM, Herbert Xu wrote: > On Thu, Jan 19, 2012 at 09:10:48AM +0100, Francis Moreau wrote: >> >> How things are supposed to work when : >> >>   - crc32c module is not loaded >>   - libcrc32c module is not loaded >>   - btrfs is not loaded >> >> and I issue: "modprobe btr

Re: question about crypto module dependency

2012-01-19 Thread Herbert Xu
On Thu, Jan 19, 2012 at 09:10:48AM +0100, Francis Moreau wrote: > > How things are supposed to work when : > > - crc32c module is not loaded > - libcrc32c module is not loaded > - btrfs is not loaded > > and I issue: "modprobe btrfs" ? When libcrc32c is loaded it'll automatically load crc3

Re: question about crypto module dependency

2012-01-19 Thread Francis Moreau
On Wed, Jan 18, 2012 at 11:25 PM, Herbert Xu wrote: > On Wed, Jan 18, 2012 at 02:56:45PM +0100, Francis Moreau wrote: >> >> What do you mean with "at module init time" ? >> >> My point is: >> >>   $ grep btrfs /lib/modules/3.2.1/modules.dep >>   kernel/fs/btrfs/btrfs.ko: kernel/lib/zlib_deflate/zl

Re: question about crypto module dependency

2012-01-18 Thread Herbert Xu
On Wed, Jan 18, 2012 at 02:56:45PM +0100, Francis Moreau wrote: > > What do you mean with "at module init time" ? > > My point is: > > $ grep btrfs /lib/modules/3.2.1/modules.dep > kernel/fs/btrfs/btrfs.ko: kernel/lib/zlib_deflate/zlib_deflate.ko > kernel/lib/libcrc32c.ko > > and > > $ gr

Re: question about crypto module dependency

2012-01-18 Thread Francis Moreau
On Wed, Jan 18, 2012 at 1:13 PM, Herbert Xu wrote: > On Wed, Jan 18, 2012 at 08:49:13AM +0100, Francis Moreau wrote: >> >> > What is the user in question? >> >> btrfs > > Hmm, why does it need to do crc32c at module init time? > What do you mean with "at module init time" ? My point is: $ gre

Re: question about crypto module dependency

2012-01-18 Thread Herbert Xu
On Wed, Jan 18, 2012 at 08:49:13AM +0100, Francis Moreau wrote: > > > What is the user in question? > > btrfs Hmm, why does it need to do crc32c at module init time? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey

Re: question about crypto module dependency

2012-01-17 Thread Francis Moreau
On Wed, Jan 18, 2012 at 6:39 AM, Herbert Xu wrote: > Francis Moreau wrote: >> Hello, >> >> I'm wondering how this scenario is supposed to work: let's say a >> module A uses 'crc32c' function in lib/libcrc32c.c. In its turn this >> function calls crypto_shash_update() which is exported by >> crypt

Re: question about crypto module dependency

2012-01-17 Thread Herbert Xu
Francis Moreau wrote: > Hello, > > I'm wondering how this scenario is supposed to work: let's say a > module A uses 'crc32c' function in lib/libcrc32c.c. In its turn this > function calls crypto_shash_update() which is exported by > crypto/shash.c. But now no module implementing "crc32c" has stil