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

From: James Morris
Date: Tue Sep 07 2004 - 11:41:56 EST


On Mon, 6 Sep 2004, Michal Ludvig wrote:

> I'd prefer to have the algorithms grouped by "type" ("cipher", "digest",
> "compress")? Then the apps could easily see only the algos that thay are
> interested in...

This could be done with symlinks. Have a master algorithim directory, and
symlinks to different views (e.g. 'ciphers').

> Few notes:
> - - some algorithms allow only discrete set of keysizes (e.g. AES can do
> 128b, 192b and 256b). Can we instead of min/max have a file 'keysize' with
> either:
> minsize-maxsize
> or
> size1,size2,size3
> ?
>
> - - ditto for blocksize?

I don't think it's worth complicating the kernel code just to see that AES
does in fact have the three key sizes required by the specification.


- James
--
James Morris
<jmorris@xxxxxxxxxx>


-
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/