[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c2cca04-140a-4b0c-b478-5bdc437b5413@zhaoxin.com>
Date: Wed, 29 Nov 2023 15:24:23 +0800
From: LeoLiu-oc <leoliu-oc@...oxin.com>
To: Dave Hansen <dave.hansen@...el.com>, <herbert@...dor.apana.org.au>,
<davem@...emloft.net>, <tglx@...utronix.de>, <mingo@...hat.com>,
<bp@...en8.de>, <dave.hansen@...ux.intel.com>, <x86@...nel.org>,
<hpa@...or.com>, <seanjc@...gle.com>, <kim.phillips@....com>,
<pbonzini@...hat.com>, <babu.moger@....com>,
<jiaxi.chen@...ux.intel.com>, <jmattson@...gle.com>,
<pawan.kumar.gupta@...ux.intel.com>,
<linux-crypto@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <CobeChen@...oxin.com>, <TonyWWang@...oxin.com>,
<YunShen@...oxin.com>, <Leoliu@...oxin.com>
Subject: Re: [PATCH v3] crypto: x86/sm2 -add Zhaoxin SM2 algorithm
implementation
在 2023/11/22 22:26, Dave Hansen 写道:
>> +/* Zhaoxin sm2 verify function */
>> +static inline size_t zhaoxin_gmi_sm2_verify(unsigned char *key, unsigned char *hash,
>> + unsigned char *sig, unsigned char *scratch)
>> +{
>> + size_t result;
>> +
>> + asm volatile(
>> + ".byte 0xf2, 0x0f, 0xa6, 0xc0"
>> + :"=c"(result)
>> + :"a"(hash), "b"(key), "d"(SM2_CWORD_VERIFY), "S"(scratch), "D"(sig)
>> + :"memory");
>> +
>> + return result;
>> +}
>
> What version of binutils supports this new instruction?
>
The instruction has not yet been submitted to binutils. It will only be
used in the Zhaoxin-rng driver, and we are evaluating the necessity of
submitting it to binutils.
Yours sincerely,
Leoliu-oc
Powered by blists - more mailing lists