+# Copyright (c) 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This file is created by generate_build_files.py. Do not edit manually.
+
+crypto_sources = [
+ "err_data.c",
+ "src/crypto/asn1/a_bitstr.c",
+ "src/crypto/asn1/a_bool.c",
+ "src/crypto/asn1/a_d2i_fp.c",
+ "src/crypto/asn1/a_dup.c",
+ "src/crypto/asn1/a_enum.c",
+ "src/crypto/asn1/a_gentm.c",
+ "src/crypto/asn1/a_i2d_fp.c",
+ "src/crypto/asn1/a_int.c",
+ "src/crypto/asn1/a_mbstr.c",
+ "src/crypto/asn1/a_object.c",
+ "src/crypto/asn1/a_octet.c",
+ "src/crypto/asn1/a_print.c",
+ "src/crypto/asn1/a_strnid.c",
+ "src/crypto/asn1/a_time.c",
+ "src/crypto/asn1/a_type.c",
+ "src/crypto/asn1/a_utctm.c",
+ "src/crypto/asn1/a_utf8.c",
+ "src/crypto/asn1/asn1_lib.c",
+ "src/crypto/asn1/asn1_locl.h",
+ "src/crypto/asn1/asn1_par.c",
+ "src/crypto/asn1/asn_pack.c",
+ "src/crypto/asn1/f_enum.c",
+ "src/crypto/asn1/f_int.c",
+ "src/crypto/asn1/f_string.c",
+ "src/crypto/asn1/tasn_dec.c",
+ "src/crypto/asn1/tasn_enc.c",
+ "src/crypto/asn1/tasn_fre.c",
+ "src/crypto/asn1/tasn_new.c",
+ "src/crypto/asn1/tasn_typ.c",
+ "src/crypto/asn1/tasn_utl.c",
+ "src/crypto/asn1/time_support.c",
+ "src/crypto/base64/base64.c",
+ "src/crypto/bio/bio.c",
+ "src/crypto/bio/bio_mem.c",
+ "src/crypto/bio/connect.c",
+ "src/crypto/bio/fd.c",
+ "src/crypto/bio/file.c",
+ "src/crypto/bio/hexdump.c",
+ "src/crypto/bio/internal.h",
+ "src/crypto/bio/pair.c",
+ "src/crypto/bio/printf.c",
+ "src/crypto/bio/socket.c",
+ "src/crypto/bio/socket_helper.c",
+ "src/crypto/bn_extra/bn_asn1.c",
+ "src/crypto/bn_extra/convert.c",
+ "src/crypto/buf/buf.c",
+ "src/crypto/bytestring/asn1_compat.c",
+ "src/crypto/bytestring/ber.c",
+ "src/crypto/bytestring/cbb.c",
+ "src/crypto/bytestring/cbs.c",
+ "src/crypto/bytestring/internal.h",
+ "src/crypto/bytestring/unicode.c",
+ "src/crypto/chacha/chacha.c",
+ "src/crypto/chacha/internal.h",
+ "src/crypto/cipher_extra/cipher_extra.c",
+ "src/crypto/cipher_extra/derive_key.c",
+ "src/crypto/cipher_extra/e_aesccm.c",
+ "src/crypto/cipher_extra/e_aesctrhmac.c",
+ "src/crypto/cipher_extra/e_aesgcmsiv.c",
+ "src/crypto/cipher_extra/e_chacha20poly1305.c",
+ "src/crypto/cipher_extra/e_null.c",
+ "src/crypto/cipher_extra/e_rc2.c",
+ "src/crypto/cipher_extra/e_rc4.c",
+ "src/crypto/cipher_extra/e_tls.c",
+ "src/crypto/cipher_extra/internal.h",
+ "src/crypto/cipher_extra/tls_cbc.c",
+ "src/crypto/cmac/cmac.c",
+ "src/crypto/conf/conf.c",
+ "src/crypto/conf/conf_def.h",
+ "src/crypto/conf/internal.h",
+ "src/crypto/cpu-aarch64-fuchsia.c",
+ "src/crypto/cpu-aarch64-linux.c",
+ "src/crypto/cpu-arm-linux.c",
+ "src/crypto/cpu-arm-linux.h",
+ "src/crypto/cpu-arm.c",
+ "src/crypto/cpu-intel.c",
+ "src/crypto/cpu-ppc64le.c",
+ "src/crypto/crypto.c",
+ "src/crypto/curve25519/spake25519.c",
+ "src/crypto/dh/check.c",
+ "src/crypto/dh/dh.c",
+ "src/crypto/dh/dh_asn1.c",
+ "src/crypto/dh/params.c",
+ "src/crypto/digest_extra/digest_extra.c",
+ "src/crypto/dsa/dsa.c",
+ "src/crypto/dsa/dsa_asn1.c",
+ "src/crypto/ec_extra/ec_asn1.c",
+ "src/crypto/ecdh_extra/ecdh_extra.c",
+ "src/crypto/ecdsa_extra/ecdsa_asn1.c",
+ "src/crypto/engine/engine.c",
+ "src/crypto/err/err.c",
+ "src/crypto/err/internal.h",
+ "src/crypto/evp/digestsign.c",
+ "src/crypto/evp/evp.c",
+ "src/crypto/evp/evp_asn1.c",
+ "src/crypto/evp/evp_ctx.c",
+ "src/crypto/evp/internal.h",
+ "src/crypto/evp/p_dsa_asn1.c",
+ "src/crypto/evp/p_ec.c",
+ "src/crypto/evp/p_ec_asn1.c",
+ "src/crypto/evp/p_ed25519.c",
+ "src/crypto/evp/p_ed25519_asn1.c",
+ "src/crypto/evp/p_rsa.c",
+ "src/crypto/evp/p_rsa_asn1.c",
+ "src/crypto/evp/pbkdf.c",
+ "src/crypto/evp/print.c",
+ "src/crypto/evp/scrypt.c",
+ "src/crypto/evp/sign.c",
+ "src/crypto/ex_data.c",
+ "src/crypto/fipsmodule/aes/internal.h",
+ "src/crypto/fipsmodule/bcm.c",
+ "src/crypto/fipsmodule/bn/internal.h",
+ "src/crypto/fipsmodule/bn/rsaz_exp.h",
+ "src/crypto/fipsmodule/cipher/internal.h",
+ "src/crypto/fipsmodule/delocate.h",
+ "src/crypto/fipsmodule/des/internal.h",
+ "src/crypto/fipsmodule/digest/internal.h",
+ "src/crypto/fipsmodule/digest/md32_common.h",
+ "src/crypto/fipsmodule/ec/internal.h",
+ "src/crypto/fipsmodule/ec/p256-x86_64-table.h",
+ "src/crypto/fipsmodule/ec/p256-x86_64.h",
+ "src/crypto/fipsmodule/is_fips.c",
+ "src/crypto/fipsmodule/modes/internal.h",
+ "src/crypto/fipsmodule/rand/internal.h",
+ "src/crypto/fipsmodule/rsa/internal.h",
+ "src/crypto/fipsmodule/tls/internal.h",
+ "src/crypto/hkdf/hkdf.c",
+ "src/crypto/internal.h",
+ "src/crypto/lhash/lhash.c",
+ "src/crypto/mem.c",
+ "src/crypto/obj/obj.c",
+ "src/crypto/obj/obj_dat.h",
+ "src/crypto/obj/obj_xref.c",
+ "src/crypto/pem/pem_all.c",
+ "src/crypto/pem/pem_info.c",
+ "src/crypto/pem/pem_lib.c",
+ "src/crypto/pem/pem_oth.c",
+ "src/crypto/pem/pem_pk8.c",
+ "src/crypto/pem/pem_pkey.c",
+ "src/crypto/pem/pem_x509.c",
+ "src/crypto/pem/pem_xaux.c",
+ "src/crypto/pkcs7/internal.h",
+ "src/crypto/pkcs7/pkcs7.c",
+ "src/crypto/pkcs7/pkcs7_x509.c",
+ "src/crypto/pkcs8/internal.h",
+ "src/crypto/pkcs8/p5_pbev2.c",
+ "src/crypto/pkcs8/pkcs8.c",
+ "src/crypto/pkcs8/pkcs8_x509.c",
+ "src/crypto/poly1305/internal.h",
+ "src/crypto/poly1305/poly1305.c",
+ "src/crypto/poly1305/poly1305_arm.c",
+ "src/crypto/poly1305/poly1305_vec.c",
+ "src/crypto/pool/internal.h",
+ "src/crypto/pool/pool.c",
+ "src/crypto/rand_extra/deterministic.c",
+ "src/crypto/rand_extra/forkunsafe.c",
+ "src/crypto/rand_extra/fuchsia.c",
+ "src/crypto/rand_extra/rand_extra.c",
+ "src/crypto/rand_extra/windows.c",
+ "src/crypto/rc4/rc4.c",
+ "src/crypto/refcount_c11.c",
+ "src/crypto/refcount_lock.c",
+ "src/crypto/rsa_extra/rsa_asn1.c",
+ "src/crypto/rsa_extra/rsa_print.c",
+ "src/crypto/stack/stack.c",
+ "src/crypto/thread.c",
+ "src/crypto/thread_none.c",
+ "src/crypto/thread_pthread.c",
+ "src/crypto/thread_win.c",
+ "src/crypto/x509/a_digest.c",
+ "src/crypto/x509/a_sign.c",
+ "src/crypto/x509/a_strex.c",
+ "src/crypto/x509/a_verify.c",
+ "src/crypto/x509/algorithm.c",
+ "src/crypto/x509/asn1_gen.c",
+ "src/crypto/x509/by_dir.c",
+ "src/crypto/x509/by_file.c",
+ "src/crypto/x509/charmap.h",
+ "src/crypto/x509/i2d_pr.c",
+ "src/crypto/x509/internal.h",
+ "src/crypto/x509/rsa_pss.c",
+ "src/crypto/x509/t_crl.c",
+ "src/crypto/x509/t_req.c",
+ "src/crypto/x509/t_x509.c",
+ "src/crypto/x509/t_x509a.c",
+ "src/crypto/x509/vpm_int.h",
+ "src/crypto/x509/x509.c",
+ "src/crypto/x509/x509_att.c",
+ "src/crypto/x509/x509_cmp.c",
+ "src/crypto/x509/x509_d2.c",
+ "src/crypto/x509/x509_def.c",
+ "src/crypto/x509/x509_ext.c",
+ "src/crypto/x509/x509_lu.c",
+ "src/crypto/x509/x509_obj.c",
+ "src/crypto/x509/x509_r2x.c",
+ "src/crypto/x509/x509_req.c",
+ "src/crypto/x509/x509_set.c",
+ "src/crypto/x509/x509_trs.c",
+ "src/crypto/x509/x509_txt.c",
+ "src/crypto/x509/x509_v3.c",
+ "src/crypto/x509/x509_vfy.c",
+ "src/crypto/x509/x509_vpm.c",
+ "src/crypto/x509/x509cset.c",
+ "src/crypto/x509/x509name.c",
+ "src/crypto/x509/x509rset.c",
+ "src/crypto/x509/x509spki.c",
+ "src/crypto/x509/x_algor.c",
+ "src/crypto/x509/x_all.c",
+ "src/crypto/x509/x_attrib.c",
+ "src/crypto/x509/x_crl.c",
+ "src/crypto/x509/x_exten.c",
+ "src/crypto/x509/x_info.c",
+ "src/crypto/x509/x_name.c",
+ "src/crypto/x509/x_pkey.c",
+ "src/crypto/x509/x_pubkey.c",
+ "src/crypto/x509/x_req.c",
+ "src/crypto/x509/x_sig.c",
+ "src/crypto/x509/x_spki.c",
+ "src/crypto/x509/x_val.c",
+ "src/crypto/x509/x_x509.c",
+ "src/crypto/x509/x_x509a.c",
+ "src/crypto/x509v3/ext_dat.h",
+ "src/crypto/x509v3/internal.h",
+ "src/crypto/x509v3/pcy_cache.c",
+ "src/crypto/x509v3/pcy_data.c",
+ "src/crypto/x509v3/pcy_int.h",
+ "src/crypto/x509v3/pcy_lib.c",
+ "src/crypto/x509v3/pcy_map.c",
+ "src/crypto/x509v3/pcy_node.c",
+ "src/crypto/x509v3/pcy_tree.c",
+ "src/crypto/x509v3/v3_akey.c",
+ "src/crypto/x509v3/v3_akeya.c",
+ "src/crypto/x509v3/v3_alt.c",
+ "src/crypto/x509v3/v3_bcons.c",
+ "src/crypto/x509v3/v3_bitst.c",
+ "src/crypto/x509v3/v3_conf.c",
+ "src/crypto/x509v3/v3_cpols.c",
+ "src/crypto/x509v3/v3_crld.c",
+ "src/crypto/x509v3/v3_enum.c",
+ "src/crypto/x509v3/v3_extku.c",
+ "src/crypto/x509v3/v3_genn.c",
+ "src/crypto/x509v3/v3_ia5.c",
+ "src/crypto/x509v3/v3_info.c",
+ "src/crypto/x509v3/v3_int.c",
+ "src/crypto/x509v3/v3_lib.c",
+ "src/crypto/x509v3/v3_ncons.c",
+ "src/crypto/x509v3/v3_ocsp.c",
+ "src/crypto/x509v3/v3_pci.c",
+ "src/crypto/x509v3/v3_pcia.c",
+ "src/crypto/x509v3/v3_pcons.c",
+ "src/crypto/x509v3/v3_pku.c",
+ "src/crypto/x509v3/v3_pmaps.c",
+ "src/crypto/x509v3/v3_prn.c",
+ "src/crypto/x509v3/v3_purp.c",
+ "src/crypto/x509v3/v3_skey.c",
+ "src/crypto/x509v3/v3_sxnet.c",
+ "src/crypto/x509v3/v3_utl.c",
+ "src/third_party/fiat/curve25519.c",
+ "src/third_party/fiat/curve25519_tables.h",
+ "src/third_party/fiat/internal.h",
+]
+
+crypto_headers = [
+ "src/include/openssl/aead.h",
+ "src/include/openssl/aes.h",
+ "src/include/openssl/arm_arch.h",
+ "src/include/openssl/asn1.h",
+ "src/include/openssl/asn1_mac.h",
+ "src/include/openssl/asn1t.h",
+ "src/include/openssl/base.h",
+ "src/include/openssl/base64.h",
+ "src/include/openssl/bio.h",
+ "src/include/openssl/blowfish.h",
+ "src/include/openssl/bn.h",
+ "src/include/openssl/buf.h",
+ "src/include/openssl/buffer.h",
+ "src/include/openssl/bytestring.h",
+ "src/include/openssl/cast.h",
+ "src/include/openssl/chacha.h",
+ "src/include/openssl/cipher.h",
+ "src/include/openssl/cmac.h",
+ "src/include/openssl/conf.h",
+ "src/include/openssl/cpu.h",
+ "src/include/openssl/crypto.h",
+ "src/include/openssl/curve25519.h",
+ "src/include/openssl/des.h",
+ "src/include/openssl/dh.h",
+ "src/include/openssl/digest.h",
+ "src/include/openssl/dsa.h",
+ "src/include/openssl/e_os2.h",
+ "src/include/openssl/ec.h",
+ "src/include/openssl/ec_key.h",
+ "src/include/openssl/ecdh.h",
+ "src/include/openssl/ecdsa.h",
+ "src/include/openssl/engine.h",
+ "src/include/openssl/err.h",
+ "src/include/openssl/evp.h",
+ "src/include/openssl/ex_data.h",
+ "src/include/openssl/hkdf.h",
+ "src/include/openssl/hmac.h",
+ "src/include/openssl/is_boringssl.h",
+ "src/include/openssl/lhash.h",
+ "src/include/openssl/md4.h",
+ "src/include/openssl/md5.h",
+ "src/include/openssl/mem.h",
+ "src/include/openssl/nid.h",
+ "src/include/openssl/obj.h",
+ "src/include/openssl/obj_mac.h",
+ "src/include/openssl/objects.h",
+ "src/include/openssl/opensslconf.h",
+ "src/include/openssl/opensslv.h",
+ "src/include/openssl/ossl_typ.h",
+ "src/include/openssl/pem.h",
+ "src/include/openssl/pkcs12.h",
+ "src/include/openssl/pkcs7.h",
+ "src/include/openssl/pkcs8.h",
+ "src/include/openssl/poly1305.h",
+ "src/include/openssl/pool.h",
+ "src/include/openssl/rand.h",
+ "src/include/openssl/rc4.h",
+ "src/include/openssl/ripemd.h",
+ "src/include/openssl/rsa.h",
+ "src/include/openssl/safestack.h",
+ "src/include/openssl/sha.h",
+ "src/include/openssl/span.h",
+ "src/include/openssl/stack.h",
+ "src/include/openssl/thread.h",
+ "src/include/openssl/type_check.h",
+ "src/include/openssl/x509.h",
+ "src/include/openssl/x509_vfy.h",
+ "src/include/openssl/x509v3.h",
+]
+
+ssl_sources = [
+ "src/ssl/bio_ssl.cc",
+ "src/ssl/d1_both.cc",
+ "src/ssl/d1_lib.cc",
+ "src/ssl/d1_pkt.cc",
+ "src/ssl/d1_srtp.cc",
+ "src/ssl/dtls_method.cc",
+ "src/ssl/dtls_record.cc",
+ "src/ssl/handoff.cc",
+ "src/ssl/handshake.cc",
+ "src/ssl/handshake_client.cc",
+ "src/ssl/handshake_server.cc",
+ "src/ssl/internal.h",
+ "src/ssl/s3_both.cc",
+ "src/ssl/s3_lib.cc",
+ "src/ssl/s3_pkt.cc",
+ "src/ssl/ssl_aead_ctx.cc",
+ "src/ssl/ssl_asn1.cc",
+ "src/ssl/ssl_buffer.cc",
+ "src/ssl/ssl_cert.cc",
+ "src/ssl/ssl_cipher.cc",
+ "src/ssl/ssl_file.cc",
+ "src/ssl/ssl_key_share.cc",
+ "src/ssl/ssl_lib.cc",
+ "src/ssl/ssl_privkey.cc",
+ "src/ssl/ssl_session.cc",
+ "src/ssl/ssl_stat.cc",
+ "src/ssl/ssl_transcript.cc",
+ "src/ssl/ssl_versions.cc",
+ "src/ssl/ssl_x509.cc",
+ "src/ssl/t1_enc.cc",
+ "src/ssl/t1_lib.cc",
+ "src/ssl/tls13_both.cc",
+ "src/ssl/tls13_client.cc",
+ "src/ssl/tls13_enc.cc",
+ "src/ssl/tls13_server.cc",
+ "src/ssl/tls_method.cc",
+ "src/ssl/tls_record.cc",
+]
+
+ssl_headers = [
+ "src/include/openssl/dtls1.h",
+ "src/include/openssl/srtp.h",
+ "src/include/openssl/ssl.h",
+ "src/include/openssl/ssl3.h",
+ "src/include/openssl/tls1.h",
+]
+
+crypto_sources_ios_aarch64 = [
+ "ios-aarch64/crypto/chacha/chacha-armv8.S",
+ "ios-aarch64/crypto/fipsmodule/aesv8-armx64.S",
+ "ios-aarch64/crypto/fipsmodule/armv8-mont.S",
+ "ios-aarch64/crypto/fipsmodule/ghashv8-armx64.S",
+ "ios-aarch64/crypto/fipsmodule/sha1-armv8.S",
+ "ios-aarch64/crypto/fipsmodule/sha256-armv8.S",
+ "ios-aarch64/crypto/fipsmodule/sha512-armv8.S",
+]
+
+crypto_sources_ios_arm = [
+ "ios-arm/crypto/chacha/chacha-armv4.S",
+ "ios-arm/crypto/fipsmodule/aes-armv4.S",
+ "ios-arm/crypto/fipsmodule/aesv8-armx32.S",
+ "ios-arm/crypto/fipsmodule/armv4-mont.S",
+ "ios-arm/crypto/fipsmodule/bsaes-armv7.S",
+ "ios-arm/crypto/fipsmodule/ghash-armv4.S",
+ "ios-arm/crypto/fipsmodule/ghashv8-armx32.S",
+ "ios-arm/crypto/fipsmodule/sha1-armv4-large.S",
+ "ios-arm/crypto/fipsmodule/sha256-armv4.S",
+ "ios-arm/crypto/fipsmodule/sha512-armv4.S",
+]
+
+crypto_sources_linux_aarch64 = [
+ "linux-aarch64/crypto/chacha/chacha-armv8.S",
+ "linux-aarch64/crypto/fipsmodule/aesv8-armx64.S",
+ "linux-aarch64/crypto/fipsmodule/armv8-mont.S",
+ "linux-aarch64/crypto/fipsmodule/ghashv8-armx64.S",
+ "linux-aarch64/crypto/fipsmodule/sha1-armv8.S",
+ "linux-aarch64/crypto/fipsmodule/sha256-armv8.S",
+ "linux-aarch64/crypto/fipsmodule/sha512-armv8.S",
+]
+
+crypto_sources_linux_arm = [
+ "linux-arm/crypto/chacha/chacha-armv4.S",
+ "linux-arm/crypto/fipsmodule/aes-armv4.S",
+ "linux-arm/crypto/fipsmodule/aesv8-armx32.S",
+ "linux-arm/crypto/fipsmodule/armv4-mont.S",
+ "linux-arm/crypto/fipsmodule/bsaes-armv7.S",
+ "linux-arm/crypto/fipsmodule/ghash-armv4.S",
+ "linux-arm/crypto/fipsmodule/ghashv8-armx32.S",
+ "linux-arm/crypto/fipsmodule/sha1-armv4-large.S",
+ "linux-arm/crypto/fipsmodule/sha256-armv4.S",
+ "linux-arm/crypto/fipsmodule/sha512-armv4.S",
+ "src/crypto/curve25519/asm/x25519-asm-arm.S",
+ "src/crypto/poly1305/poly1305_arm_asm.S",
+]
+
+crypto_sources_linux_ppc64le = [
+ "linux-ppc64le/crypto/fipsmodule/aesp8-ppc.S",
+ "linux-ppc64le/crypto/fipsmodule/ghashp8-ppc.S",
+]
+
+crypto_sources_linux_x86 = [
+ "linux-x86/crypto/chacha/chacha-x86.S",
+ "linux-x86/crypto/fipsmodule/aes-586.S",
+ "linux-x86/crypto/fipsmodule/aesni-x86.S",
+ "linux-x86/crypto/fipsmodule/bn-586.S",
+ "linux-x86/crypto/fipsmodule/co-586.S",
+ "linux-x86/crypto/fipsmodule/ghash-x86.S",
+ "linux-x86/crypto/fipsmodule/md5-586.S",
+ "linux-x86/crypto/fipsmodule/sha1-586.S",
+ "linux-x86/crypto/fipsmodule/sha256-586.S",
+ "linux-x86/crypto/fipsmodule/sha512-586.S",
+ "linux-x86/crypto/fipsmodule/vpaes-x86.S",
+ "linux-x86/crypto/fipsmodule/x86-mont.S",
+]
+
+crypto_sources_linux_x86_64 = [
+ "linux-x86_64/crypto/chacha/chacha-x86_64.S",
+ "linux-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.S",
+ "linux-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/aes-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/aesni-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/bsaes-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/ghash-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/md5-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/p256-x86_64-asm.S",
+ "linux-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.S",
+ "linux-x86_64/crypto/fipsmodule/rdrand-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/rsaz-avx2.S",
+ "linux-x86_64/crypto/fipsmodule/sha1-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/sha256-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/sha512-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/vpaes-x86_64.S",
+ "linux-x86_64/crypto/fipsmodule/x86_64-mont.S",
+ "linux-x86_64/crypto/fipsmodule/x86_64-mont5.S",
+]
+
+crypto_sources_mac_x86 = [
+ "mac-x86/crypto/chacha/chacha-x86.S",
+ "mac-x86/crypto/fipsmodule/aes-586.S",
+ "mac-x86/crypto/fipsmodule/aesni-x86.S",
+ "mac-x86/crypto/fipsmodule/bn-586.S",
+ "mac-x86/crypto/fipsmodule/co-586.S",
+ "mac-x86/crypto/fipsmodule/ghash-x86.S",
+ "mac-x86/crypto/fipsmodule/md5-586.S",
+ "mac-x86/crypto/fipsmodule/sha1-586.S",
+ "mac-x86/crypto/fipsmodule/sha256-586.S",
+ "mac-x86/crypto/fipsmodule/sha512-586.S",
+ "mac-x86/crypto/fipsmodule/vpaes-x86.S",
+ "mac-x86/crypto/fipsmodule/x86-mont.S",
+]
+
+crypto_sources_mac_x86_64 = [
+ "mac-x86_64/crypto/chacha/chacha-x86_64.S",
+ "mac-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.S",
+ "mac-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/aes-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/aesni-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/bsaes-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/ghash-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/md5-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/p256-x86_64-asm.S",
+ "mac-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.S",
+ "mac-x86_64/crypto/fipsmodule/rdrand-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/rsaz-avx2.S",
+ "mac-x86_64/crypto/fipsmodule/sha1-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/sha256-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/sha512-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/vpaes-x86_64.S",
+ "mac-x86_64/crypto/fipsmodule/x86_64-mont.S",
+ "mac-x86_64/crypto/fipsmodule/x86_64-mont5.S",
+]
+
+crypto_sources_win_x86 = [
+ "win-x86/crypto/chacha/chacha-x86.asm",
+ "win-x86/crypto/fipsmodule/aes-586.asm",
+ "win-x86/crypto/fipsmodule/aesni-x86.asm",
+ "win-x86/crypto/fipsmodule/bn-586.asm",
+ "win-x86/crypto/fipsmodule/co-586.asm",
+ "win-x86/crypto/fipsmodule/ghash-x86.asm",
+ "win-x86/crypto/fipsmodule/md5-586.asm",
+ "win-x86/crypto/fipsmodule/sha1-586.asm",
+ "win-x86/crypto/fipsmodule/sha256-586.asm",
+ "win-x86/crypto/fipsmodule/sha512-586.asm",
+ "win-x86/crypto/fipsmodule/vpaes-x86.asm",
+ "win-x86/crypto/fipsmodule/x86-mont.asm",
+]
+
+crypto_sources_win_x86_64 = [
+ "win-x86_64/crypto/chacha/chacha-x86_64.asm",
+ "win-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.asm",
+ "win-x86_64/crypto/cipher_extra/chacha20_poly1305_x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/aes-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/aesni-gcm-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/aesni-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/bsaes-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/ghash-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/md5-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/p256-x86_64-asm.asm",
+ "win-x86_64/crypto/fipsmodule/p256_beeu-x86_64-asm.asm",
+ "win-x86_64/crypto/fipsmodule/rdrand-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/rsaz-avx2.asm",
+ "win-x86_64/crypto/fipsmodule/sha1-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/sha256-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/sha512-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/vpaes-x86_64.asm",
+ "win-x86_64/crypto/fipsmodule/x86_64-mont.asm",
+ "win-x86_64/crypto/fipsmodule/x86_64-mont5.asm",
+]
+
+fuzzers = [
+ "arm_cpuinfo",
+ "bn_div",
+ "bn_mod_exp",
+ "cert",
+ "client",
+ "dtls_client",
+ "dtls_server",
+ "pkcs12",
+ "pkcs8",
+ "privkey",
+ "read_pem",
+ "server",
+ "session",
+ "spki",
+ "ssl_ctx_api",
+]
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/android/config.gni")
+import("//build/config/arm.gni")
+import("//build/config/sanitizers/sanitizers.gni")
+import("//build_overrides/build.gni")
+import("//testing/libfuzzer/fuzzer_test.gni")
+import("BUILD.generated.gni")
+import("BUILD.generated_tests.gni")
+
+# Config for us and everybody else depending on BoringSSL.
+config("external_config") {
+ include_dirs = [ "src/include" ]
+ if (is_component_build) {
+ defines = [ "BORINGSSL_SHARED_LIBRARY" ]
+ }
+}
+
+# Config internal to this build file, shared by boringssl and boringssl_fuzzer.
+config("internal_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = [
+ "BORINGSSL_ALLOW_CXX_RUNTIME",
+ "BORINGSSL_IMPLEMENTATION",
+ "BORINGSSL_NO_STATIC_INITIALIZER",
+ "OPENSSL_SMALL",
+ ]
+ configs = [
+ # TODO(davidben): Fix size_t truncations in BoringSSL.
+ # https://crbug.com/boringssl/22
+ "//build/config/compiler:no_size_t_to_int_warning",
+ ]
+ if (is_posix || is_fuchsia) {
+ cflags_c = [ "-std=c99" ]
+ defines += [ "_XOPEN_SOURCE=700" ]
+ }
+}
+
+config("no_asm_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = [ "OPENSSL_NO_ASM" ]
+}
+
+all_sources = crypto_sources + ssl_sources
+all_headers = crypto_headers + ssl_headers
+
+# Windows' assembly is built with NASM. The other platforms use the platform
+# assembler. Exclude Windows ARM64 because NASM targets x86 and x64 only.
+if (is_win && !is_msan && current_cpu != "arm64") {
+ import("//third_party/nasm/nasm_assemble.gni")
+ nasm_assemble("boringssl_asm") {
+ if (current_cpu == "x64") {
+ sources = crypto_sources_win_x86_64
+ } else if (current_cpu == "x86") {
+ sources = crypto_sources_win_x86
+ }
+ }
+} else {
+ # This has no sources on some platforms so must be a source_set.
+ source_set("boringssl_asm") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+
+ sources = []
+ asmflags = []
+ include_dirs = [ "src/include" ]
+
+ if (is_msan) {
+ public_configs = [ ":no_asm_config" ]
+ } else if (current_cpu == "x64") {
+ if (is_mac) {
+ sources += crypto_sources_mac_x86_64
+ } else if (is_linux || is_android) {
+ sources += crypto_sources_linux_x86_64
+ } else {
+ public_configs = [ ":no_asm_config" ]
+ }
+ } else if (current_cpu == "x86") {
+ if (is_mac) {
+ sources += crypto_sources_mac_x86
+ } else if (is_linux || is_android) {
+ sources += crypto_sources_linux_x86
+ } else {
+ public_configs = [ ":no_asm_config" ]
+ }
+ } else if (current_cpu == "arm") {
+ if (is_linux || is_android) {
+ sources += crypto_sources_linux_arm
+ } else if (is_ios) {
+ sources += crypto_sources_ios_arm
+ } else {
+ public_configs = [ ":no_asm_config" ]
+ }
+ } else if (current_cpu == "arm64") {
+ if (is_linux || is_android) {
+ sources += crypto_sources_linux_aarch64
+ } else if (is_ios) {
+ sources += crypto_sources_ios_aarch64
+ } else {
+ public_configs = [ ":no_asm_config" ]
+ }
+ } else {
+ public_configs = [ ":no_asm_config" ]
+ }
+ }
+}
+
+component("boringssl") {
+ sources = all_sources
+ public = all_headers
+ friend = [ ":*" ]
+ deps = [
+ ":boringssl_asm",
+ "//third_party/boringssl/src/third_party/fiat:fiat_license",
+ ]
+
+ public_configs = [ ":external_config" ]
+ configs += [ ":internal_config" ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ if (is_nacl) {
+ deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
+ }
+}
+
+# These targets are named "_tests" rather than "_test" to avoid colliding with a
+# historical "boringssl_ssl_test" target. This works around a bug with the iOS
+# build rules.
+
+test("boringssl_crypto_tests") {
+ sources = crypto_test_sources + test_support_sources
+ deps = [
+ ":boringssl",
+ "//testing/gtest",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ ":internal_config",
+ "//build/config/compiler:no_chromium_code",
+ ]
+
+ # Chromium infrastructure does not support GTest, only the //base wrapper.
+ if (build_with_chromium) {
+ sources -= [
+ "src/crypto/test/gtest_main.cc",
+
+ # //base includes its own conflicting malloc shim.
+ "src/crypto/test/malloc.cc",
+ ]
+ sources += [ "gtest_main_chromium.cc" ]
+ deps += [ "//base/test:test_support" ]
+ }
+}
+
+test("boringssl_ssl_tests") {
+ sources = ssl_test_sources + test_support_sources
+ deps = [
+ ":boringssl",
+ "//testing/gtest",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ ":internal_config",
+ "//build/config/compiler:no_chromium_code",
+ ]
+
+ # Chromium infrastructure does not support GTest, only the //base wrapper.
+ if (build_with_chromium) {
+ sources -= [
+ "src/crypto/test/gtest_main.cc",
+
+ # //base includes its own conflicting malloc shim.
+ "src/crypto/test/malloc.cc",
+ ]
+ sources += [ "gtest_main_chromium.cc" ]
+ deps += [ "//base/test:test_support" ]
+ }
+}
+
+if (build_with_chromium) {
+ config("fuzzer_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = [
+ "BORINGSSL_UNSAFE_FUZZER_MODE",
+ "BORINGSSL_UNSAFE_DETERMINISTIC_MODE",
+ ]
+ }
+
+ # The same as boringssl, but builds with BORINGSSL_UNSAFE_FUZZER_MODE.
+ component("boringssl_fuzzer") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+
+ sources = all_sources
+ deps = [
+ ":boringssl_asm",
+ ]
+
+ public_configs = [
+ ":external_config",
+ ":fuzzer_config",
+ ]
+ configs += [ ":internal_config" ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ if (is_nacl) {
+ deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
+ }
+ }
+
+ foreach(fuzzer, fuzzers) {
+ fuzzer_test("boringssl_${fuzzer}_fuzzer") {
+ sources = [
+ "src/fuzz/${fuzzer}.cc",
+ "src/ssl/test/fuzzer.h",
+ "src/ssl/test/fuzzer_tags.h",
+ ]
+ deps = [
+ ":boringssl_fuzzer",
+ ]
+ seed_corpus = "src/fuzz/${fuzzer}_corpus"
+
+ if ("cert" == fuzzer) {
+ libfuzzer_options = [ "max_len=3072" ]
+ } else if ("client" == fuzzer) {
+ libfuzzer_options = [ "max_len=20000" ]
+ } else if ("pkcs8" == fuzzer) {
+ libfuzzer_options = [ "max_len=2048" ]
+ } else if ("privkey" == fuzzer) {
+ libfuzzer_options = [ "max_len=2048" ]
+ } else if ("read_pem" == fuzzer) {
+ libfuzzer_options = [ "max_len=512" ]
+ } else if ("session" == fuzzer) {
+ libfuzzer_options = [ "max_len=8192" ]
+ } else if ("server" == fuzzer) {
+ libfuzzer_options = [ "max_len=4096" ]
+ } else if ("spki" == fuzzer) {
+ libfuzzer_options = [ "max_len=1024" ]
+ } else if ("ssl_ctx_api" == fuzzer) {
+ libfuzzer_options = [ "max_len=256" ]
+ }
+ }
+ }
+
+ config("fuzzer_no_fuzzer_mode_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = [ "BORINGSSL_UNSAFE_DETERMINISTIC_MODE" ]
+ }
+
+ # The same as boringssl, but builds with BORINGSSL_UNSAFE_DETERMINISTIC_MODE.
+ component("boringssl_fuzzer_no_fuzzer_mode") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+
+ sources = all_sources
+ deps = [
+ ":boringssl_asm",
+ ]
+
+ public_configs = [
+ ":external_config",
+ ":fuzzer_no_fuzzer_mode_config",
+ ]
+ configs += [ ":internal_config" ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ if (is_nacl) {
+ deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
+ }
+ }
+
+ fuzzer_test("boringssl_client_no_fuzzer_mode_fuzzer") {
+ sources = [
+ "src/fuzz/client.cc",
+ "src/ssl/test/fuzzer.h",
+ "src/ssl/test/fuzzer_tags.h",
+ ]
+ deps = [
+ ":boringssl_fuzzer_no_fuzzer_mode",
+ ]
+ seed_corpus = "src/fuzz/client_corpus_no_fuzzer_mode"
+ }
+
+ fuzzer_test("boringssl_server_no_fuzzer_mode_fuzzer") {
+ sources = [
+ "src/fuzz/server.cc",
+ "src/ssl/test/fuzzer.h",
+ "src/ssl/test/fuzzer_tags.h",
+ ]
+ deps = [
+ ":boringssl_fuzzer_no_fuzzer_mode",
+ ]
+ seed_corpus = "src/fuzz/server_corpus_no_fuzzer_mode"
+ }
+}