From: "Stephan Müller" <smueller@chronox.de>
To: Harsh Jain <harshjain.prof@gmail.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: What should be the algo priority
Date: Tue, 04 Apr 2017 14:37:02 +0200 [thread overview]
Message-ID: <42612664.V5g4013kpk@tauon.chronox.de> (raw)
In-Reply-To: <CAFXBA=kTywuuZOKw6a7mj+aXtn0YcOYF=jmesuBE2L3zZmojMw@mail.gmail.com>
Am Dienstag, 4. April 2017, 09:53:17 CEST schrieb Harsh Jain:
Hi Harsh,
> Hi,
>
> Do we have any guidelines documented to decide what should be the
> algorithm priority. Specially for authenc implementation.Most of the
> drivers have fixed priority for all algos. Problem comes in when we
> have cbc(aes), hmac(sha1) and authenc(cbc(aes),hmac(sha1))
> implementation in driver. Base authenc driver gets more precedence
> because of higher priority(enc->base.cra_priority * 10 +
> auth_base->cra_priority;)
>
> What should be the priority of
> cbc(aes),
> hmac(sha1)
> authenc(cbc(aes),hmac(sha1))
There is no general rule about the actual numbers. But commonly, the prios are
set such that the prios of C implementations < ASM implementations < hardware
accelerators. The idea is to give users the fastest implementation there is
for his particular system.
Ciao
Stephan
next prev parent reply other threads:[~2017-04-04 12:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-04 7:53 What should be the algo priority Harsh Jain
2017-04-04 12:37 ` Stephan Müller [this message]
2017-04-06 5:26 ` Harsh Jain
2017-04-07 18:13 ` Hamid Nassiby
2017-04-10 11:25 ` Herbert Xu
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=42612664.V5g4013kpk@tauon.chronox.de \
--to=smueller@chronox.de \
--cc=harshjain.prof@gmail.com \
--cc=linux-crypto@vger.kernel.org \
/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