From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YXTWU-00043C-Co for barebox@lists.infradead.org; Mon, 16 Mar 2015 11:49:31 +0000 Received: from kiwi.hi.pengutronix.de ([2001:67c:670:100:1d::c3] helo=kiwi) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YXTW8-0005Lj-If for barebox@lists.infradead.org; Mon, 16 Mar 2015 12:49:08 +0100 Received: from jlu by kiwi with local (Exim 4.84) (envelope-from ) id 1YXTW8-0003Tg-9p for barebox@lists.infradead.org; Mon, 16 Mar 2015 12:49:08 +0100 Message-ID: <1426506548.3330.71.camel@pengutronix.de> From: Jan =?ISO-8859-1?Q?L=FCbbe?= Date: Mon, 16 Mar 2015 12:49:08 +0100 In-Reply-To: <1426500945-31815-4-git-send-email-plagnioj@jcrosoft.com> References: <20150316101321.GA26127@ns203013.ovh.net> <1426500945-31815-1-git-send-email-plagnioj@jcrosoft.com> <1426500945-31815-4-git-send-email-plagnioj@jcrosoft.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 04/10] command: add generic digest command To: barebox@lists.infradead.org On Mo, 2015-03-16 at 11:15 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > +BAREBOX_CMD_HELP_START(digest) > +BAREBOX_CMD_HELP_TEXT("Calculate a digest over a FILE or a memory > area.") > +BAREBOX_CMD_HELP_TEXT("Options:") > +BAREBOX_CMD_HELP_OPT ("-a \t", "digest to use") > +BAREBOX_CMD_HELP_OPT ("-k \t", "key as text") > +BAREBOX_CMD_HELP_OPT ("-K \t", "key file") > +BAREBOX_CMD_HELP_OPT ("-s \t", "digest") > +BAREBOX_CMD_HELP_OPT ("-S \t", "digest flie") > +BAREBOX_CMD_HELP_END We're mixing different terms here: digest and signature Signature is usually used in the context of public key crypto, digest is mostly used with for hashes. The command uses both interchangeably. How about: -a hash or signature algorithm to use -k use supplied (ASCII or hex) for MAC -K use key from (binary) for MAC -v verify data against supplied (hash, MAC or signature) -V verify data against (hash, MAC or signature) Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox