kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Jeffrey Walton <noloader@gmail.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: HWCAP for SHA-1 and SHA-256
Date: Sat, 22 Feb 2020 21:36:42 -0500	[thread overview]
Message-ID: <CAH8yC8kpJ5QpavDWz_frYcwmcA2g17ho+Xcz3yrNCN-Hpf1vNg@mail.gmail.com> (raw)

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

                 reply	other threads:[~2020-02-23  2:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH8yC8kpJ5QpavDWz_frYcwmcA2g17ho+Xcz3yrNCN-Hpf1vNg@mail.gmail.com \
    --to=noloader@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).