[openssl/openssl] a81b4d: Further improve the decryption performance of AES-...
"'zl523856' via openssl-commits" <[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.cvs |
|---|---|
| Message-ID | <openssl/openssl/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: a81b4d920b28b4958d7fdc45648b5d778cc60df0
https://github.com/openssl/openssl/commit/a81b4d920b28b4958d7fdc45648b5d778cc60df0
Author: zhoulu <[email protected]>
Date: 2026-06-18 (Thu, 18 Jun 2026)
Changed paths:
M crypto/aes/asm/aes-riscv64-zvkned.pl
Log Message:
-----------
Further improve the decryption performance of AES-128-CBC on the RISC-V architecture
The decryption performance of AES-128-CBC is improved by 6% to 15%, with the main optimizations as follows:
1.The block processing mode is adjusted to single-block loop + 4-block loop + 8-block loop.
2.The backup of ciphertext using vmv_v_v for XOR operations is replaced with reloading using vle32_v.
3.Key loading and decryption computation are interleaved in a loop.
Hardware simulation environment verification data:
| Decrypt Test | Baseline | Optimized | Improvement ratio |
| ------------ | --------------- | ------------- | ----------------- |
| 16 bytes | 14357.22k | 15271.90k | 6% |
| 64 bytes | 29176.38k | 33592.29k | 15% |
| 256 bytes | 38664.19k | 42968.09k | 11% |
| 1024 bytes | 40308.09k | 43875.04k | 9% |
| 8192 bytes | 42811.39k | 46032.08k | 8% |
| 16384 bytes | 42809.28k | 46110.04k | 8% |
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Thu Jun 18 12:22:19 2026
(Merged from https://github.com/openssl/openssl/pull/31116)
To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
--
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/master/1199f3-a81b4d%40github.com.