[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <078F58E9-7CCF-4A59-BD29-8E87F9EE434B@sifive.com>
Date: Mon, 20 Nov 2023 10:55:41 +0800
From: Jerry Shih <jerry.shih@...ive.com>
To: Eric Biggers <ebiggers@...nel.org>
Cc: Paul Walmsley <paul.walmsley@...ive.com>, palmer@...belt.com,
Albert Ou <aou@...s.berkeley.edu>, herbert@...dor.apana.org.au,
davem@...emloft.net, andy.chiu@...ive.com, greentime.hu@...ive.com,
conor.dooley@...rochip.com, guoren@...nel.org, bjorn@...osinc.com,
heiko@...ech.de, ardb@...nel.org, phoebe.chen@...ive.com,
hongrong.hsu@...ive.com, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org
Subject: Re: [PATCH 10/12] RISC-V: crypto: add Zvksed accelerated SM4
implementation
On Nov 2, 2023, at 13:58, Eric Biggers <ebiggers@...nel.org> wrote:
> On Thu, Oct 26, 2023 at 02:36:42AM +0800, Jerry Shih wrote:
>> +struct crypto_alg riscv64_sm4_zvksed_alg = {
>> + .cra_name = "sm4",
>> + .cra_driver_name = "sm4-riscv64-zvkb-zvksed",
>> + .cra_module = THIS_MODULE,
>> + .cra_priority = 300,
>> + .cra_flags = CRYPTO_ALG_TYPE_CIPHER,
>> + .cra_blocksize = SM4_BLOCK_SIZE,
>> + .cra_ctxsize = sizeof(struct sm4_ctx),
>> + .cra_cipher = {
>> + .cia_min_keysize = SM4_KEY_SIZE,
>> + .cia_max_keysize = SM4_KEY_SIZE,
>> + .cia_setkey = riscv64_sm4_setkey_zvksed,
>> + .cia_encrypt = riscv64_sm4_encrypt_zvksed,
>> + .cia_decrypt = riscv64_sm4_decrypt_zvksed,
>> + },
>> +};
>
> This should be 'static'.
>
> - Eric
Thx.
Fixed.
-Jerry
Powered by blists - more mailing lists