Performance optimization of SM4-XTS encryption and decryption on RISC-V#6
Open
zl523856 wants to merge 1 commit into
Open
Performance optimization of SM4-XTS encryption and decryption on RISC-V#6zl523856 wants to merge 1 commit into
zl523856 wants to merge 1 commit into
Conversation
zl523856
force-pushed
the
optimize_sm4_xts
branch
from
July 16, 2026 01:57
452e4da to
abca317
Compare
This module implements hardware instruction acceleration for SM4-XTS encryption and decryption calculations. Code from the OpenAnolis community at https://gitee.com/src-anolis-os/openssl/pulls, jointly developed by Alibaba DAMO Academy and ZTE. Hardware simulation environment verification data: Encrypt Test Baseline Optimized Improvement ratio 16 bytes 7678.64k 9123.29k 19% 64 bytes 13388.16k 27949.34k 109% 256 bytes 16292.61k 60993.07k 274% 1024 bytes 17157.58k 67229.52k 292% 8192 bytes 17506.3k 73404.54k 319% 16384 bytes 17503.3k 73679.28k 321% Decrypt Test Baseline Optimized Improvement ratio 16 bytes 7571.44k 10867.31k 44% 64 bytes 13108.21k 31051.57k 137% 256 bytes 16308.99k 59285.31k 264% 1024 bytes 17143.38k 70561.16k 312% 8192 bytes 17612.8k 73996.33k 320% 16384 bytes 17661.95k 74066.56k 319% Test Verification All relevant tests pass in the default build configuration: make test 99-test_fuzz_x509.t ...................... ok All tests successful. Files=350, Tests=4030, 7925 wallclock secs (93.00 usr 24.55 sys + 5698.70 cusr 1960.42 csys = 7776.67 CPU) Result: PASS
zl523856
force-pushed
the
optimize_sm4_xts
branch
from
July 17, 2026 03:26
abca317 to
63870b8
Compare
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.
This module implements hardware instruction acceleration for SM4-XTS encryption and decryption calculations.
Code from the OpenAnolis community at https://gitee.com/src-anolis-os/openssl/pulls, jointly developed by Alibaba DAMO Academy and ZTE.
Hardware simulation environment verification data:
Encrypt Test Baseline Optimized Improvement ratio
16 bytes 7678.64k 9123.29k 19%
64 bytes 13388.16k 27949.34k 109%
256 bytes 16292.61k 60993.07k 274%
1024 bytes 17157.58k 67229.52k 292%
8192 bytes 17506.3k 73404.54k 319%
16384 bytes 17503.3k 73679.28k 321%
Decrypt Test Baseline Optimized Improvement ratio
16 bytes 7571.44k 10867.31k 44%
64 bytes 13108.21k 31051.57k 137%
256 bytes 16308.99k 59285.31k 264%
1024 bytes 17143.38k 70561.16k 312%
8192 bytes 17612.8k 73996.33k 320%
16384 bytes 17661.95k 74066.56k 319%
Test Verification
All relevant tests pass in the default build configuration: make test
99-test_fuzz_x509.t ...................... ok
All tests successful.
Files=350, Tests=4030, 7925 wallclock secs (93.00 usr 24.55 sys + 5698.70 cusr 1960.42 csys = 7776.67 CPU) Result: PASS
Checklist