Add SM2 LoongArch64 asm support #1818
Open
DengJianbo-loongson wants to merge 3 commits intoguanzhi:masterfrom
Open
Add SM2 LoongArch64 asm support #1818DengJianbo-loongson wants to merge 3 commits intoguanzhi:masterfrom
DengJianbo-loongson wants to merge 3 commits intoguanzhi:masterfrom
Conversation
Following functions implemented by LoongArch instructions are added to improve the performance of SM2. * sm2_z256_modp_add * sm2_z256_modp_dbl * sm2_z256_modp_tri * sm2_z256_modp_mont_mul * sm2_z256_modp_mont_sqr * sm2_z256_modp_sub * sm2_z256_modp_neg * sm2_z256_modp_haf * sm2_z256_modp_to_mont * sm2_z256_modp_from_mont Test on LA 3A6000, the number of signatures per second has increased from 8567 to 56344.
Following functions implemented by LoongArch instructions are added to improve the performance of SM2. * sm2_z256_modn_add * sm2_z256_modn_sub * sm2_z256_modn_neg * sm2_z256_modn_mont_mul * sm2_z256_modn_from_mont * sm2_z256_modn_to_mont * sm2_z256_modn_mont_sqr Test on LA 3A6000, the number of signatures per second has increased from 56344 to 57414.
Following functions implemented by LoongArch instructions are added to improve the performance of SM2. * sm2_z256_point_dbl * sm2_z256_point_add_affine * sm2_z256_point_add_affine Test on LA 3A6000, the number of signatures per second has increased from 57414 to 62203.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add LoongArch SM2 related functions to improve the performance. Tested on LA 3A6000, the number of signatures per second has increased from 8567 to 62203.