RFR: 8365732: RISC-V: implement AES CTR intrinsics

Andrew Haley aph at openjdk.org
Tue Aug 19 06:34:42 UTC 2025


On Sat, 17 May 2025 03:13:46 GMT, Anjian Wen <wenanjian at openjdk.org> wrote:

> Hi everyone, please help review this patch which Implement the _counterMode_AESCrypt with Zvkned. On my QEMU, with Zvkned extension enabled, the tests in test/hotspot/jtreg/compiler/codegen/aes/ Passed.

src/hotspot/cpu/riscv/stubGenerator_riscv.cpp line 2745:

> 2743:     __ vsetivli(x0, 4, Assembler::e32, Assembler::m1);
> 2744:     __ vrev8_v(v31, v31, Assembler::VectorMask::v0_t); // convert big-endien to little-endian
> 2745:     __ vadd_vi(v31, v31, 1, Assembler::VectorMask::v0_t);

Are you sure this is correct? See `com.sun.crypto.provider.CounterMode::increment`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25281#discussion_r2206938722


More information about the hotspot-compiler-dev mailing list