kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* HWCAP for SHA-1 and SHA-256
@ 2020-02-23  2:36 Jeffrey Walton
  0 siblings, 0 replies; only message in thread
From: Jeffrey Walton @ 2020-02-23  2:36 UTC (permalink / raw)
  To: kernelnewbies

Hi Everyone,

I'm having trouble finding the HWCAP_* or HWCAP2_* for SHA-1 and
SHA-256 on x86 machines.

Poking around Torvald's GitHub does not reveal them in either auxvec.h
or hwcap2.h. Also see
https://github.com/torvalds/linux/tree/master/arch/x86/include/uapi/asm.
Grepping my local machine (x86_64) provides them for arm64, but not
x86 (WTF?):

   $ grep -IR HWCAP2_ /usr/include
   /usr/include/x86_64-linux-gnu/asm/hwcap2.h:#ifndef _ASM_X86_HWCAP2_H
   /usr/include/x86_64-linux-gnu/asm/hwcap2.h:#define _ASM_X86_HWCAP2_H
   /usr/include/x86_64-linux-gnu/asm/hwcap2.h:#define
HWCAP2_RING3MWAIT        (1 << 0)

What are the HWCAP_* or HWCAP2_* to use for SHA-1 and SHA-256 on x86 machines?

Thanks in advance.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-23  2:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23  2:36 HWCAP for SHA-1 and SHA-256 Jeffrey Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).