lkml.org 
[lkml]   [2023]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] crypto: x86/sm2 -add Zhaoxin SM2 algorithm implementation
From


在 2023/11/16 3:21, Dave Hansen 写道:
>
>> vim +/asm +43 arch/x86/crypto/sm2-zhaoxin-gmi_glue.c
>>
>> 35
>> 36 /* Zhaoxin sm2 verify function */
>> 37 static inline int zhaoxin_gmi_sm2_verify(unsigned char *key, unsigned char *hash, unsigned char *sig,
>> 38 unsigned char *scratch)
>> 39 {
>> 40 uint64_t cword, f_ok;
>> 41 cword = (uint64_t)0x8;
>> 42
>> > 43 asm(".byte 0xf2, 0x0f, 0xa6, 0xc0"
>> 44 :"=c"(f_ok), "+a"(hash), "+b"(key), "+d"(cword), "+S"(scratch), "+D"(sig));
>> 45
>> 46 return f_ok;
>> 47 }
>> 48
>
> When you go fix your compile error, can you please look around the tree
> and see what folks do for replacing .byte? AS_SHA1_NI, for example.

Thank you for your advice. We have found the root cause of the compile
error and conducted detailed testing again. A corrected version will be
released soon.

Sincerely.
Leoliu-oc



\
 
 \ /
  Last update: 2023-11-21 09:05    [W:0.057 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site