lkml.org 
[lkml]   [2022]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] crypto: sm4 - create SM4 library based on sm4 generic code
On Tue, Mar 01, 2022 at 11:34:28AM +0100, Jason A. Donenfeld wrote:
> > lib/crypto/Kconfig | 3 +
> > lib/crypto/Makefile | 3 +
> > lib/crypto/sm4.c | 184 +++++++++++++++++++++++++++++++++++++++++++
>
> If this is only used by the crypto API, it does not belong in
> lib/crypto.

Nope there is no such rule. lib/crypto is fine if you're adding
code that is shared between crypto and arch/*/crypto.

Cheers,
--
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

\
 
 \ /
  Last update: 2022-09-17 16:15    [W:0.149 / U:2.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site