From: Herbert Xu <herbert@gondor.apana.org.au>
To: Kamil Konieczny <k.konieczny@partner.samsung.com>
Cc: "Tobin C. Harding" <me@tobin.cc>,
"David S. Miller" <davem@davemloft.net>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
linux-kernel@vger.kernel.org,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>
Subject: Re: [PATCH] crypto: clear htmldocs build warnings for crypto/hash
Date: Tue, 9 Jan 2018 18:41:33 +1100 [thread overview]
Message-ID: <20180109074133.GA10094@gondor.apana.org.au> (raw)
In-Reply-To: <2b4fa5b0-dadb-47fe-2bbd-b051ad343bc4@partner.samsung.com>
On Mon, Jan 08, 2018 at 05:43:18PM +0100, Kamil Konieczny wrote:
> Is it mandatory for both async hash and shash ?
>
> in crypto/ahash.c in function
>
> static int crypto_ahash_init_tfm(struct crypto_tfm *tfm)
>
> there is:
>
> hash->export = ahash_no_export;
> hash->import = ahash_no_import;
>
> and later in the same function:
>
> if (alg->export)
> hash->export = alg->export;
> if (alg->import)
> hash->import = alg->import;
That's just a leftover from the old days before we started requiring
them. These should be removed so that the registration fails if
they're not provided.
The requirement has been in place for a while now and we have been
failing any algorithms with a zero statesize which is only used by
import/export.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2018-01-09 7:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180106230157epcas2p2a3dc70ac85fbd7861ddf916fde5dd2be@epcas2p2.samsung.com>
2018-01-06 23:01 ` Tobin C. Harding
2018-01-08 13:11 ` Kamil Konieczny
2018-01-08 15:56 ` Herbert Xu
2018-01-08 16:43 ` Kamil Konieczny
2018-01-09 7:41 ` Herbert Xu [this message]
2018-01-12 12:26 ` 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=20180109074133.GA10094@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=b.zolnierkie@samsung.com \
--cc=davem@davemloft.net \
--cc=k.konieczny@partner.samsung.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=me@tobin.cc \
/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
all inboxes | Powered by JetHome®