HomePhabricator

SHA256 implementations based on Intel SHA Extensions

Description

SHA256 implementations based on Intel SHA Extensions

Summary:

  • [Refactor] CPU feature detection logic for SHA256
  • Add SHA256 implementation using using Intel SHA intrinsics
  • Use immintrin.h everywhere for intrinsics
  • Use __cpuid_count for gnu C to avoid gitian build fail.

This is a backport of Core PR13386 and PR13611

Depends on D1850

Test Plan:

make check

Reviewers: #bitcoin_abc, schancel

Reviewed By: #bitcoin_abc, schancel

Subscribers: teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1851

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Jun 24 2018, 17:44
deadalnixCommitted on Oct 9 2018, 00:16
deadalnixPushed on Oct 9 2018, 00:16
Reviewer
Restricted Project
Differential Revision
D1851: SHA256 implementations based on Intel SHA Extensions
Parents
rABC05a2afd875a0: crypto: cleanup sha256 build
Branches
Unknown
Tags
Unknown