lkml.org 
[lkml]   [2021]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] init/Kconfig: Support sign module with SM3 hash algorithm
From
Date
Hi,

On 3/24/21 6:14 AM, Ard Biesheuvel wrote:
> On Tue, 23 Mar 2021 at 09:36, Tianjia Zhang
> <tianjia.zhang@linux.alibaba.com> wrote:
>>
>> The kernel module signature supports the option to use the SM3
>> secure hash (OSCCA GM/T 0004-2012 SM3).
>>
>> Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
>
> A secure hash is not the same as a signature. Looking at the patch,
> the asymmetric algorithm that is used to sign the SM3 digest is SM2,
> is that correct? How does one create such signed modules?
>
> In any case, please provide more context in the commit log on how this
> is intended to be used.
>
>

Sorry for the trouble you have caused. You are right. SM2 and SM3 always
appear in pairs. The former is used for signatures and the latter is
used for hashing algorithms. I will add this information in the next
version. It seems This is more appropriate to split into two patches.

Best regards,
Tianjia

\
 
 \ /
  Last update: 2021-03-24 10:33    [W:0.054 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site