Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267651AbUI1Mff (ORCPT ); Tue, 28 Sep 2004 08:35:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267683AbUI1Mff (ORCPT ); Tue, 28 Sep 2004 08:35:35 -0400 Received: from 217-114-210-112.kunde.vdserver.de ([217.114.210.112]:21764 "EHLO old-fsckful.ath.cx") by vger.kernel.org with ESMTP id S267651AbUI1Mec (ORCPT ); Tue, 28 Sep 2004 08:34:32 -0400 Date: Tue, 28 Sep 2004 14:34:26 +0200 From: Andreas Happe To: Michal Ludvig Cc: James Morris , cryptoapi@lists.logix.cz, linux-kernel@vger.kernel.org, Andreas Happe Subject: Re: [cryptoapi/sysfs] display cipher details in sysfs Message-ID: <20040928123426.GA21069@final-judgement.ath.cx> References: <20040831175449.GA2946@final-judgement.ath.cx> <20040901082819.GA2489@final-judgement.ath.cx> <20040907143509.GA30920@old-fsckful.ath.cx> <20040910105502.GA4663@final-judgement.ath.cx> <20040927084149.GA3625@final-judgement.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Request-PGP: subkeys.pgp.net X-Hangover: none User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1962 Lines: 51 Michal Ludvig [040927 11:32]: >BTW In http://lists.logix.cz/pipermail/cryptoapi/2004/000088.html I >described a concept of "preferences" that was done for the current >cryptoapi. How to do something similar with your patch applied? The class - objects are used just for display use.. your patch should apply (sans offsets) without problems.. I don't think that the two different algorithms would be displayed in sysfs as i use the cra_name as directory name (which should be aes for aes and aes-i586). >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). the same could be done without the implementations - directory. If a new algorithm tries to register itself with a already registered name (and the module name isn't known) it is added to the /sysfs/class/crypto//implementations - directory as . All Algorithm - specific data would be displayed in the directory, the rest in the implementations/ - directory. I'm moving to vienna the day after tomorrow so don't expect too fast response times from me. --Andreas - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/