Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aarch64 ASM: Use CPU features for more #8325

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

SparkiDev
Copy link
Contributor

Description

Please describe the scope of the fix or feature addition.

AES GCM streaming - fix GHASH_ONE_BLOCK to use CPU feature information. AES-GCM uses EOR3 (SHA-3 instruction) - split assembly code. Kyber uses SQRDMLSH - split assembly code.

Changed define from WOLFSSL_AARCH64_NO_SQRMLSH to
WOLFSSL_AARCH64_NO_SQRDMLSH to match instruction.

Improved array data format for inline assembly code.

Testing

Regression tested Aarch64 assembly code.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

AES GCM streaming - fix GHASH_ONE_BLOCK to use CPU feature information.
AES-GCM uses EOR3 (SHA-3 instruction) - split assembly code.
Kyber uses SQRDMLSH - split assembly code.

Changed define from WOLFSSL_AARCH64_NO_SQRMLSH to
WOLFSSL_AARCH64_NO_SQRDMLSH to match instruction.

Improved array data format for inline assembly code.
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! 100% success on a Raspberry Pi 4 built with ./configure --enable-all --enable-armasm --enable-sp=yes,asm && make

@dgarske dgarske removed their assignment Jan 2, 2025
@dgarske dgarske requested a review from douzzer January 2, 2025 17:01
@dgarske dgarske merged commit 5a6e92c into wolfSSL:master Jan 2, 2025
151 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants