Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N nettle
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 14
    • Merge requests 14
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Nettle
  • nettle
  • Merge requests
  • !28

[AArch64] Optimize SHA-256 compress

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Maamoun TK requested to merge mamonet/nettle:arm64-sha into arm64-sha1 Jul 01, 2021
  • Overview 0
  • Commits 1
  • Changes 1

This patch optimizes SHA-256 compress function by taking advantage of hardware-accelerated instructions of crypto extension:

SHA256H:   SHA256 hash update (part 1)
SHA256H2:  SHA256 hash update (part 2)
SHA256SU0: SHA256 schedule update 0
SHA256SU1: SHA256 schedule update 1

Benchmark on GCC117 instance of CFarm using nettle-benchmark

Mode C Hardware-accelerated
sha256 149.16 Mbyte/s 821.48 Mbyte/s
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: arm64-sha