RFR: 8365732: RISC-V: implement AES CTR intrinsics [v29]
Anjian Wen
wenanjian at openjdk.org
Wed Dec 3 09:51:07 UTC 2025
On Wed, 3 Dec 2025 09:20:20 GMT, Hamlin Li <mli at openjdk.org> wrote:
>> Oh sure, when implementing the Algorithm, I mainly referred to the Java code implementation (https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/com/sun/crypto/provider/CounterMode.java#L200-L212). besides, I referred to the aarch64 implementation (https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp#L3190), and made some modifications for RISC-V instructions
>
> Thanks!
> If this C style code is based on the java one, can you add a reference here to the java code? It's for future reference.
Do you mean adding a comment like “mainly according to com.sun.crypto.provider.CounterMode::implCrypt” here?
I may not have described it clearly, the java one(https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/com/sun/crypto/provider/CounterMode.java#L200-L212) I referred to is the function for which we try to implement its intrinsics, do we still need add a reference?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25281#discussion_r2584381894
More information about the hotspot-compiler-dev
mailing list