提交 deb3172f 编写于 作者: C code4lala

rm useless build_all_generated files, update readme version to 3.0.7

Signed-off-by: Ncode4lala <fengziteng2@huawei.com>
Change-Id: Iac985d5c82924614240d81262888975e29fcb8f6
上级 8e5a6084
/* /*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. All rights reserved. * Copyright (c) Huawei Technologies Co., Ltd. 2020-2023. All rights reserved.
* Description: This README describes how to generate the .S files. * Description: This README describes how to generate the .S files, headers and other stuffes.
* Create: 2020-05-30 * Create: 2020-05-30
*/ */
these files used in Build.gn, such as: The `build_all_generated` directory is generated by the following steps. Let's take `linux-armv4` as an example.
"crypto/aes/asm/arm32/aes-armv4.S", `linux-armv4` is picked from the results of `./Configure LIST`
"crypto/aes/asm/arm32/aesv8-armx.S",
"crypto/aes/asm/arm32/bsaes-armv7.S", ```sh
"crypto/armv4cpuid.S", ./Configure linux-armv4
"crypto/bn/asm/arm32/armv4-gf2m.S", make build_all_generated
"crypto/bn/asm/arm32/armv4-mont.S", ```
"crypto/chacha/asm/arm32/chacha-armv4.S",
"crypto/ec/asm/arm32/ecp_nistz256-armv4.S",
"crypto/modes/asm/arm32/ghash-armv4.S",
"crypto/modes/asm/arm32/ghashv8-armx.S",
"crypto/poly1305/asm/arm32/poly1305-armv4.S",
"crypto/sha/asm/arm32/keccak1600-armv4.S",
"crypto/sha/asm/arm32/sha1-armv4-large.S",
"crypto/sha/asm/arm32/sha256-armv4.S",
"crypto/sha/asm/arm32/sha512-armv4.S",
"crypto/aes/asm/arm64/aesv8-armx.S",
"crypto/aes/asm/arm64/vpaes-armv8.S",
"crypto/arm64cpuid.S",
"crypto/bn/asm/arm64/armv8-mont.S",
"crypto/chacha/asm/arm64/chacha-armv8.S",
"crypto/ec/asm/arm64/ecp_nistz256-armv8.S",
"crypto/modes/asm/arm64/ghashv8-armx.S",
"crypto/poly1305/asm/arm64/poly1305-armv8.S",
"crypto/sha/asm/arm64/keccak1600-armv8.S",
"crypto/sha/asm/arm64/sha1-armv8.S",
"crypto/sha/asm/arm64/sha256-armv8.S",
"crypto/sha/asm/arm64/sha512-armv8.S",
"crypto/aes/asm/x86_64/aesni-mb-x86_64.s",
"crypto/aes/asm/x86_64/aesni-sha1-x86_64.s",
"crypto/aes/asm/x86_64/aesni-sha256-x86_64.s",
"crypto/aes/asm/x86_64/aesni-x86_64.s",
"crypto/aes/asm/x86_64/vpaes-x86_64.s",
"crypto/bn/asm/x86_64/rsaz-avx2.s",
"crypto/bn/asm/x86_64/rsaz-x86_64.s",
"crypto/bn/asm/x86_64/x86_64-gf2m.s",
"crypto/bn/asm/x86_64/x86_64-mont.s",
"crypto/bn/asm/x86_64/x86_64-mont5.s",
"crypto/chacha/asm/x86_64/chacha-x86_64.s",
"crypto/ec/asm/x86_64/ecp_nistz256-x86_64.s",
"crypto/ec/asm/x86_64/x25519-x86_64.s",
"crypto/md5/asm/x86_64/md5-x86_64.s",
"crypto/modes/asm/x86_64/aesni-gcm-x86_64.s",
"crypto/modes/asm/x86_64/ghash-x86_64.s",
"crypto/poly1305/asm/x86_64/poly1305-x86_64.s",
"crypto/rc4/asm/x86_64/rc4-md5-x86_64.s",
"crypto/rc4/asm/x86_64/rc4-x86_64.s",
"crypto/sha/asm/x86_64/keccak1600-x86_64.s",
"crypto/sha/asm/x86_64/sha1-mb-x86_64.s",
"crypto/sha/asm/x86_64/sha1-x86_64.s",
"crypto/sha/asm/x86_64/sha256-mb-x86_64.s",
"crypto/sha/asm/x86_64/sha256-x86_64.s",
"crypto/sha/asm/x86_64/sha512-x86_64.s",
"crypto/whrlpool/asm/x86_64/wp-x86_64.s",
"crypto/x86_64cpuid.s",
are generated by perl executing .pl files. you can also execute the script of create_asm_file.sh to generate it.
\ No newline at end of file
[ [
{ {
"Name": "OpenSSL", "Name": "OpenSSL",
"License": "OpenSSL License and Original SSLeay License", "License": "Apache License 2.0",
"License File": "LICENSE", "License File": "LICENSE.txt",
"Version Number": "1.1.1n", "Version Number": "3.0.7",
"Owner": "wanghaixiang@huawei.com", "Owner": "wanghaixiang@huawei.com",
"Upstream URL": "https://www.openssl.org/source/openssl-1.1.1n.tar.gz", "Upstream URL": "https://www.openssl.org/source/openssl-3.0.7.tar.gz",
"Description": "implementing the Transport Layer Security (TLS) protocols (including SSLv3) as well as a full-strength general purpose cryptographic library" "Description": "OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the Transport Layer Security (TLS) protocol formerly known as the Secure Sockets Layer (SSL) protocol."
} }
] ]
\ No newline at end of file
-I.
-Iinclude
-Iproviders/common/include
-Iproviders/implementations/include
-DNDEBUG
-DOPENSSL_BUILDING_OPENSSL
-DOPENSSL_CPUID_OBJ
-DOPENSSL_PIC
-DOPENSSLDIR="\"/usr/local/ssl\""
-Wa,--noexecstack
-Wall
-DECP_NISTZ256_ASM
-DKECCAK1600_ASM
-DOPENSSL_BN_ASM_MONT
-DPOLY1305_ASM
-DSHA1_ASM
-DSHA256_ASM
-DSHA512_ASM
-c
crypto/aes/aes_cfb.c
crypto/aes/libcrypto-shlib-aes_cfb.d.tmp
gcc
-MF
-MMD
-MT
-o
-O3
$ ls *gcc.txt | xargs -I {} sh -c 'echo {} ; diff common.txt {} | grep "^>"'
linux-aarch64.gcc.txt
> crypto/aes/libcrypto-shlib-aes_cfb.o
> -DENGINESDIR="\"/usr/local/lib/engines-3\""
> -DMODULESDIR="\"/usr/local/lib/ossl-modules\""
> -DOPENSSL_USE_NODELETE
> -DVPAES_ASM
> -fPIC
> -pthread
linux-armv4.gcc.txt
> crypto/aes/libcrypto-shlib-aes_cfb.o
> -DAES_ASM
> -DBSAES_ASM
> -DENGINESDIR="\"/usr/local/lib/engines-3\""
> -DGHASH_ASM
> -DMODULESDIR="\"/usr/local/lib/ossl-modules\""
> -DOPENSSL_BN_ASM_GF2m
> -DOPENSSL_USE_NODELETE
> -fPIC
> -pthread
linux-x86_64.gcc.txt
> crypto/aes/libcrypto-shlib-aes_cfb.o
> -DAES_ASM
> -DBSAES_ASM
> -DCMLL_ASM
> -DENGINESDIR="\"/usr/local/lib64/engines-3\""
> -DGHASH_ASM
> -DL_ENDIAN
> -DMD5_ASM
> -DMODULESDIR="\"/usr/local/lib64/ossl-modules\""
> -DOPENSSL_BN_ASM_GF2m
> -DOPENSSL_BN_ASM_MONT5
> -DOPENSSL_IA32_SSE2
> -DOPENSSL_USE_NODELETE
> -DVPAES_ASM
> -DWHIRLPOOL_ASM
> -DX25519_ASM
> -fPIC
> -m64
> -pthread
mingw64.gcc.txt
> crypto/aes/libcrypto-shlib-aes_cfb.obj
> -D_MT
> -D_UNICODE
> -DAES_ASM
> -DBSAES_ASM
> -DCMLL_ASM
> -DENGINESDIR="\"/usr/local/lib64/engines-3\""
> -DGHASH_ASM
> -DL_ENDIAN
> -DMD5_ASM
> -DMODULESDIR="\"/usr/local/lib64/ossl-modules\""
> -DOPENSSL_BN_ASM_GF2m
> -DOPENSSL_BN_ASM_MONT5
> -DOPENSSL_IA32_SSE2
> -DUNICODE
> -DVPAES_ASM
> -DWHIRLPOOL_ASM
> -DWIN32_LEAN_AND_MEAN
> -DX25519_ASM
> -m64
此差异已折叠。
$(AR) $(ARFLAGS) providers/libcommon.a providers/common/der/libcommon-lib-der_digests_gen.o providers/common/der/libcommon-lib-der_dsa_gen.o providers/common/der/libcommon-lib-der_dsa_key.o providers/common/der/libcommon-lib-der_dsa_sig.o providers/common/der/libcommon-lib-der_ec_gen.o providers/common/der/libcommon-lib-der_ec_key.o providers/common/der/libcommon-lib-der_ec_sig.o providers/common/der/libcommon-lib-der_ecx_gen.o providers/common/der/libcommon-lib-der_ecx_key.o providers/common/der/libcommon-lib-der_rsa_gen.o providers/common/der/libcommon-lib-der_rsa_key.o providers/common/der/libcommon-lib-der_wrap_gen.o providers/common/libcommon-lib-provider_ctx.o providers/common/libcommon-lib-provider_err.o providers/implementations/ciphers/libcommon-lib-ciphercommon.o providers/implementations/ciphers/libcommon-lib-ciphercommon_block.o providers/implementations/ciphers/libcommon-lib-ciphercommon_ccm.o providers/implementations/ciphers/libcommon-lib-ciphercommon_ccm_hw.o providers/implementations/ciphers/libcommon-lib-ciphercommon_gcm.o providers/implementations/ciphers/libcommon-lib-ciphercommon_gcm_hw.o providers/implementations/ciphers/libcommon-lib-ciphercommon_hw.o providers/implementations/digests/libcommon-lib-digestcommon.o ssl/record/libcommon-lib-tls_pad.o
$(AR) $(ARFLAGS) providers/libdefault.a providers/common/der/libdefault-lib-der_rsa_sig.o providers/common/der/libdefault-lib-der_sm2_gen.o providers/common/der/libdefault-lib-der_sm2_key.o providers/common/der/libdefault-lib-der_sm2_sig.o providers/common/libdefault-lib-bio_prov.o providers/common/libdefault-lib-capabilities.o providers/common/libdefault-lib-digest_to_nid.o providers/common/libdefault-lib-provider_seeding.o providers/common/libdefault-lib-provider_util.o providers/common/libdefault-lib-securitycheck.o providers/common/libdefault-lib-securitycheck_default.o providers/implementations/asymciphers/libdefault-lib-rsa_enc.o providers/implementations/asymciphers/libdefault-lib-sm2_enc.o providers/implementations/ciphers/libdefault-lib-cipher_aes.o providers/implementations/ciphers/libdefault-lib-cipher_aes_cbc_hmac_sha.o providers/implementations/ciphers/libdefault-lib-cipher_aes_cbc_hmac_sha1_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_cbc_hmac_sha256_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_ccm.o providers/implementations/ciphers/libdefault-lib-cipher_aes_ccm_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_gcm.o providers/implementations/ciphers/libdefault-lib-cipher_aes_gcm_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_ocb.o providers/implementations/ciphers/libdefault-lib-cipher_aes_ocb_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_siv.o providers/implementations/ciphers/libdefault-lib-cipher_aes_siv_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aes_wrp.o providers/implementations/ciphers/libdefault-lib-cipher_aes_xts.o providers/implementations/ciphers/libdefault-lib-cipher_aes_xts_fips.o providers/implementations/ciphers/libdefault-lib-cipher_aes_xts_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aria.o providers/implementations/ciphers/libdefault-lib-cipher_aria_ccm.o providers/implementations/ciphers/libdefault-lib-cipher_aria_ccm_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aria_gcm.o providers/implementations/ciphers/libdefault-lib-cipher_aria_gcm_hw.o providers/implementations/ciphers/libdefault-lib-cipher_aria_hw.o providers/implementations/ciphers/libdefault-lib-cipher_camellia.o providers/implementations/ciphers/libdefault-lib-cipher_camellia_hw.o providers/implementations/ciphers/libdefault-lib-cipher_chacha20.o providers/implementations/ciphers/libdefault-lib-cipher_chacha20_hw.o providers/implementations/ciphers/libdefault-lib-cipher_chacha20_poly1305.o providers/implementations/ciphers/libdefault-lib-cipher_chacha20_poly1305_hw.o providers/implementations/ciphers/libdefault-lib-cipher_cts.o providers/implementations/ciphers/libdefault-lib-cipher_null.o providers/implementations/ciphers/libdefault-lib-cipher_sm4.o providers/implementations/ciphers/libdefault-lib-cipher_sm4_hw.o providers/implementations/ciphers/libdefault-lib-cipher_tdes.o providers/implementations/ciphers/libdefault-lib-cipher_tdes_common.o providers/implementations/ciphers/libdefault-lib-cipher_tdes_default.o providers/implementations/ciphers/libdefault-lib-cipher_tdes_default_hw.o providers/implementations/ciphers/libdefault-lib-cipher_tdes_hw.o providers/implementations/ciphers/libdefault-lib-cipher_tdes_wrap.o providers/implementations/ciphers/libdefault-lib-cipher_tdes_wrap_hw.o providers/implementations/digests/libdefault-lib-blake2_prov.o providers/implementations/digests/libdefault-lib-blake2b_prov.o providers/implementations/digests/libdefault-lib-blake2s_prov.o providers/implementations/digests/libdefault-lib-md5_prov.o providers/implementations/digests/libdefault-lib-md5_sha1_prov.o providers/implementations/digests/libdefault-lib-null_prov.o providers/implementations/digests/libdefault-lib-ripemd_prov.o providers/implementations/digests/libdefault-lib-sha2_prov.o providers/implementations/digests/libdefault-lib-sha3_prov.o providers/implementations/digests/libdefault-lib-sm3_prov.o providers/implementations/encode_decode/libdefault-lib-decode_der2key.o providers/implementations/encode_decode/libdefault-lib-decode_epki2pki.o providers/implementations/encode_decode/libdefault-lib-decode_msblob2key.o providers/implementations/encode_decode/libdefault-lib-decode_pem2der.o providers/implementations/encode_decode/libdefault-lib-decode_pvk2key.o providers/implementations/encode_decode/libdefault-lib-decode_spki2typespki.o providers/implementations/encode_decode/libdefault-lib-encode_key2any.o providers/implementations/encode_decode/libdefault-lib-encode_key2blob.o providers/implementations/encode_decode/libdefault-lib-encode_key2ms.o providers/implementations/encode_decode/libdefault-lib-encode_key2text.o providers/implementations/encode_decode/libdefault-lib-endecoder_common.o providers/implementations/exchange/libdefault-lib-dh_exch.o providers/implementations/exchange/libdefault-lib-ecdh_exch.o providers/implementations/exchange/libdefault-lib-ecx_exch.o providers/implementations/exchange/libdefault-lib-kdf_exch.o providers/implementations/kdfs/libdefault-lib-hkdf.o providers/implementations/kdfs/libdefault-lib-kbkdf.o providers/implementations/kdfs/libdefault-lib-krb5kdf.o providers/implementations/kdfs/libdefault-lib-pbkdf2.o providers/implementations/kdfs/libdefault-lib-pbkdf2_fips.o providers/implementations/kdfs/libdefault-lib-pkcs12kdf.o providers/implementations/kdfs/libdefault-lib-scrypt.o providers/implementations/kdfs/libdefault-lib-sshkdf.o providers/implementations/kdfs/libdefault-lib-sskdf.o providers/implementations/kdfs/libdefault-lib-tls1_prf.o providers/implementations/kdfs/libdefault-lib-x942kdf.o providers/implementations/kem/libdefault-lib-rsa_kem.o providers/implementations/keymgmt/libdefault-lib-dh_kmgmt.o providers/implementations/keymgmt/libdefault-lib-dsa_kmgmt.o providers/implementations/keymgmt/libdefault-lib-ec_kmgmt.o providers/implementations/keymgmt/libdefault-lib-ecx_kmgmt.o providers/implementations/keymgmt/libdefault-lib-kdf_legacy_kmgmt.o providers/implementations/keymgmt/libdefault-lib-mac_legacy_kmgmt.o providers/implementations/keymgmt/libdefault-lib-rsa_kmgmt.o providers/implementations/macs/libdefault-lib-blake2b_mac.o providers/implementations/macs/libdefault-lib-blake2s_mac.o providers/implementations/macs/libdefault-lib-cmac_prov.o providers/implementations/macs/libdefault-lib-gmac_prov.o providers/implementations/macs/libdefault-lib-hmac_prov.o providers/implementations/macs/libdefault-lib-kmac_prov.o providers/implementations/macs/libdefault-lib-poly1305_prov.o providers/implementations/macs/libdefault-lib-siphash_prov.o providers/implementations/rands/libdefault-lib-crngt.o providers/implementations/rands/libdefault-lib-drbg.o providers/implementations/rands/libdefault-lib-drbg_ctr.o providers/implementations/rands/libdefault-lib-drbg_hash.o providers/implementations/rands/libdefault-lib-drbg_hmac.o providers/implementations/rands/libdefault-lib-seed_src.o providers/implementations/rands/libdefault-lib-test_rng.o providers/implementations/rands/seeding/libdefault-lib-rand_cpu_x86.o providers/implementations/rands/seeding/libdefault-lib-rand_tsc.o providers/implementations/rands/seeding/libdefault-lib-rand_unix.o providers/implementations/rands/seeding/libdefault-lib-rand_win.o providers/implementations/signature/libdefault-lib-dsa_sig.o providers/implementations/signature/libdefault-lib-ecdsa_sig.o providers/implementations/signature/libdefault-lib-eddsa_sig.o providers/implementations/signature/libdefault-lib-mac_legacy_sig.o providers/implementations/signature/libdefault-lib-rsa_sig.o providers/implementations/signature/libdefault-lib-sm2_sig.o providers/implementations/storemgmt/libdefault-lib-file_store.o providers/implementations/storemgmt/libdefault-lib-file_store_any2obj.o ssl/libdefault-lib-s3_cbc.o
gcc
-I.
-Iinclude
-Iproviders/common/include
-Iproviders/implementations/include
-DECP_NISTZ256_ASM
-DKECCAK1600_ASM
-DOPENSSL_BN_ASM_MONT
-DOPENSSL_CPUID_OBJ
-DPOLY1305_ASM
-DSHA1_ASM
-DSHA256_ASM
-DSHA512_ASM
-DVPAES_ASM
-fPIC
-pthread
-Wa,--noexecstack
-Wall
-O3
-DOPENSSL_USE_NODELETE
-DOPENSSL_PIC
-DOPENSSLDIR="\"/usr/local/ssl\""
-DENGINESDIR="\"/usr/local/lib/engines-3\""
-DMODULESDIR="\"/usr/local/lib/ossl-modules\""
-DOPENSSL_BUILDING_OPENSSL
-DNDEBUG
-MMD
-MF
crypto/aes/libcrypto-shlib-aes_cfb.d.tmp
-MT
crypto/aes/libcrypto-shlib-aes_cfb.o
-c
-o
crypto/aes/libcrypto-shlib-aes_cfb.o
crypto/aes/aes_cfb.c
\ No newline at end of file
> crypto/aes/libcrypto-shlib-aes_cbc.o
> crypto/aes/libcrypto-shlib-aes_core.o
> crypto/aes/libcrypto-shlib-aesv8-armx.o
> crypto/aes/libcrypto-shlib-vpaes-armv8.o
> crypto/bn/libcrypto-shlib-armv8-mont.o
> crypto/bn/libcrypto-shlib-bn_asm.o
> crypto/camellia/libcrypto-shlib-camellia.o
> crypto/camellia/libcrypto-shlib-cmll_cbc.o
> crypto/chacha/libcrypto-shlib-chacha-armv8.o
> crypto/ec/libcrypto-shlib-ecp_nistz256-armv8.o
> crypto/libcrypto-shlib-arm64cpuid.o
> crypto/libcrypto-shlib-armcap.o
> crypto/modes/libcrypto-shlib-aes-gcm-armv8_64.o
> crypto/modes/libcrypto-shlib-ghashv8-armx.o
> crypto/poly1305/libcrypto-shlib-poly1305-armv8.o
> crypto/rc4/libcrypto-shlib-rc4_enc.o
> crypto/rc4/libcrypto-shlib-rc4_skey.o
> crypto/sha/libcrypto-shlib-keccak1600-armv8.o
> crypto/sha/libcrypto-shlib-sha1-armv8.o
> crypto/sha/libcrypto-shlib-sha256-armv8.o
> crypto/sha/libcrypto-shlib-sha512-armv8.o
> crypto/whrlpool/libcrypto-shlib-wp_block.o
\ No newline at end of file
gcc
-I.
-Iinclude
-Iproviders/common/include
-Iproviders/implementations/include
-DAES_ASM
-DBSAES_ASM
-DECP_NISTZ256_ASM
-DGHASH_ASM
-DKECCAK1600_ASM
-DOPENSSL_BN_ASM_GF2m
-DOPENSSL_BN_ASM_MONT
-DOPENSSL_CPUID_OBJ
-DPOLY1305_ASM
-DSHA1_ASM
-DSHA256_ASM
-DSHA512_ASM
-fPIC
-pthread
-Wa,--noexecstack
-Wall
-O3
-DOPENSSL_USE_NODELETE
-DOPENSSL_PIC
-DOPENSSLDIR="\"/usr/local/ssl\""
-DENGINESDIR="\"/usr/local/lib/engines-3\""
-DMODULESDIR="\"/usr/local/lib/ossl-modules\""
-DOPENSSL_BUILDING_OPENSSL
-DNDEBUG
-MMD
-MF
crypto/aes/libcrypto-shlib-aes_cfb.d.tmp
-MT
crypto/aes/libcrypto-shlib-aes_cfb.o
-c
-o
crypto/aes/libcrypto-shlib-aes_cfb.o
crypto/aes/aes_cfb.c
\ No newline at end of file
> crypto/aes/libcrypto-shlib-aes-armv4.o
> crypto/aes/libcrypto-shlib-aes_cbc.o
> crypto/aes/libcrypto-shlib-aesv8-armx.o
> crypto/aes/libcrypto-shlib-bsaes-armv7.o
> crypto/bn/libcrypto-shlib-armv4-gf2m.o
> crypto/bn/libcrypto-shlib-armv4-mont.o
> crypto/bn/libcrypto-shlib-bn_asm.o
> crypto/camellia/libcrypto-shlib-camellia.o
> crypto/camellia/libcrypto-shlib-cmll_cbc.o
> crypto/chacha/libcrypto-shlib-chacha-armv4.o
> crypto/ec/libcrypto-shlib-ecp_nistz256-armv4.o
> crypto/libcrypto-shlib-armcap.o
> crypto/libcrypto-shlib-armv4cpuid.o
> crypto/modes/libcrypto-shlib-ghash-armv4.o
> crypto/modes/libcrypto-shlib-ghashv8-armx.o
> crypto/poly1305/libcrypto-shlib-poly1305-armv4.o
> crypto/rc4/libcrypto-shlib-rc4_enc.o
> crypto/rc4/libcrypto-shlib-rc4_skey.o
> crypto/sha/libcrypto-shlib-keccak1600-armv4.o
> crypto/sha/libcrypto-shlib-sha1-armv4-large.o
> crypto/sha/libcrypto-shlib-sha256-armv4.o
> crypto/sha/libcrypto-shlib-sha512-armv4.o
> crypto/whrlpool/libcrypto-shlib-wp_block.o
\ No newline at end of file
gcc
-I.
-Iinclude
-Iproviders/common/include
-Iproviders/implementations/include
-DAES_ASM
-DBSAES_ASM
-DCMLL_ASM
-DECP_NISTZ256_ASM
-DGHASH_ASM
-DKECCAK1600_ASM
-DMD5_ASM
-DOPENSSL_BN_ASM_GF2m
-DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_MONT5
-DOPENSSL_CPUID_OBJ
-DOPENSSL_IA32_SSE2
-DPOLY1305_ASM
-DSHA1_ASM
-DSHA256_ASM
-DSHA512_ASM
-DVPAES_ASM
-DWHIRLPOOL_ASM
-DX25519_ASM
-fPIC
-pthread
-m64
-Wa,--noexecstack
-Wall
-O3
-DOPENSSL_USE_NODELETE
-DL_ENDIAN
-DOPENSSL_PIC
-DOPENSSLDIR="\"/usr/local/ssl\""
-DENGINESDIR="\"/usr/local/lib64/engines-3\""
-DMODULESDIR="\"/usr/local/lib64/ossl-modules\""
-DOPENSSL_BUILDING_OPENSSL
-DNDEBUG
-MMD
-MF
crypto/aes/libcrypto-shlib-aes_cfb.d.tmp
-MT
crypto/aes/libcrypto-shlib-aes_cfb.o
-c
-o
crypto/aes/libcrypto-shlib-aes_cfb.o
crypto/aes/aes_cfb.c
\ No newline at end of file
> crypto/aes/libcrypto-shlib-aes-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-mb-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-sha1-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-sha256-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-x86_64.o
> crypto/aes/libcrypto-shlib-bsaes-x86_64.o
> crypto/aes/libcrypto-shlib-vpaes-x86_64.o
> crypto/bn/asm/libcrypto-shlib-x86_64-gcc.o
> crypto/bn/libcrypto-shlib-rsaz-avx2.o
> crypto/bn/libcrypto-shlib-rsaz-avx512.o
> crypto/bn/libcrypto-shlib-rsaz-x86_64.o
> crypto/bn/libcrypto-shlib-rsaz_exp.o
> crypto/bn/libcrypto-shlib-rsaz_exp_x2.o
> crypto/bn/libcrypto-shlib-x86_64-gf2m.o
> crypto/bn/libcrypto-shlib-x86_64-mont.o
> crypto/bn/libcrypto-shlib-x86_64-mont5.o
> crypto/camellia/libcrypto-shlib-cmll-x86_64.o
> crypto/chacha/libcrypto-shlib-chacha-x86_64.o
> crypto/ec/libcrypto-shlib-ecp_nistz256-x86_64.o
> crypto/ec/libcrypto-shlib-x25519-x86_64.o
> crypto/libcrypto-shlib-x86_64cpuid.o
> crypto/md5/libcrypto-shlib-md5-x86_64.o
> crypto/modes/libcrypto-shlib-aesni-gcm-x86_64.o
> crypto/modes/libcrypto-shlib-ghash-x86_64.o
> crypto/poly1305/libcrypto-shlib-poly1305-x86_64.o
> crypto/rc4/libcrypto-shlib-rc4-md5-x86_64.o
> crypto/rc4/libcrypto-shlib-rc4-x86_64.o
> crypto/sha/libcrypto-shlib-keccak1600-x86_64.o
> crypto/sha/libcrypto-shlib-sha1-mb-x86_64.o
> crypto/sha/libcrypto-shlib-sha1-x86_64.o
> crypto/sha/libcrypto-shlib-sha256-mb-x86_64.o
> crypto/sha/libcrypto-shlib-sha256-x86_64.o
> crypto/sha/libcrypto-shlib-sha512-x86_64.o
> crypto/whrlpool/libcrypto-shlib-wp-x86_64.o
\ No newline at end of file
gcc
-I.
-Iinclude
-Iproviders/common/include
-Iproviders/implementations/include
-DAES_ASM
-DBSAES_ASM
-DCMLL_ASM
-DECP_NISTZ256_ASM
-DGHASH_ASM
-DKECCAK1600_ASM
-DMD5_ASM
-DOPENSSL_BN_ASM_GF2m
-DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_MONT5
-DOPENSSL_CPUID_OBJ
-DOPENSSL_IA32_SSE2
-DPOLY1305_ASM
-DSHA1_ASM
-DSHA256_ASM
-DSHA512_ASM
-DVPAES_ASM
-DWHIRLPOOL_ASM
-DX25519_ASM
-m64
-Wa,--noexecstack
-Wall
-O3
-DL_ENDIAN
-DOPENSSL_PIC
-DOPENSSLDIR="\"/usr/local/ssl\""
-DENGINESDIR="\"/usr/local/lib64/engines-3\""
-DMODULESDIR="\"/usr/local/lib64/ossl-modules\""
-DUNICODE
-D_UNICODE
-DWIN32_LEAN_AND_MEAN
-D_MT
-DOPENSSL_BUILDING_OPENSSL
-DNDEBUG
-MMD
-MF
crypto/aes/libcrypto-shlib-aes_cfb.d.tmp
-MT
crypto/aes/libcrypto-shlib-aes_cfb.obj
-c
-o
crypto/aes/libcrypto-shlib-aes_cfb.obj
crypto/aes/aes_cfb.c
\ No newline at end of file
> crypto/aes/libcrypto-shlib-aes-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-mb-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-sha1-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-sha256-x86_64.o
> crypto/aes/libcrypto-shlib-aesni-x86_64.o
> crypto/aes/libcrypto-shlib-bsaes-x86_64.o
> crypto/aes/libcrypto-shlib-vpaes-x86_64.o
> crypto/bn/asm/libcrypto-shlib-x86_64-gcc.o
> crypto/bn/libcrypto-shlib-rsaz-avx2.o
> crypto/bn/libcrypto-shlib-rsaz-avx512.o
> crypto/bn/libcrypto-shlib-rsaz-x86_64.o
> crypto/bn/libcrypto-shlib-rsaz_exp.o
> crypto/bn/libcrypto-shlib-rsaz_exp_x2.o
> crypto/bn/libcrypto-shlib-x86_64-gf2m.o
> crypto/bn/libcrypto-shlib-x86_64-mont.o
> crypto/bn/libcrypto-shlib-x86_64-mont5.o
> crypto/camellia/libcrypto-shlib-cmll-x86_64.o
> crypto/chacha/libcrypto-shlib-chacha-x86_64.o
> crypto/ec/libcrypto-shlib-ecp_nistz256-x86_64.o
> crypto/ec/libcrypto-shlib-x25519-x86_64.o
> crypto/libcrypto-shlib-dllmain.o
> crypto/libcrypto-shlib-x86_64cpuid.o
> crypto/md5/libcrypto-shlib-md5-x86_64.o
> crypto/modes/libcrypto-shlib-aesni-gcm-x86_64.o
> crypto/modes/libcrypto-shlib-ghash-x86_64.o
> crypto/poly1305/libcrypto-shlib-poly1305-x86_64.o
> crypto/rc4/libcrypto-shlib-rc4-md5-x86_64.o
> crypto/rc4/libcrypto-shlib-rc4-x86_64.o
> crypto/sha/libcrypto-shlib-keccak1600-x86_64.o
> crypto/sha/libcrypto-shlib-sha1-mb-x86_64.o
> crypto/sha/libcrypto-shlib-sha1-x86_64.o
> crypto/sha/libcrypto-shlib-sha256-mb-x86_64.o
> crypto/sha/libcrypto-shlib-sha256-x86_64.o
> crypto/sha/libcrypto-shlib-sha512-x86_64.o
> crypto/whrlpool/libcrypto-shlib-wp-x86_64.o
\ No newline at end of file
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -MMD -MF obj/base/security/huks/frameworks/huks_standard/main/common/src/libhuks_common_standard_static/hks_param.o.d -DL2_STANDARD -D_HARDWARE_ROOT_KEY_ -D_HUKS_LOG_ENABLE_ -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/bounds_checking_function/include -I../../base/security/huks/interfaces/inner_api/huks_standard/main/include -Iobj/third_party/musl/usr/include/aarch64-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../base/security/huks/frameworks/huks_standard/main/common/include -I../../commonlibrary/c_utils/base/include -I../../base/hiviewdfx/hilog/interfaces/native/innerkits/include -DHILOG_ENABLE -Wall -Werror -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=aarch64-linux-ohos -march=armv8-a -mfloat-abi=hard -mfpu=neon-fp-armv8 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fsanitize-trap=all -ftrap-function=abort -flto -fsanitize=cfi -fsanitize-blacklist=../../build/config/sanitizers/cfi_blocklist.txt -fvisibility=default -fsanitize=unsigned-integer-overflow -fsanitize=signed-integer-overflow -fsanitize-blacklist=../../build/config/sanitizers/integer_overflow_blocklist.txt -fno-sanitize-trap=integer,undefined -fno-sanitize-recover=integer,undefined -fsanitize-minimal-runtime -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang --sysroot=obj/third_party/musl -c ../../base/security/huks/frameworks/huks_standard/main/common/src/hks_param.c -o obj/base/security/huks/frameworks/huks_standard/main/common/src/libhuks_common_standard_static/hks_param.o
{ {
"name": "@ohos/openssl", "name": "@ohos/openssl",
"description": "implementing the Transport Layer Security (TLS) protocols (including SSLv3) as well as a full-strength general purpose cryptographic library", "description": "OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the Transport Layer Security (TLS) protocol formerly known as the Secure Sockets Layer (SSL) protocol.",
"version": "3.1", "version": "3.0.7",
"license": "OpenSSL,Original SSLeay", "license": "Apache License 2.0",
"publishAs": "code-segment", "publishAs": "code-segment",
"segment": { "segment": {
"destPath": "third_party/openssl" "destPath": "third_party/openssl"
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"dirs": {}, "dirs": {},
"scripts": {}, "scripts": {},
"readmePath": { "readmePath": {
"en": "README" "en": "README.md"
}, },
"component": { "component": {
"name": "thirdparty_openssl", "name": "thirdparty_openssl",
......
#!/bin/bash
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. All rights reserved.
# Description: This script is used to generate .S files.
# Create: 2020-05-30
set -e
error()
{
echo ===========================================
echo Create asm file FAIL!
echo ===========================================
exit 1
}
success()
{
echo ===========================================
echo Create asm file Sucess!
echo ===========================================
exit 0
}
rm -rf crypto/aes/asm/arm32
rm -rf crypto/bn/asm/arm32
rm -rf crypto/chacha/asm/arm32
rm -rf crypto/ec/asm/arm32
rm -rf crypto/modes/asm/arm32
rm -rf crypto/poly1305/asm/arm32
rm -rf crypto/sha/asm/arm32
rm -rf crypto/armv4cpuid.S
mkdir crypto/aes/asm/arm32
mkdir crypto/bn/asm/arm32
mkdir crypto/chacha/asm/arm32
mkdir crypto/ec/asm/arm32
mkdir crypto/modes/asm/arm32
mkdir crypto/poly1305/asm/arm32
mkdir crypto/sha/asm/arm32
# for arm32:
perl crypto/aes/asm/aes-armv4.pl void crypto/aes/asm/arm32/aes-armv4.S
perl crypto/aes/asm/aesv8-armx.pl void crypto/aes/asm/arm32/aesv8-armx.S
perl crypto/aes/asm/bsaes-armv7.pl void crypto/aes/asm/arm32/bsaes-armv7.S
perl crypto/armv4cpuid.pl void crypto/armv4cpuid.S
perl crypto/bn/asm/armv4-gf2m.pl void crypto/bn/asm/arm32/armv4-gf2m.S
perl crypto/bn/asm/armv4-mont.pl void crypto/bn/asm/arm32/armv4-mont.S
perl crypto/chacha/asm/chacha-armv4.pl void crypto/chacha/asm/arm32/chacha-armv4.S
perl crypto/ec/asm/ecp_nistz256-armv4.pl void crypto/ec/asm/arm32/ecp_nistz256-armv4.S
perl crypto/modes/asm/ghash-armv4.pl void crypto/modes/asm/arm32/ghash-armv4.S
perl crypto/modes/asm/ghashv8-armx.pl void crypto/modes/asm/arm32/ghashv8-armx.S
perl crypto/poly1305/asm/poly1305-armv4.pl void crypto/poly1305/asm/arm32/poly1305-armv4.S
perl crypto/sha/asm/keccak1600-armv4.pl void crypto/sha/asm/arm32/keccak1600-armv4.S
perl crypto/sha/asm/sha1-armv4-large.pl void crypto/sha/asm/arm32/sha1-armv4-large.S
perl crypto/sha/asm/sha256-armv4.pl void crypto/sha/asm/arm32/sha256-armv4.S
perl crypto/sha/asm/sha512-armv4.pl void crypto/sha/asm/arm32/sha512-armv4.S
rm -rf crypto/aes/asm/arm64
rm -rf crypto/bn/asm/arm64
rm -rf crypto/chacha/asm/arm64
rm -rf crypto/ec/asm/arm64
rm -rf crypto/modes/asm/arm64
rm -rf crypto/poly1305/asm/arm64
rm -rf crypto/sha/asm/arm64
rm -rf crypto/arm64cpuid.S
mkdir crypto/aes/asm/arm64
mkdir crypto/bn/asm/arm64
mkdir crypto/chacha/asm/arm64
mkdir crypto/ec/asm/arm64
mkdir crypto/modes/asm/arm64
mkdir crypto/poly1305/asm/arm64
mkdir crypto/sha/asm/arm64
# for arm64:
perl crypto/aes/asm/aesv8-armx.pl linux64 crypto/aes/asm/arm64/aesv8-armx.S
perl crypto/aes/asm/vpaes-armv8.pl linux64 crypto/aes/asm/arm64/vpaes-armv8.S
perl crypto/arm64cpuid.pl linux64 crypto/arm64cpuid.S
perl crypto/bn/asm/armv8-mont.pl linux64 crypto/bn/asm/arm64/armv8-mont.S
perl crypto/chacha/asm/chacha-armv8.pl linux64 crypto/chacha/asm/arm64/chacha-armv8.S
perl crypto/ec/asm/ecp_nistz256-armv8.pl linux64 crypto/ec/asm/arm64/ecp_nistz256-armv8.S
perl crypto/modes/asm/ghashv8-armx.pl linux64 crypto/modes/asm/arm64/ghashv8-armx.S
perl crypto/poly1305/asm/poly1305-armv8.pl linux64 crypto/poly1305/asm/arm64/poly1305-armv8.S
perl crypto/sha/asm/keccak1600-armv8.pl linux64 crypto/sha/asm/arm64/keccak1600-armv8.S
perl crypto/sha/asm/sha1-armv8.pl linux64 crypto/sha/asm/arm64/sha1-armv8.S
perl crypto/sha/asm/sha512-armv8.pl linux64 crypto/sha/asm/arm64/sha256-armv8.S
perl crypto/sha/asm/sha512-armv8.pl linux64 crypto/sha/asm/arm64/sha512-armv8.S
#need x86_64-linux-android-clang cross compile chain in your environment path,
#otherwise the generated asm files cannot be used
x86_64-linux-android-clang -v
rm -rf crypto/aes/asm/x86_64
rm -rf crypto/bn/asm/x86_64
rm -rf crypto/chacha/asm/x86_64
rm -rf crypto/ec/asm/x86_64
rm -rf crypto/md5/asm/x86_64
rm -rf crypto/modes/asm/x86_64
rm -rf crypto/poly1305/asm/x86_64
rm -rf crypto/rc4/asm/x86_64
rm -rf crypto/sha/asm/x86_64
rm -rf crypto/whrlpool/asm/x86_64
rm -rf crypto/x86_64cpuid.s
mkdir crypto/aes/asm/x86_64
mkdir crypto/bn/asm/x86_64
mkdir crypto/chacha/asm/x86_64
mkdir crypto/ec/asm/x86_64
mkdir crypto/md5/asm/x86_64
mkdir crypto/modes/asm/x86_64
mkdir crypto/poly1305/asm/x86_64
mkdir crypto/rc4/asm/x86_64
mkdir crypto/sha/asm/x86_64
mkdir crypto/whrlpool/asm/x86_64
# for x86_64:
CC="x86_64-linux-android-clang" perl crypto/aes/asm/aesni-mb-x86_64.pl elf crypto/aes/asm/x86_64/aesni-mb-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/aes/asm/aesni-sha1-x86_64.pl elf crypto/aes/asm/x86_64/aesni-sha1-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/aes/asm/aesni-sha256-x86_64.pl elf crypto/aes/asm/x86_64/aesni-sha256-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/aes/asm/aesni-x86_64.pl elf crypto/aes/asm/x86_64/aesni-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/aes/asm/vpaes-x86_64.pl elf crypto/aes/asm/x86_64/vpaes-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/bn/asm/rsaz-avx2.pl elf crypto/bn/asm/x86_64/rsaz-avx2.s
CC="x86_64-linux-android-clang" perl crypto/bn/asm/rsaz-x86_64.pl elf crypto/bn/asm/x86_64/rsaz-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/bn/asm/x86_64-gf2m.pl elf crypto/bn/asm/x86_64/x86_64-gf2m.s
CC="x86_64-linux-android-clang" perl crypto/bn/asm/x86_64-mont.pl elf crypto/bn/asm/x86_64/x86_64-mont.s
CC="x86_64-linux-android-clang" perl crypto/bn/asm/x86_64-mont5.pl elf crypto/bn/asm/x86_64/x86_64-mont5.s
CC="x86_64-linux-android-clang" perl crypto/chacha/asm/chacha-x86_64.pl elf crypto/chacha/asm/x86_64/chacha-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/ec/asm/ecp_nistz256-x86_64.pl elf crypto/ec/asm/x86_64/ecp_nistz256-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/ec/asm/x25519-x86_64.pl elf crypto/ec/asm/x86_64/x25519-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/md5/asm/md5-x86_64.pl elf crypto/md5/asm/x86_64/md5-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/modes/asm/aesni-gcm-x86_64.pl elf crypto/modes/asm/x86_64/aesni-gcm-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/modes/asm/ghash-x86_64.pl elf crypto/modes/asm/x86_64/ghash-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/poly1305/asm/poly1305-x86_64.pl elf crypto/poly1305/asm/x86_64/poly1305-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/rc4/asm/rc4-md5-x86_64.pl elf crypto/rc4/asm/x86_64/rc4-md5-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/rc4/asm/rc4-x86_64.pl elf crypto/rc4/asm/x86_64/rc4-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/sha/asm/keccak1600-x86_64.pl elf crypto/sha/asm/x86_64/keccak1600-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/sha/asm/sha1-mb-x86_64.pl elf crypto/sha/asm/x86_64/sha1-mb-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/sha/asm/sha1-x86_64.pl elf crypto/sha/asm/x86_64/sha1-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/sha/asm/sha256-mb-x86_64.pl elf crypto/sha/asm/x86_64/sha256-mb-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/sha/asm/sha512-x86_64.pl elf crypto/sha/asm/x86_64/sha256-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/sha/asm/sha512-x86_64.pl elf crypto/sha/asm/x86_64/sha512-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/whrlpool/asm/wp-x86_64.pl elf crypto/whrlpool/asm/x86_64/wp-x86_64.s
CC="x86_64-linux-android-clang" perl crypto/x86_64cpuid.pl elf crypto/x86_64cpuid.s
if [ $? -ne 0 ]; then
error
else
success
fi
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册