public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephan Mueller <smueller@chronox.de>
To: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	Jon Mason <jonmason@broadcom.com>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Anup Patel <anup.patel@broadcom.com>, Ray Jui <rjui@broadcom.com>,
	Scott Branden <sbranden@broadcom.com>,
	Pramod Kumar <pramod.kumar@broadcom.com>,
	bcm-kernel-feedback-list <bcm-kernel-feedback-list@broadcom.com>,
	Jeff Garzik <jeff@garzik.org>, Jeff Garzik <jgarzik@redhat.com>
Subject: Re: [PATCH 1/2] Crypto: Add SHA-3 hash algorithm
Date: Thu, 16 Jun 2016 18:24:20 +0200	[thread overview]
Message-ID: <1469618.GoqEiobQFD@positron.chronox.de> (raw)
In-Reply-To: <CAAFb_vqubPdy4g0NsM02JaUN-YL8V17kYbVMHWSTv9CByZ3XRA@mail.gmail.com>

Am Donnerstag, 16. Juni 2016, 21:39:17 schrieb Raveendra Padasalagi:

Hi Raveendra,

> I need some clarification to address your comment
> 
> "Shouldn't there be a priority here?"
> 
> What I know regarding priority value for an algorithm
> is higher the priority value it will be get selected for execution.
> 
> For example, let's say for software implementation of the algorithm if
> priority value
> is specified as 100 and hardware driver implementation of the same
> algorithm uses
> the priority value of 300 then hardware algo is what selected for execution.
> 
> I just had a look at priority value specified for other hash
> algorithm's and none of the
> software implementation specify any value, So it will be 0.
> 
> I think it's okay to not to specify any priority value for software
> implementation,
> as hardware implementation can use non zero value if it needs higher
> priority.
> 
> What's your opinion ?

You are fully correct.

To be in line with the other hashes, maybe let us leave it at 0. I was 
thinking about "backend" ciphers that should never ever be selected (like the 
Intel AES-NI examples) which should have a lower prio than any other cipher. 
But then, they have unique cra_names, so it does not really matter :-)

Ciao
Stephan

  reply	other threads:[~2016-06-16 16:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15  9:41 [PATCH 0/2] Add SHA-3 algorithm and test vectors Raveendra Padasalagi
2016-06-15  9:41 ` [PATCH 1/2] Crypto: Add SHA-3 hash algorithm Raveendra Padasalagi
2016-06-15 11:42   ` Stephan Mueller
2016-06-16  9:14     ` Raveendra Padasalagi
2016-06-16 15:40       ` Stephan Mueller
2016-06-16 16:09         ` Raveendra Padasalagi
2016-06-16 16:24           ` Stephan Mueller [this message]
2016-06-15  9:41 ` [PATCH 2/2] Crypto: Add SHA-3 Test's in tcrypt Raveendra Padasalagi
2016-06-15  9:50   ` Raveendra Padasalagi
2016-06-15  9:50 ` [PATCH 0/2] Add SHA-3 algorithm and test vectors Raveendra Padasalagi
2016-06-15 10:57 ` Raveendra Padasalagi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1469618.GoqEiobQFD@positron.chronox.de \
    --to=smueller@chronox.de \
    --cc=anup.patel@broadcom.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=jeff@garzik.org \
    --cc=jgarzik@redhat.com \
    --cc=jonmason@broadcom.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pramod.kumar@broadcom.com \
    --cc=raveendra.padasalagi@broadcom.com \
    --cc=rjui@broadcom.com \
    --cc=sbranden@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox