Messages in this thread | | | Date | Tue, 21 Nov 2023 16:04:19 +0800 | Subject | Re: [PATCH v2] crypto: x86/sm2 -add Zhaoxin SM2 algorithm implementation | From | LeoLiu-oc <> |
| |
在 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
| |