Re: [cryptoapi/sysfs] display cipher details in sysfs

From: Michal Ludvig
Date: Wed Sep 29 2004 - 08:18:09 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Happe told me that:
> Michal Ludvig <michal@xxxxxxxx> [040927 11:32]:
>
>> If I'd finally have two or more modules for the same algorithm loaded,
>> how
>> should the /sys subtree look like?
>
> good one.
>
> If there are lots of different implementation for a given algorithm it
> could be worthwhile to create a algorithm and a implementation -
> directory e.g.
>
> ls /sysfs/class/crypto/implementations would list:
> aes-i586 aes-c4 md5 sha1 sha256-c4
>
> and: ls /sysfs/class/crypto/algorithms
> aes
>
> with ls /sysfs/class/crypto/algorithms/aes
> name type implementations
>
> where implementations is a directory with links to the given
> implementations in /sysfs/class/crypto/implementations.
>
> Seems like a lot of work if there are only few implementations (like aes
> and aes-i586).

Once we have a support for hardware cryptocards it will be usefull. I'm
already having the VIA PadLock patch that adds yet another AES
implementation. For VIA C7 it will also support SHA (one module, two
algorithms? why not ;-)

IMHO it is worth having it done "right and expandable" since the
beginning (changing the /sys tree once it goes mainline will be harder).

Michal Ludvig
- --
* A mouse is a device used to point at the xterm you want to type in.
* Personal homepage - http://www.logix.cz/michal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBWrUUDDolCcRbIhgRAqU7AKCCKEUplTD8PJldxT0yodC1M52UjQCg2DSx
Im6Amy3cGI+UhUqo4s/4IVk=
=fqyy
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/