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

Fix sm3ss1 translation issue in sm3-armv8.pl #17542

Closed
wants to merge 1 commit into from

Conversation

zorrorffm
Copy link
Contributor

sm3-armv8.pl supposes to replace all series of sm3 instructions with instruction binary so that the generated .S file is able to be compiled successfully by a lower version of compiler not supporting sm3 instructions.

But sm3ss1 instruction is not replaced correctly in this file because "sm3ssl" instead of "sm3ss1" is used to do the matching in regular expression. So this fix corrects the typo sm3ssl with sm3ss1.

@paulidale paulidale added approval: review pending This pull request needs review by a committer branch: master Merge to master branch labels Jan 18, 2022
@t8m t8m added approval: done This pull request has the required number of approvals triaged: bug The issue/pr is/fixes a bug and removed approval: review pending This pull request needs review by a committer labels Jan 18, 2022
@openssl-machine openssl-machine removed the approval: done This pull request has the required number of approvals label Jan 19, 2022
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

@openssl-machine openssl-machine added the approval: ready to merge The 24 hour grace period has passed, ready to merge label Jan 19, 2022
@paulidale
Copy link
Contributor

Merged. Thanks for the contribution.

@paulidale paulidale closed this Jan 20, 2022
openssl-machine pushed a commit that referenced this pull request Jan 20, 2022
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #17542)
t8m pushed a commit to t8m/openssl that referenced this pull request Nov 2, 2022
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from openssl#17542)

(cherry picked from commit bca6cc5)
openssl-machine pushed a commit that referenced this pull request Nov 9, 2022
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #17542)

(cherry picked from commit bca6cc5)
wanghao75 pushed a commit to openeuler-mirror/openssl that referenced this pull request Sep 18, 2023
This patch contains the following two PRs,

1. SM3 acceleration with SM3 hardware instruction on aarch64

SM3 hardware instruction is optional feature of crypto extension for
aarch64. This implementation accelerates SM3 via SM3 instructions. For
the platform not supporting SM3 instruction, the original C
implementation still works. Thanks to AliBaba for testing and reporting
the following perf numbers for Yitian710:

Benchmark on T-Head Yitian-710 2.75GHz:

Before:
type  16 bytes     64 bytes    256 bytes    1024 bytes   8192 bytes   16384 bytes
sm3   49297.82k   121062.63k   223106.05k   283371.52k   307574.10k   309400.92k

After (33% - 74% faster):
type  16 bytes     64 bytes    256 bytes    1024 bytes   8192 bytes   16384 bytes
sm3   65640.01k   179121.79k   359854.59k   481448.96k   534055.59k   538274.47k

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from openssl/openssl#17454)

2. Fix sm3ss1 translation issue in sm3-armv8.pl

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from openssl/openssl#17542)

reference: https://gitee.com/src-openeuler/openssl/blob/openEuler-22.03-LTS-Next/Backport-SM3-acceleration-with-SM3-hardware-instruction-on-aa.patch
Signed-off-by: dumbdog <lemlinkinpark@126.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Merge to master branch triaged: bug The issue/pr is/fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants