lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aa7bbecc-dcd5-4757-8f8a-1eb2ab0d529b@intel.com>
Date:   Wed, 22 Nov 2023 06:26:00 -0800
From:   Dave Hansen <dave.hansen@...el.com>
To:     LeoLiu-oc <LeoLiu-oc@...oxin.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

> +/* 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?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ