Commit 77a251a
committed
deps: enable OpenSSL asm support for riscv64
Move linux64-riscv64 from NO_ASM_ARCHS to ASM_ARCHS in the OpenSSL
config Makefile and regenerate the configuration. This adds asm/ and
asm_avx2/ config variants alongside the existing no-asm/ variant.
When riscv64 was first added to the OpenSSL config in 2021 (#40063),
OpenSSL had no RISC-V assembly support. OpenSSL 3.5.x now ships 17
perlasm generators covering AES (zvkned, zvkb, zkn), SHA-256/512
(zvknha, zvknhb), GHASH/GCM (zvkg, zvbc), ChaCha (v, zbb), SM3
(zvksh), SM4 (zvksed), and CPUID detection. Runtime capability
detection via riscvcap.c and the Linux hwprobe syscall ensures safe
fallback to generic C code on hardware without these extensions.
Also add riscv64 entries to the six asm gypi selector files:
openssl_asm.gypi, openssl_asm_avx2.gypi, openssl-cl_asm.gypi,
openssl-cl_asm_avx2.gypi, openssl-fips_asm.gypi, and
openssl-fips_asm_avx2.gypi.
Refs: nodejs/build#4099
Signed-off-by: Jamie Magee <[email protected]>1 parent b2248fd commit 77a251a
288 files changed
Lines changed: 138392 additions & 65 deletions
File tree
- deps/openssl
- config
- archs
- BSD-x86_64
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- BSD-x86
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- VC-WIN32
- asm_avx2
- crypto
- asm
- crypto
- no-asm
- crypto
- VC-WIN64-ARM/no-asm
- crypto
- VC-WIN64A
- asm_avx2
- crypto
- asm
- crypto
- no-asm
- crypto
- aix64-gcc-as
- asm_avx2/crypto
- asm
- crypto
- no-asm/crypto
- darwin-i386-cc
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- darwin64-arm64-cc
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- darwin64-x86_64-cc
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux-aarch64
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux-armv4
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux-elf
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux-ppc64le
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux-x86_64
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux32-s390x
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux64-loongarch64/no-asm/crypto
- linux64-mips64
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- linux64-riscv64
- asm_avx2
- apps
- crypto
- aes
- chacha
- modes
- sha
- sm3
- sm4
- include
- crypto
- internal
- openssl
- providers
- common
- der
- include/prov
- asm
- apps
- crypto
- aes
- chacha
- modes
- sha
- sm3
- sm4
- include
- crypto
- internal
- openssl
- providers
- common
- der
- include/prov
- no-asm/crypto
- linux64-s390x
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- solaris-x86-gcc
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
- solaris64-x86_64-gcc
- asm_avx2/crypto
- asm/crypto
- no-asm/crypto
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments