diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/linux.yml | 12 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | crypto/CMakeLists.txt | 24 | ||||
-rw-r--r-- | crypto/Makefile.am | 5 | ||||
-rw-r--r-- | crypto/Makefile.am.elf-x86_64 | 10 | ||||
-rw-r--r-- | crypto/Makefile.am.macosx-x86_64 | 10 | ||||
-rw-r--r-- | include/CMakeLists.txt | 32 | ||||
-rw-r--r-- | include/Makefile.am | 16 | ||||
-rw-r--r-- | include/arch/loongarch64/opensslconf.h | 23 | ||||
-rw-r--r-- | include/arch/mips/opensslconf.h | 23 | ||||
-rw-r--r-- | include/openssl/Makefile.am.tpl | 41 | ||||
-rw-r--r-- | m4/check-os-options.m4 | 6 | ||||
-rw-r--r-- | patches/amd64_crypto_arch.h.patch | 8 | ||||
-rw-r--r-- | patches/crypto_namespace.h.patch | 22 | ||||
-rw-r--r-- | patches/mlkem_internal.h.patch | 11 | ||||
-rw-r--r-- | patches/ssl_namespace.h.patch | 21 | ||||
-rw-r--r-- | patches/win32_amd64_bn_arch.h.patch | 6 | ||||
-rwxr-xr-x | scripts/test | 2 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/mlkem_tests.bat | 63 | ||||
-rwxr-xr-x | update.sh | 5 |
22 files changed, 153 insertions, 200 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8334ae6..de9d8d3 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml | |||
@@ -35,6 +35,13 @@ jobs: | |||
35 | - os: "ubuntu-24.04" # loong64 | 35 | - os: "ubuntu-24.04" # loong64 |
36 | arch: "loong64" | 36 | arch: "loong64" |
37 | compiler: "gcc" | 37 | compiler: "gcc" |
38 | - os: "ubuntu-24.04-arm" | ||
39 | arch: "native" | ||
40 | compiler: "gcc" | ||
41 | - os: "ubuntu-24.04-arm" | ||
42 | arch: "native" | ||
43 | compiler: "clang" | ||
44 | |||
38 | steps: | 45 | steps: |
39 | - name: "Checkout repository" | 46 | - name: "Checkout repository" |
40 | uses: actions/checkout@v4 | 47 | uses: actions/checkout@v4 |
@@ -47,8 +54,8 @@ jobs: | |||
47 | 54 | ||
48 | # Test ASAN with and without ASM enabled. | 55 | # Test ASAN with and without ASM enabled. |
49 | test-asan: | 56 | test-asan: |
50 | name: "ASAN (${{ matrix.asm == 'ON' && 'asm' || 'no-asm' }})" | 57 | name: "${{ matrix.os }} - ASAN (${{ matrix.asm == 'ON' && 'asm' || 'no-asm' }})" |
51 | runs-on: "ubuntu-24.04" | 58 | runs-on: "${{ matrix.os }}" |
52 | if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }} | 59 | if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }} |
53 | permissions: | 60 | permissions: |
54 | contents: read | 61 | contents: read |
@@ -56,6 +63,7 @@ jobs: | |||
56 | fail-fast: false | 63 | fail-fast: false |
57 | matrix: | 64 | matrix: |
58 | asm: [ON, OFF] | 65 | asm: [ON, OFF] |
66 | os: ["ubuntu-24.04", "ubuntu-24.04-arm"] | ||
59 | steps: | 67 | steps: |
60 | - name: "Checkout repository" | 68 | - name: "Checkout repository" |
61 | uses: actions/checkout@v4 | 69 | uses: actions/checkout@v4 |
@@ -108,6 +108,7 @@ tests/constraints* | |||
108 | tests/crypto_test* | 108 | tests/crypto_test* |
109 | tests/ctlog.conf | 109 | tests/ctlog.conf |
110 | tests/*.crt | 110 | tests/*.crt |
111 | tests/ec_arithmetic* | ||
111 | tests/ec_point_conversion* | 112 | tests/ec_point_conversion* |
112 | tests/ecc_cdh* | 113 | tests/ecc_cdh* |
113 | tests/evp_pkey_cleanup* | 114 | tests/evp_pkey_cleanup* |
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 047c228..f67d2bd 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
@@ -33,11 +33,21 @@ if(HOST_ASM_ELF_X86_64) | |||
33 | bn/arch/amd64/bignum_add.S | 33 | bn/arch/amd64/bignum_add.S |
34 | bn/arch/amd64/bignum_cmadd.S | 34 | bn/arch/amd64/bignum_cmadd.S |
35 | bn/arch/amd64/bignum_cmul.S | 35 | bn/arch/amd64/bignum_cmul.S |
36 | bn/arch/amd64/bignum_modadd.S | ||
37 | bn/arch/amd64/bignum_modsub.S | ||
36 | bn/arch/amd64/bignum_mul.S | 38 | bn/arch/amd64/bignum_mul.S |
39 | bn/arch/amd64/bignum_mul_4_8.S | ||
37 | bn/arch/amd64/bignum_mul_4_8_alt.S | 40 | bn/arch/amd64/bignum_mul_4_8_alt.S |
41 | bn/arch/amd64/bignum_mul_6_12.S | ||
42 | bn/arch/amd64/bignum_mul_6_12_alt.S | ||
43 | bn/arch/amd64/bignum_mul_8_16.S | ||
38 | bn/arch/amd64/bignum_mul_8_16_alt.S | 44 | bn/arch/amd64/bignum_mul_8_16_alt.S |
39 | bn/arch/amd64/bignum_sqr.S | 45 | bn/arch/amd64/bignum_sqr.S |
46 | bn/arch/amd64/bignum_sqr_4_8.S | ||
40 | bn/arch/amd64/bignum_sqr_4_8_alt.S | 47 | bn/arch/amd64/bignum_sqr_4_8_alt.S |
48 | bn/arch/amd64/bignum_sqr_6_12.S | ||
49 | bn/arch/amd64/bignum_sqr_6_12_alt.S | ||
50 | bn/arch/amd64/bignum_sqr_8_16.S | ||
41 | bn/arch/amd64/bignum_sqr_8_16_alt.S | 51 | bn/arch/amd64/bignum_sqr_8_16_alt.S |
42 | bn/arch/amd64/bignum_sub.S | 52 | bn/arch/amd64/bignum_sub.S |
43 | bn/arch/amd64/word_clz.S | 53 | bn/arch/amd64/word_clz.S |
@@ -71,11 +81,21 @@ if(HOST_ASM_MACOSX_X86_64) | |||
71 | bn/arch/amd64/bignum_add.S | 81 | bn/arch/amd64/bignum_add.S |
72 | bn/arch/amd64/bignum_cmadd.S | 82 | bn/arch/amd64/bignum_cmadd.S |
73 | bn/arch/amd64/bignum_cmul.S | 83 | bn/arch/amd64/bignum_cmul.S |
84 | bn/arch/amd64/bignum_modadd.S | ||
85 | bn/arch/amd64/bignum_modsub.S | ||
74 | bn/arch/amd64/bignum_mul.S | 86 | bn/arch/amd64/bignum_mul.S |
87 | bn/arch/amd64/bignum_mul_4_8.S | ||
75 | bn/arch/amd64/bignum_mul_4_8_alt.S | 88 | bn/arch/amd64/bignum_mul_4_8_alt.S |
89 | bn/arch/amd64/bignum_mul_6_12.S | ||
90 | bn/arch/amd64/bignum_mul_6_12_alt.S | ||
91 | bn/arch/amd64/bignum_mul_8_16.S | ||
76 | bn/arch/amd64/bignum_mul_8_16_alt.S | 92 | bn/arch/amd64/bignum_mul_8_16_alt.S |
77 | bn/arch/amd64/bignum_sqr.S | 93 | bn/arch/amd64/bignum_sqr.S |
94 | bn/arch/amd64/bignum_sqr_4_8.S | ||
78 | bn/arch/amd64/bignum_sqr_4_8_alt.S | 95 | bn/arch/amd64/bignum_sqr_4_8_alt.S |
96 | bn/arch/amd64/bignum_sqr_6_12.S | ||
97 | bn/arch/amd64/bignum_sqr_6_12_alt.S | ||
98 | bn/arch/amd64/bignum_sqr_8_16.S | ||
79 | bn/arch/amd64/bignum_sqr_8_16_alt.S | 99 | bn/arch/amd64/bignum_sqr_8_16_alt.S |
80 | bn/arch/amd64/bignum_sub.S | 100 | bn/arch/amd64/bignum_sub.S |
81 | bn/arch/amd64/word_clz.S | 101 | bn/arch/amd64/word_clz.S |
@@ -416,8 +436,10 @@ set( | |||
416 | lhash/lhash.c | 436 | lhash/lhash.c |
417 | md4/md4.c | 437 | md4/md4.c |
418 | md5/md5.c | 438 | md5/md5.c |
419 | mlkem/mlkem768.c | 439 | mlkem/mlkem.c |
420 | mlkem/mlkem1024.c | 440 | mlkem/mlkem1024.c |
441 | mlkem/mlkem768.c | ||
442 | mlkem/mlkem_key.c | ||
421 | modes/cbc128.c | 443 | modes/cbc128.c |
422 | modes/ccm128.c | 444 | modes/ccm128.c |
423 | modes/cfb128.c | 445 | modes/cfb128.c |
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index ad241ab..610341a 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
@@ -738,9 +738,10 @@ libcrypto_la_SOURCES += md4/md4.c | |||
738 | libcrypto_la_SOURCES += md5/md5.c | 738 | libcrypto_la_SOURCES += md5/md5.c |
739 | 739 | ||
740 | # mlkem | 740 | # mlkem |
741 | libcrypto_la_SOURCES += mlkem/mlkem768.c | 741 | libcrypto_la_SOURCES += mlkem/mlkem.c |
742 | libcrypto_la_SOURCES += mlkem/mlkem1024.c | 742 | libcrypto_la_SOURCES += mlkem/mlkem1024.c |
743 | noinst_HEADERS += mlkem/mlkem.h | 743 | libcrypto_la_SOURCES += mlkem/mlkem768.c |
744 | libcrypto_la_SOURCES += mlkem/mlkem_key.c | ||
744 | noinst_HEADERS += mlkem/mlkem_internal.h | 745 | noinst_HEADERS += mlkem/mlkem_internal.h |
745 | 746 | ||
746 | # modes | 747 | # modes |
diff --git a/crypto/Makefile.am.elf-x86_64 b/crypto/Makefile.am.elf-x86_64 index ad49787..df67ad2 100644 --- a/crypto/Makefile.am.elf-x86_64 +++ b/crypto/Makefile.am.elf-x86_64 | |||
@@ -10,11 +10,21 @@ ASM_X86_64_ELF += rc4/rc4-elf-x86_64.S | |||
10 | ASM_X86_64_ELF += bn/arch/amd64/bignum_add.S | 10 | ASM_X86_64_ELF += bn/arch/amd64/bignum_add.S |
11 | ASM_X86_64_ELF += bn/arch/amd64/bignum_cmadd.S | 11 | ASM_X86_64_ELF += bn/arch/amd64/bignum_cmadd.S |
12 | ASM_X86_64_ELF += bn/arch/amd64/bignum_cmul.S | 12 | ASM_X86_64_ELF += bn/arch/amd64/bignum_cmul.S |
13 | ASM_X86_64_ELF += bn/arch/amd64/bignum_modadd.S | ||
14 | ASM_X86_64_ELF += bn/arch/amd64/bignum_modsub.S | ||
13 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul.S | 15 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul.S |
16 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_4_8.S | ||
14 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_4_8_alt.S | 17 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_4_8_alt.S |
18 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_6_12.S | ||
19 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_6_12_alt.S | ||
20 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_8_16.S | ||
15 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_8_16_alt.S | 21 | ASM_X86_64_ELF += bn/arch/amd64/bignum_mul_8_16_alt.S |
16 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr.S | 22 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr.S |
23 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_4_8.S | ||
17 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_4_8_alt.S | 24 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_4_8_alt.S |
25 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_6_12.S | ||
26 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_6_12_alt.S | ||
27 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_8_16.S | ||
18 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_8_16_alt.S | 28 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sqr_8_16_alt.S |
19 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sub.S | 29 | ASM_X86_64_ELF += bn/arch/amd64/bignum_sub.S |
20 | ASM_X86_64_ELF += bn/arch/amd64/word_clz.S | 30 | ASM_X86_64_ELF += bn/arch/amd64/word_clz.S |
diff --git a/crypto/Makefile.am.macosx-x86_64 b/crypto/Makefile.am.macosx-x86_64 index bbccfd6..23e27e6 100644 --- a/crypto/Makefile.am.macosx-x86_64 +++ b/crypto/Makefile.am.macosx-x86_64 | |||
@@ -10,11 +10,21 @@ ASM_X86_64_MACOSX += rc4/rc4-macosx-x86_64.S | |||
10 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_add.S | 10 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_add.S |
11 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_cmadd.S | 11 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_cmadd.S |
12 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_cmul.S | 12 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_cmul.S |
13 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_modadd.S | ||
14 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_modsub.S | ||
13 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul.S | 15 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul.S |
16 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_4_8.S | ||
14 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_4_8_alt.S | 17 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_4_8_alt.S |
18 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_6_12.S | ||
19 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_6_12_alt.S | ||
20 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_8_16.S | ||
15 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_8_16_alt.S | 21 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_mul_8_16_alt.S |
16 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr.S | 22 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr.S |
23 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_4_8.S | ||
17 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_4_8_alt.S | 24 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_4_8_alt.S |
25 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_6_12.S | ||
26 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_6_12_alt.S | ||
27 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_8_16.S | ||
18 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_8_16_alt.S | 28 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sqr_8_16_alt.S |
19 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sub.S | 29 | ASM_X86_64_MACOSX += bn/arch/amd64/bignum_sub.S |
20 | ASM_X86_64_MACOSX += bn/arch/amd64/word_clz.S | 30 | ASM_X86_64_MACOSX += bn/arch/amd64/word_clz.S |
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 04160af..4802d13 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt | |||
@@ -19,10 +19,7 @@ if(ENABLE_LIBRESSL_INSTALL) | |||
19 | PATTERN "CMakeLists.txt" EXCLUDE | 19 | PATTERN "CMakeLists.txt" EXCLUDE |
20 | PATTERN "compat" EXCLUDE | 20 | PATTERN "compat" EXCLUDE |
21 | PATTERN "pqueue.h" EXCLUDE | 21 | PATTERN "pqueue.h" EXCLUDE |
22 | PATTERN "Makefile*" EXCLUDE | 22 | PATTERN "Makefile*" EXCLUDE) |
23 | PATTERN "arch" EXCLUDE) | ||
24 | install(FILES ${CMAKE_BINARY_DIR}/include/openssl/opensslconf.h | ||
25 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/openssl") | ||
26 | endif(ENABLE_LIBRESSL_INSTALL) | 23 | endif(ENABLE_LIBRESSL_INSTALL) |
27 | 24 | ||
28 | file(COPY . | 25 | file(COPY . |
@@ -32,30 +29,3 @@ file(COPY . | |||
32 | PATTERN "pqueue.h" EXCLUDE | 29 | PATTERN "pqueue.h" EXCLUDE |
33 | PATTERN "Makefile*" EXCLUDE | 30 | PATTERN "Makefile*" EXCLUDE |
34 | PATTERN "arch" EXCLUDE) | 31 | PATTERN "arch" EXCLUDE) |
35 | |||
36 | if(HOST_AARCH64) | ||
37 | file(READ arch/aarch64/opensslconf.h OPENSSLCONF) | ||
38 | elseif(HOST_ARM) | ||
39 | file(READ arch/arm/opensslconf.h OPENSSLCONF) | ||
40 | elseif(HOST_I386) | ||
41 | file(READ arch/i386/opensslconf.h OPENSSLCONF) | ||
42 | elseif(HOST_LOONGARCH64) | ||
43 | file(READ arch/loongarch64/opensslconf.h OPENSSLCONF) | ||
44 | elseif(HOST_MIPS) | ||
45 | file(READ arch/mips/opensslconf.h OPENSSLCONF) | ||
46 | elseif(HOST_MIPS64) | ||
47 | file(READ arch/mips64/opensslconf.h OPENSSLCONF) | ||
48 | elseif(HOST_POWERPC) | ||
49 | file(READ arch/powerpc/opensslconf.h OPENSSLCONF) | ||
50 | elseif(HOST_POWERPC64) | ||
51 | file(READ arch/powerpc64/opensslconf.h OPENSSLCONF) | ||
52 | elseif(HOST_RISCV64) | ||
53 | file(READ arch/riscv64/opensslconf.h OPENSSLCONF) | ||
54 | elseif(HOST_SPARC64) | ||
55 | file(READ arch/sparc64/opensslconf.h OPENSSLCONF) | ||
56 | elseif(HOST_X86_64) | ||
57 | file(READ arch/amd64/opensslconf.h OPENSSLCONF) | ||
58 | else() | ||
59 | message(FATAL_ERROR "Architecture not supported") | ||
60 | endif() | ||
61 | file(WRITE ${CMAKE_BINARY_DIR}/include/openssl/opensslconf.h "${OPENSSLCONF}") | ||
diff --git a/include/Makefile.am b/include/Makefile.am index a3e1c19..04c9ea2 100644 --- a/include/Makefile.am +++ b/include/Makefile.am | |||
@@ -61,20 +61,4 @@ noinst_HEADERS += compat/sys/time.h | |||
61 | noinst_HEADERS += compat/sys/types.h | 61 | noinst_HEADERS += compat/sys/types.h |
62 | noinst_HEADERS += compat/sys/uio.h | 62 | noinst_HEADERS += compat/sys/uio.h |
63 | 63 | ||
64 | noinst_HEADERS += arch/aarch64/opensslconf.h | ||
65 | noinst_HEADERS += arch/alpha/opensslconf.h | ||
66 | noinst_HEADERS += arch/amd64/opensslconf.h | ||
67 | noinst_HEADERS += arch/arm/opensslconf.h | ||
68 | noinst_HEADERS += arch/hppa/opensslconf.h | ||
69 | noinst_HEADERS += arch/i386/opensslconf.h | ||
70 | noinst_HEADERS += arch/loongarch64/opensslconf.h | ||
71 | noinst_HEADERS += arch/m88k/opensslconf.h | ||
72 | noinst_HEADERS += arch/mips/opensslconf.h | ||
73 | noinst_HEADERS += arch/mips64/opensslconf.h | ||
74 | noinst_HEADERS += arch/powerpc/opensslconf.h | ||
75 | noinst_HEADERS += arch/powerpc64/opensslconf.h | ||
76 | noinst_HEADERS += arch/riscv64/opensslconf.h | ||
77 | noinst_HEADERS += arch/sh/opensslconf.h | ||
78 | noinst_HEADERS += arch/sparc64/opensslconf.h | ||
79 | |||
80 | include_HEADERS = tls.h | 64 | include_HEADERS = tls.h |
diff --git a/include/arch/loongarch64/opensslconf.h b/include/arch/loongarch64/opensslconf.h deleted file mode 100644 index 868066c..0000000 --- a/include/arch/loongarch64/opensslconf.h +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | #include <openssl/opensslfeatures.h> | ||
2 | |||
3 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION | ||
4 | |||
5 | #ifndef OPENSSL_FILE | ||
6 | #ifdef OPENSSL_NO_FILENAMES | ||
7 | #define OPENSSL_FILE "" | ||
8 | #define OPENSSL_LINE 0 | ||
9 | #else | ||
10 | #define OPENSSL_FILE __FILE__ | ||
11 | #define OPENSSL_LINE __LINE__ | ||
12 | #endif | ||
13 | #endif | ||
14 | |||
15 | #if defined(HEADER_RC4_H) | ||
16 | #if !defined(RC4_CHUNK) | ||
17 | /* | ||
18 | * This enables code handling data aligned at natural CPU word | ||
19 | * boundary. See crypto/rc4/rc4_enc.c for further details. | ||
20 | */ | ||
21 | #define RC4_CHUNK unsigned long | ||
22 | #endif | ||
23 | #endif | ||
diff --git a/include/arch/mips/opensslconf.h b/include/arch/mips/opensslconf.h deleted file mode 100644 index dcbe113..0000000 --- a/include/arch/mips/opensslconf.h +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | #include <openssl/opensslfeatures.h> | ||
2 | |||
3 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION | ||
4 | |||
5 | #ifndef OPENSSL_FILE | ||
6 | #ifdef OPENSSL_NO_FILENAMES | ||
7 | #define OPENSSL_FILE "" | ||
8 | #define OPENSSL_LINE 0 | ||
9 | #else | ||
10 | #define OPENSSL_FILE __FILE__ | ||
11 | #define OPENSSL_LINE __LINE__ | ||
12 | #endif | ||
13 | #endif | ||
14 | |||
15 | #if defined(HEADER_RC4_H) | ||
16 | #if !defined(RC4_CHUNK) | ||
17 | /* | ||
18 | * This enables code handling data aligned at natural CPU word | ||
19 | * boundary. See crypto/rc4/rc4_enc.c for further details. | ||
20 | */ | ||
21 | #undef RC4_CHUNK | ||
22 | #endif | ||
23 | #endif | ||
diff --git a/include/openssl/Makefile.am.tpl b/include/openssl/Makefile.am.tpl index 4bbbd60..1bea34d 100644 --- a/include/openssl/Makefile.am.tpl +++ b/include/openssl/Makefile.am.tpl | |||
@@ -3,43 +3,4 @@ include $(top_srcdir)/Makefile.am.common | |||
3 | if !ENABLE_LIBTLS_ONLY | 3 | if !ENABLE_LIBTLS_ONLY |
4 | opensslincludedir=$(includedir)/openssl | 4 | opensslincludedir=$(includedir)/openssl |
5 | 5 | ||
6 | BUILT_SOURCES = opensslconf.h | 6 | opensslinclude_HEADERS = |
7 | CLEANFILES = opensslconf.h | ||
8 | |||
9 | opensslconf.h: Makefile | ||
10 | -echo "generating opensslconf.h ..." | ||
11 | if HOST_AARCH64 | ||
12 | -cp $(top_srcdir)/include/arch/aarch64/opensslconf.h opensslconf.h | ||
13 | endif | ||
14 | if HOST_ARM | ||
15 | -cp $(top_srcdir)/include/arch/arm/opensslconf.h opensslconf.h | ||
16 | endif | ||
17 | if HOST_I386 | ||
18 | -cp $(top_srcdir)/include/arch/i386/opensslconf.h opensslconf.h | ||
19 | endif | ||
20 | if HOST_LOONGARCH64 | ||
21 | -cp $(top_srcdir)/include/arch/loongarch64/opensslconf.h opensslconf.h | ||
22 | endif | ||
23 | if HOST_MIPS | ||
24 | -cp $(top_srcdir)/include/arch/mips/opensslconf.h opensslconf.h | ||
25 | endif | ||
26 | if HOST_MIPS64 | ||
27 | -cp $(top_srcdir)/include/arch/mips64/opensslconf.h opensslconf.h | ||
28 | endif | ||
29 | if HOST_POWERPC | ||
30 | -cp $(top_srcdir)/include/arch/powerpc/opensslconf.h opensslconf.h | ||
31 | endif | ||
32 | if HOST_POWERPC64 | ||
33 | -cp $(top_srcdir)/include/arch/powerpc64/opensslconf.h opensslconf.h | ||
34 | endif | ||
35 | if HOST_RISCV64 | ||
36 | -cp $(top_srcdir)/include/arch/riscv64/opensslconf.h opensslconf.h | ||
37 | endif | ||
38 | if HOST_SPARC64 | ||
39 | -cp $(top_srcdir)/include/arch/sparc64/opensslconf.h opensslconf.h | ||
40 | endif | ||
41 | if HOST_X86_64 | ||
42 | -cp $(top_srcdir)/include/arch/amd64/opensslconf.h opensslconf.h | ||
43 | endif | ||
44 | |||
45 | opensslinclude_HEADERS = opensslconf.h | ||
diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index fd63d77..99f142e 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 | |||
@@ -89,14 +89,14 @@ char buf[1]; getentropy(buf, 1); | |||
89 | ;; | 89 | ;; |
90 | *hpux*) | 90 | *hpux*) |
91 | HOST_OS=hpux; | 91 | HOST_OS=hpux; |
92 | if test "echo $host_os | cut -c 1-4" = "ia64" ; then | 92 | if test "`echo $host_os | cut -c 1-4`" = "ia64" ; then |
93 | if test "echo $CC | cut -d ' ' -f 1" = "gcc" ; then | 93 | if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then |
94 | CFLAGS="$CFLAGS -mlp64" | 94 | CFLAGS="$CFLAGS -mlp64" |
95 | else | 95 | else |
96 | CFLAGS="+DD64" | 96 | CFLAGS="+DD64" |
97 | fi | 97 | fi |
98 | fi | 98 | fi |
99 | if ! test "echo $CC | cut -d ' ' -f 1" = "gcc" ; then | 99 | if ! test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then |
100 | CFLAGS="-g -O2 +Otype_safety=off $CFLAGS $USER_CFLAGS" | 100 | CFLAGS="-g -O2 +Otype_safety=off $CFLAGS $USER_CFLAGS" |
101 | fi | 101 | fi |
102 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" | 102 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" |
diff --git a/patches/amd64_crypto_arch.h.patch b/patches/amd64_crypto_arch.h.patch index b094100..bf44458 100644 --- a/patches/amd64_crypto_arch.h.patch +++ b/patches/amd64_crypto_arch.h.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- crypto/arch/amd64/crypto_arch.h.orig Wed Jul 23 08:15:02 2025 | 1 | --- crypto/arch/amd64/crypto_arch.h.orig Sun Aug 17 13:14:19 2025 |
2 | +++ crypto/arch/amd64/crypto_arch.h Wed Jul 23 08:15:20 2025 | 2 | +++ crypto/arch/amd64/crypto_arch.h Sun Aug 24 23:47:56 2025 |
3 | @@ -47,6 +47,7 @@ extern uint64_t crypto_cpu_caps_amd64; | 3 | @@ -48,6 +48,7 @@ extern uint64_t crypto_cpu_caps_amd64; |
4 | #define HAVE_RC4_INTERNAL | 4 | #define HAVE_RC4_INTERNAL |
5 | #define HAVE_RC4_SET_KEY_INTERNAL | 5 | #define HAVE_RC4_SET_KEY_INTERNAL |
6 | 6 | ||
@@ -8,7 +8,7 @@ | |||
8 | #define HAVE_SHA1_BLOCK_DATA_ORDER | 8 | #define HAVE_SHA1_BLOCK_DATA_ORDER |
9 | #define HAVE_SHA1_BLOCK_GENERIC | 9 | #define HAVE_SHA1_BLOCK_GENERIC |
10 | 10 | ||
11 | @@ -55,6 +56,7 @@ extern uint64_t crypto_cpu_caps_amd64; | 11 | @@ -56,6 +57,7 @@ extern uint64_t crypto_cpu_caps_amd64; |
12 | 12 | ||
13 | #define HAVE_SHA512_BLOCK_DATA_ORDER | 13 | #define HAVE_SHA512_BLOCK_DATA_ORDER |
14 | #define HAVE_SHA512_BLOCK_GENERIC | 14 | #define HAVE_SHA512_BLOCK_GENERIC |
diff --git a/patches/crypto_namespace.h.patch b/patches/crypto_namespace.h.patch deleted file mode 100644 index 400030f..0000000 --- a/patches/crypto_namespace.h.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | --- crypto/hidden/crypto_namespace.h.orig Fri Aug 2 23:52:55 2024 | ||
2 | +++ crypto/hidden/crypto_namespace.h Fri Aug 2 23:53:17 2024 | ||
3 | @@ -24,6 +24,12 @@ | ||
4 | * external calls use the latter name. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +# define LCRYPTO_UNUSED(x) | ||
9 | +# define LCRYPTO_USED(x) | ||
10 | +# define LCRYPTO_ALIAS1(pre, x) | ||
11 | +# define LCRYPTO_ALIAS(x) | ||
12 | +#else | ||
13 | #ifdef LIBRESSL_NAMESPACE | ||
14 | #ifdef LIBRESSL_CRYPTO_NAMESPACE | ||
15 | # define LCRYPTO_UNUSED(x) __attribute__((deprecated)) \ | ||
16 | @@ -47,5 +53,6 @@ | ||
17 | # define LCRYPTO_ALIAS1(pre,x) | ||
18 | # define LCRYPTO_ALIAS(x) asm("") | ||
19 | #endif | ||
20 | +#endif /* _MSC_VER */ | ||
21 | |||
22 | #endif /* _LIBCRYPTO_CRYPTO_NAMESPACE_H_ */ | ||
diff --git a/patches/mlkem_internal.h.patch b/patches/mlkem_internal.h.patch new file mode 100644 index 0000000..b7cbdcf --- /dev/null +++ b/patches/mlkem_internal.h.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- crypto/mlkem/mlkem_internal.h.orig Sun Aug 17 13:20:18 2025 | ||
2 | +++ crypto/mlkem/mlkem_internal.h Sun Aug 17 13:20:37 2025 | ||
3 | @@ -19,7 +19,7 @@ | ||
4 | #define OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H | ||
5 | |||
6 | #include "bytestring.h" | ||
7 | -#include "mlkem.h" | ||
8 | +#include <openssl/mlkem.h> | ||
9 | |||
10 | #if defined(__cplusplus) | ||
11 | extern "C" { | ||
diff --git a/patches/ssl_namespace.h.patch b/patches/ssl_namespace.h.patch deleted file mode 100644 index eb9c7a2..0000000 --- a/patches/ssl_namespace.h.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | --- ssl/hidden/ssl_namespace.h.orig Fri Aug 2 23:52:55 2024 | ||
2 | +++ ssl/hidden/ssl_namespace.h Fri Aug 2 23:53:17 2024 | ||
3 | @@ -23,6 +23,11 @@ | ||
4 | * and we alias that to the normal name. | ||
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define LSSL_UNUSED(x) | ||
9 | +#define LSSL_USED(x) | ||
10 | +#define LSSL_ALIAS(x) | ||
11 | +#else | ||
12 | #ifdef LIBRESSL_NAMESPACE | ||
13 | #define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) | ||
14 | #define LSSL_USED(x) __attribute__((visibility("hidden"))) \ | ||
15 | @@ -37,5 +42,6 @@ | ||
16 | #define LSSL_USED(x) | ||
17 | #define LSSL_ALIAS(x) asm("") | ||
18 | #endif | ||
19 | +#endif /* _MSC_VER */ | ||
20 | |||
21 | #endif /* _LIBSSL_SSL_NAMESPACE_H_ */ | ||
diff --git a/patches/win32_amd64_bn_arch.h.patch b/patches/win32_amd64_bn_arch.h.patch index b7926e3..baa82f8 100644 --- a/patches/win32_amd64_bn_arch.h.patch +++ b/patches/win32_amd64_bn_arch.h.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | We should consider a OPENSSL_NO_BN_ASM if we can't figure | 1 | We should consider a OPENSSL_NO_BN_ASM if we can't figure |
2 | out how to fix BIGNUM on this OS | 2 | out how to fix BIGNUM on this OS |
3 | 3 | ||
4 | --- crypto/bn/arch/amd64/bn_arch.h.orig Wed Mar 27 22:17:03 2024 | 4 | --- crypto/bn/arch/amd64/bn_arch.h.orig Sun Aug 17 13:14:19 2025 |
5 | +++ crypto/bn/arch/amd64/bn_arch.h Wed Mar 27 22:17:31 2024 | 5 | +++ crypto/bn/arch/amd64/bn_arch.h Sun Aug 24 23:47:56 2025 |
6 | @@ -20,8 +20,14 @@ | 6 | @@ -20,8 +20,14 @@ |
7 | #ifndef HEADER_BN_ARCH_H | 7 | #ifndef HEADER_BN_ARCH_H |
8 | #define HEADER_BN_ARCH_H | 8 | #define HEADER_BN_ARCH_H |
@@ -18,7 +18,7 @@ out how to fix BIGNUM on this OS | |||
18 | #define HAVE_BN_ADD | 18 | #define HAVE_BN_ADD |
19 | #define HAVE_BN_ADD_WORDS | 19 | #define HAVE_BN_ADD_WORDS |
20 | 20 | ||
21 | @@ -104,6 +110,7 @@ bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, | 21 | @@ -109,6 +115,7 @@ bn_subw(BN_ULONG a, BN_ULONG b, BN_ULONG *out_borrow, |
22 | } | 22 | } |
23 | 23 | ||
24 | #endif /* __GNUC__ */ | 24 | #endif /* __GNUC__ */ |
diff --git a/scripts/test b/scripts/test index a93fe90..a7ce1ea 100755 --- a/scripts/test +++ b/scripts/test | |||
@@ -191,7 +191,7 @@ elif [ "$ARCH" = "android" ]; then | |||
191 | 191 | ||
192 | ( | 192 | ( |
193 | build_dir=build-$NAL_$ABI | 193 | build_dir=build-$NAL_$ABI |
194 | rm -fr $build_dir include/openssl/opensslconf.h | 194 | rm -fr $build_dir |
195 | mkdir $build_dir | 195 | mkdir $build_dir |
196 | cd $build_dir | 196 | cd $build_dir |
197 | echo "##### cmake -GNinja -DCMAKE_MAKE_PROGRAM=ninja -DANDROID_NDK=$ANDROID_NDK_HOME -DCMAKE_TOOLCHAIN_FILE=$TC_FILE -DANDROID_ABI=$ABI -DANDROID_NATIVE_API_LEVEL=$NAL .." | 197 | echo "##### cmake -GNinja -DCMAKE_MAKE_PROGRAM=ninja -DANDROID_NDK=$ANDROID_NDK_HOME -DCMAKE_TOOLCHAIN_FILE=$TC_FILE -DANDROID_ABI=$ABI -DANDROID_NATIVE_API_LEVEL=$NAL .." |
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c497b77..55529cd 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -563,14 +563,16 @@ if(NOT WIN32) | |||
563 | endif() | 563 | endif() |
564 | 564 | ||
565 | # mlkem_tests | 565 | # mlkem_tests |
566 | add_executable(mlkem_tests mlkem_tests.c mlkem_tests_util.c parse_test_file.c) | 566 | add_executable(mlkem_tests mlkem_tests.c parse_test_file.c) |
567 | target_link_libraries(mlkem_tests ${OPENSSL_TEST_LIBS}) | 567 | target_link_libraries(mlkem_tests ${OPENSSL_TEST_LIBS}) |
568 | prepare_emscripten_test_target(mlkem_tests) | 568 | prepare_emscripten_test_target(mlkem_tests) |
569 | if(NOT WIN32) | 569 | if(NOT MSVC) |
570 | add_test(NAME mlkem_tests COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/mlkem_tests.sh) | 570 | add_test(NAME mlkem_tests COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/mlkem_tests.sh) |
571 | set_tests_properties(mlkem_tests PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 571 | set_tests_properties(mlkem_tests PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
572 | else() | ||
573 | add_test(NAME mlkem_tests COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/mlkem_tests.bat $<TARGET_FILE:mlkem_tests>) | ||
572 | endif() | 574 | endif() |
573 | # XXX - add tests for Windows | 575 | set_tests_properties(mlkem_tests PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
574 | 576 | ||
575 | # mlkem_iteration_tests | 577 | # mlkem_iteration_tests |
576 | add_executable(mlkem_iteration_tests mlkem_iteration_tests.c mlkem_tests_util.c) | 578 | add_executable(mlkem_iteration_tests mlkem_iteration_tests.c mlkem_tests_util.c) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 914b1e5..066e020 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -577,8 +577,8 @@ noinst_HEADERS += parse_test_file.h | |||
577 | # mlkem_tests | 577 | # mlkem_tests |
578 | TESTS += mlkem_tests.sh | 578 | TESTS += mlkem_tests.sh |
579 | check_PROGRAMS += mlkem_tests | 579 | check_PROGRAMS += mlkem_tests |
580 | mlkem_tests_SOURCES = mlkem_tests.c mlkem_tests_util.c parse_test_file.c | 580 | mlkem_tests_SOURCES = mlkem_tests.c parse_test_file.c |
581 | EXTRA_DIST += mlkem_tests.sh | 581 | EXTRA_DIST += mlkem_tests.sh mlkem_tests.bat |
582 | EXTRA_DIST += mlkem768_decap_tests.txt | 582 | EXTRA_DIST += mlkem768_decap_tests.txt |
583 | EXTRA_DIST += mlkem768_encap_tests.txt | 583 | EXTRA_DIST += mlkem768_encap_tests.txt |
584 | EXTRA_DIST += mlkem768_keygen_tests.txt | 584 | EXTRA_DIST += mlkem768_keygen_tests.txt |
diff --git a/tests/mlkem_tests.bat b/tests/mlkem_tests.bat new file mode 100644 index 0000000..618c9e0 --- /dev/null +++ b/tests/mlkem_tests.bat | |||
@@ -0,0 +1,63 @@ | |||
1 | @echo off | ||
2 | setlocal enabledelayedexpansion | ||
3 | |||
4 | :: Copyright (c) 2025 Theo Beuhler | ||
5 | :: | ||
6 | :: Permission to use, copy, modify, and distribute this software for any | ||
7 | :: purpose with or without fee is hereby granted, provided that the above | ||
8 | :: copyright notice and this permission notice appear in all copies. | ||
9 | :: | ||
10 | :: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
11 | :: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
12 | :: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
13 | :: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
14 | :: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
15 | :: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
16 | :: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
17 | |||
18 | set mlkem_tests_bin=%1 | ||
19 | set mlkem_tests_bin=%mlkem_tests_bin:/=\% | ||
20 | if not exist %mlkem_tests_bin% exit /b 1 | ||
21 | |||
22 | %mlkem_tests_bin% mlkem768_decap_tests %srcdir%\mlkem768_decap_tests.txt | ||
23 | if !errorlevel! neq 0 ( | ||
24 | exit /b 1 | ||
25 | ) | ||
26 | %mlkem_tests_bin% mlkem768_encap_tests %srcdir%\mlkem768_encap_tests.txt | ||
27 | if !errorlevel! neq 0 ( | ||
28 | exit /b 1 | ||
29 | ) | ||
30 | %mlkem_tests_bin% mlkem768_keygen_tests %srcdir%\mlkem768_keygen_tests.txt | ||
31 | if !errorlevel! neq 0 ( | ||
32 | exit /b 1 | ||
33 | ) | ||
34 | %mlkem_tests_bin% mlkem768_nist_decap_tests %srcdir%\mlkem768_nist_decap_tests.txt | ||
35 | if !errorlevel! neq 0 ( | ||
36 | exit /b 1 | ||
37 | ) | ||
38 | %mlkem_tests_bin% mlkem768_nist_keygen_tests %srcdir%\mlkem768_nist_keygen_tests.txt | ||
39 | if !errorlevel! neq 0 ( | ||
40 | exit /b 1 | ||
41 | ) | ||
42 | %mlkem_tests_bin% mlkem1024_decap_tests %srcdir%\mlkem1024_decap_tests.txt | ||
43 | if !errorlevel! neq 0 ( | ||
44 | exit /b 1 | ||
45 | ) | ||
46 | %mlkem_tests_bin% mlkem1024_encap_tests %srcdir%\mlkem1024_encap_tests.txt | ||
47 | if !errorlevel! neq 0 ( | ||
48 | exit /b 1 | ||
49 | ) | ||
50 | %mlkem_tests_bin% mlkem1024_keygen_tests %srcdir%\mlkem1024_keygen_tests.txt | ||
51 | if !errorlevel! neq 0 ( | ||
52 | exit /b 1 | ||
53 | ) | ||
54 | %mlkem_tests_bin% mlkem1024_nist_decap_tests %srcdir%\mlkem1024_nist_decap_tests.txt | ||
55 | if !errorlevel! neq 0 ( | ||
56 | exit /b 1 | ||
57 | ) | ||
58 | %mlkem_tests_bin% mlkem1024_nist_keygen_tests %srcdir%\mlkem1024_nist_keygen_tests.txt | ||
59 | if !errorlevel! neq 0 ( | ||
60 | exit /b 1 | ||
61 | ) | ||
62 | |||
63 | endlocal | ||
@@ -98,6 +98,7 @@ if [ -x /opt/csw/bin/ggrep ]; then | |||
98 | GREP='/opt/csw/bin/ggrep' | 98 | GREP='/opt/csw/bin/ggrep' |
99 | fi | 99 | fi |
100 | 100 | ||
101 | $CP $libcrypto_src/opensslconf.h include/openssl | ||
101 | $CP $libcrypto_src/opensslfeatures.h include/openssl | 102 | $CP $libcrypto_src/opensslfeatures.h include/openssl |
102 | $CP $libssl_src/pqueue.h include | 103 | $CP $libssl_src/pqueue.h include |
103 | 104 | ||
@@ -142,7 +143,7 @@ copy_hdrs $libcrypto_src "stack/stack.h lhash/lhash.h stack/safestack.h | |||
142 | ossl_typ.h err/err.h crypto.h comp/comp.h x509/x509.h buffer/buffer.h | 143 | ossl_typ.h err/err.h crypto.h comp/comp.h x509/x509.h buffer/buffer.h |
143 | objects/objects.h asn1/asn1.h asn1/posix_time.h bn/bn.h ec/ec.h ecdsa/ecdsa.h | 144 | objects/objects.h asn1/asn1.h asn1/posix_time.h bn/bn.h ec/ec.h ecdsa/ecdsa.h |
144 | ecdh/ecdh.h rsa/rsa.h sha/sha.h x509/x509_vfy.h pkcs7/pkcs7.h pem/pem.h | 145 | ecdh/ecdh.h rsa/rsa.h sha/sha.h x509/x509_vfy.h pkcs7/pkcs7.h pem/pem.h |
145 | hkdf/hkdf.h hmac/hmac.h rand/rand.h md5/md5.h | 146 | hkdf/hkdf.h hmac/hmac.h rand/rand.h md5/md5.h mlkem/mlkem.h |
146 | x509/x509v3.h conf/conf.h ocsp/ocsp.h | 147 | x509/x509v3.h conf/conf.h ocsp/ocsp.h |
147 | aes/aes.h modes/modes.h asn1/asn1t.h bf/blowfish.h | 148 | aes/aes.h modes/modes.h asn1/asn1t.h bf/blowfish.h |
148 | bio/bio.h cast/cast.h cmac/cmac.h cms/cms.h des/des.h dh/dh.h | 149 | bio/bio.h cast/cast.h cmac/cmac.h cms/cms.h des/des.h dh/dh.h |
@@ -186,8 +187,6 @@ done | |||
186 | 187 | ||
187 | for i in $libcrypto_src/arch/*; do | 188 | for i in $libcrypto_src/arch/*; do |
188 | arch=`basename $i` | 189 | arch=`basename $i` |
189 | mkdir -p include/arch/$arch | ||
190 | $CP $libcrypto_src/arch/$arch/opensslconf.h include/arch/$arch/ | ||
191 | mkdir -p crypto/arch/$arch | 190 | mkdir -p crypto/arch/$arch |
192 | $CP $libcrypto_src/arch/$arch/crypto_arch.h crypto/arch/$arch/ | 191 | $CP $libcrypto_src/arch/$arch/crypto_arch.h crypto/arch/$arch/ |
193 | crypto_cpu_caps=$libcrypto_src/arch/$arch/crypto_cpu_caps.c | 192 | crypto_cpu_caps=$libcrypto_src/arch/$arch/crypto_cpu_caps.c |