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
  • !13

[AArch64] Optimize GHASH

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Maamoun TK requested to merge mamonet/nettle:master into master Dec 14, 2020
  • Overview 0
  • Commits 1
  • Changes 4

This patch optimizes GHASH on AArch64 architecture. The patch check for little-endian mode to enable the optimized GHASH core, Optimizing GHASH on little-endian mode using PMULL instruction is a little bit tricky because the 64-bit operations on SIMD registers are byte-reversed in little-endian mode so in order to get a correct result the input must be 64-bit byte-reversed and in this case the output of PMULL instruction will be 128-bit byte-reversed.

GCM Benchmark result:

Version Mbyte/s
C 208
Optimized GHASH 3255
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master