This is an automated email from the ASF dual-hosted git repository. yuanz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-crates.git
commit c416b421a1f314530acc02e10bc576f5198bef0f Author: Yuan Zhuang <[email protected]> AuthorDate: Thu Jul 24 05:59:37 2025 +0000 trustzone-sdk: use the modified Cargo.toml for ring --- ring-0.17.14/Cargo.lock | 361 ------------------------------------------- ring-0.17.14/Cargo.toml | 215 +++++++++----------------- ring-0.17.14/Cargo.toml.orig | 231 --------------------------- 3 files changed, 76 insertions(+), 731 deletions(-) diff --git a/ring-0.17.14/Cargo.lock b/ring-0.17.14/Cargo.lock deleted file mode 100644 index 7ca88ee..0000000 --- a/ring-0.17.14/Cargo.lock +++ /dev/null @@ -1,361 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "bumpalo" -version = "3.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" - -[[package]] -name = "cc" -version = "1.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda" -dependencies = [ - "shlex", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "getrandom" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" -dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi", - "wasm-bindgen", -] - -[[package]] -name = "js-sys" -version = "0.3.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a865e038f7f6ed956f788f0d7d60c541fff74c7bd74272c5d4cf15c63743e705" -dependencies = [ - "once_cell", - "wasm-bindgen", -] - -[[package]] -name = "libc" -version = "0.2.169" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" - -[[package]] -name = "log" -version = "0.4.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" - -[[package]] -name = "minicov" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f27fe9f1cc3c22e1687f9446c2083c4c5fc7f0bcf1c7a86bdbded14985895b4b" -dependencies = [ - "cc", - "walkdir", -] - -[[package]] -name = "once_cell" -version = "1.20.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" - -[[package]] -name = "proc-macro2" -version = "1.0.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "quote" -version = "1.0.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "ring" -version = "0.17.14" -dependencies = [ - "cc", - "cfg-if", - "getrandom", - "libc", - "untrusted", - "wasm-bindgen-test", - "windows-sys 0.52.0", -] - -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "syn" -version = "2.0.98" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "unicode-ident" -version = "1.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" - -[[package]] -name = "untrusted" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" - -[[package]] -name = "walkdir" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] - -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - -[[package]] -name = "wasm-bindgen" -version = "0.2.97" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d15e63b4482863c109d70a7b8706c1e364eb6ea449b201a76c5b89cedcec2d5c" -dependencies = [ - "cfg-if", - "once_cell", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.97" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d36ef12e3aaca16ddd3f67922bc63e48e953f126de60bd33ccc0101ef9998cd" -dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.47" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dfaf8f50e5f293737ee323940c7d8b08a66a95a419223d9f41610ca08b0833d" -dependencies = [ - "cfg-if", - "js-sys", - "once_cell", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.97" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "705440e08b42d3e4b36de7d66c944be628d579796b8090bfa3471478a2260051" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.97" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98c9ae5a76e46f4deecd0f0255cc223cfa18dc9b261213b8aa0c7b36f61b3f1d" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.97" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ee99da9c5ba11bd675621338ef6fa52296b76b83305e9b6e5c77d4c286d6d49" - -[[package]] -name = "wasm-bindgen-test" -version = "0.3.47" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d919bb60ebcecb9160afee6c71b43a58a4f0517a2de0054cd050d02cec08201" -dependencies = [ - "js-sys", - "minicov", - "once_cell", - "scoped-tls", - "wasm-bindgen", - "wasm-bindgen-futures", - "wasm-bindgen-test-macro", -] - -[[package]] -name = "wasm-bindgen-test-macro" -version = "0.3.47" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "222ebde6ea87fbfa6bdd2e9f1fd8a91d60aee5db68792632176c4e16a74fc7d8" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "web-sys" -version = "0.3.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a98bc3c33f0fe7e59ad7cd041b89034fa82a7c2d4365ca538dda6cdaf513863c" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "winapi-util" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" -dependencies = [ - "windows-sys 0.59.0", -] - -[[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" diff --git a/ring-0.17.14/Cargo.toml b/ring-0.17.14/Cargo.toml index f445e18..273383e 100644 --- a/ring-0.17.14/Cargo.toml +++ b/ring-0.17.14/Cargo.toml @@ -1,31 +1,42 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - [package] +build = "build.rs" +categories = ["cryptography", "no-std"] +description = "An experiment." edition = "2021" -rust-version = "1.66.0" +keywords = ["crypto", "cryptography", "rand", "ECC", "RSA"] +license = "Apache-2.0 AND ISC" name = "ring" +repository = "https://github.com/briansmith/ring" + +# Keep in sync with .github/workflows/ci.yml ("MSRV") and see the MSRV note +# in cpu/arm.rs. +# 1.66 is required on x86/x86_64 for https://github.com/rust-lang/rust/pull/101861. +rust-version = "1.66.0" + +# Keep in sync with `links` below. version = "0.17.14" -build = "build.rs" + +# Keep in sync with `version` above. +# +# build.rs verifies that this equals "ring_core_{major}_{minor}_{patch}_{pre}" +# as keeping this in sync with the symbol prefixing is crucial for ensuring +# the safety of multiple versions of *ring* being used in a program. links = "ring_core_0_17_14_" + include = [ "LICENSE", "LICENSE-other-bits", "LICENSE-BoringSSL", "src/polyfill/once_cell/LICENSE-APACHE", "src/polyfill/once_cell/LICENSE-MIT", + "Cargo.toml", + "pregenerated/*", + "benches/*.rs", "build.rs", + "crypto/chacha/asm/chacha-armv4.pl", "crypto/chacha/asm/chacha-armv8.pl", "crypto/chacha/asm/chacha-x86.pl", @@ -139,156 +150,82 @@ include = [ "third_party/fiat/p256_64_msvc.h", "third_party/fiat/LICENSE", ] -autolib = false -autobins = false -autoexamples = false -autotests = false -autobenches = false -description = "An experiment." -readme = "README.md" -keywords = [ - "crypto", - "cryptography", - "rand", - "ECC", - "RSA", -] -categories = [ - "cryptography", - "no-std", -] -license = "Apache-2.0 AND ISC" -repository = "https://github.com/briansmith/ring" [package.metadata.docs.rs] all-features = true -[features] -alloc = [] -default = [ - "alloc", - "dev_urandom_fallback", -] -dev_urandom_fallback = [] -less-safe-getrandom-custom-or-rdrand = [] -less-safe-getrandom-espidf = [] -slow_tests = [] -std = ["alloc"] -test_logging = [] -unstable-testing-arm-no-hw = [] -unstable-testing-arm-no-neon = [] -wasm32_unknown_unknown_js = ["getrandom/js"] - [lib] name = "ring" -path = "src/lib.rs" -[[test]] -name = "aead_tests" -path = "tests/aead_tests.rs" +[dependencies] +cfg-if = { version = "1.0.0", default-features = false } +untrusted = { version = "0.9" } -[[test]] -name = "agreement_tests" -path = "tests/agreement_tests.rs" +[target.'cfg(not(target_os = "optee"))'.dependencies] +getrandom = { version = "0.2.10" } -[[test]] -name = "constant_time_tests" -path = "tests/constant_time_tests.rs" +[target.'cfg(all(any(all(target_arch = "aarch64", target_endian = "little"), all(target_arch = "arm", target_endian = "little")), any(target_os = "android", target_os = "linux")))'.dependencies] +libc = { version = "0.2.148", default-features = false } -[[test]] -name = "digest_tests" -path = "tests/digest_tests.rs" +[target.'cfg(all(all(target_arch = "aarch64", target_endian = "little"), target_vendor = "apple", any(target_os = "ios", target_os = "macos", target_os = "tvos", target_os = "visionos", target_os = "watchos")))'.dependencies] +libc = { version = "0.2.155", default-features = false } -[[test]] -name = "ecdsa_tests" -path = "tests/ecdsa_tests.rs" +[target.'cfg(all(all(target_arch = "aarch64", target_endian = "little"), target_os = "windows"))'.dependencies] +windows-sys = { version = "0.52", features = ["Win32_Foundation", "Win32_System_Threading"] } -[[test]] -name = "ed25519_tests" -path = "tests/ed25519_tests.rs" +[target.'cfg(target_os="optee")'.dependencies] +optee-utee = { version = "0.4.0" } -[[test]] -name = "error_tests" -path = "tests/error_tests.rs" +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] +wasm-bindgen-test = { version = "0.3.37", default-features = false, features = ["std"] } -[[test]] -name = "hkdf_tests" -path = "tests/hkdf_tests.rs" +[target.'cfg(any(unix, windows, target_os = "wasi"))'.dev-dependencies] +libc = { version = "0.2.148", default-features = false } -[[test]] -name = "hmac_tests" -path = "tests/hmac_tests.rs" +[build-dependencies] +cc = { version = "1.2.8", default-features = false } -[[test]] -name = "pbkdf2_tests" -path = "tests/pbkdf2_tests.rs" - -[[test]] -name = "quic_tests" -path = "tests/quic_tests.rs" - -[[test]] -name = "rand_tests" -path = "tests/rand_tests.rs" - -[[test]] -name = "rsa_tests" -path = "tests/rsa_tests.rs" - -[[test]] -name = "signature_tests" -path = "tests/signature_tests.rs" - -[dependencies.cfg-if] -version = "1.0.0" -default-features = false - -[dependencies.getrandom] -version = "0.2.10" - -[dependencies.untrusted] -version = "0.9" - -[build-dependencies.cc] -version = "1.2.8" -default-features = false - -[target.'cfg(all(all(target_arch = "aarch64", target_endian = "little"), target_os = "windows"))'.dependencies.windows-sys] -version = "0.52" -features = [ - "Win32_Foundation", - "Win32_System_Threading", -] - -[target.'cfg(all(all(target_arch = "aarch64", target_endian = "little"), target_vendor = "apple", any(target_os = "ios", target_os = "macos", target_os = "tvos", target_os = "visionos", target_os = "watchos")))'.dependencies.libc] -version = "0.2.155" -default-features = false - -[target.'cfg(all(any(all(target_arch = "aarch64", target_endian = "little"), all(target_arch = "arm", target_endian = "little")), any(target_os = "android", target_os = "linux")))'.dependencies.libc] -version = "0.2.148" -default-features = false - -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test] -version = "0.3.37" -features = ["std"] -default-features = false +[features] +# These features are documented in the top-level module's documentation. +default = ["alloc", "dev_urandom_fallback"] +alloc = [] +dev_urandom_fallback = [] +less-safe-getrandom-custom-or-rdrand = [] +less-safe-getrandom-espidf = [] +slow_tests = [] +std = ["alloc"] +unstable-testing-arm-no-hw = [] +unstable-testing-arm-no-neon = [] +test_logging = [] +wasm32_unknown_unknown_js = ["getrandom/js"] -[target.'cfg(any(unix, windows, target_os = "wasi"))'.dev-dependencies.libc] -version = "0.2.148" -default-features = false +# XXX: debug = false because of https://github.com/rust-lang/rust/issues/34122 [profile.bench] opt-level = 3 +debug = false +rpath = false lto = true -codegen-units = 1 -debug = 0 debug-assertions = false -rpath = false +codegen-units = 1 [profile.release] opt-level = 3 +debug = false +rpath = false lto = true -codegen-units = 1 -debug = 0 debug-assertions = false -rpath = false +codegen-units = 1 + +[workspace] +members = [ + # intentionally not a default member so that `cargo test` doesn't cause criterion.rs and all its + # dependencies to get built. + "bench", + + "cavp", +] +default-members = [ + ".", + "cavp" +] diff --git a/ring-0.17.14/Cargo.toml.orig b/ring-0.17.14/Cargo.toml.orig deleted file mode 100644 index 273383e..0000000 --- a/ring-0.17.14/Cargo.toml.orig +++ /dev/null @@ -1,231 +0,0 @@ -[package] -build = "build.rs" -categories = ["cryptography", "no-std"] -description = "An experiment." -edition = "2021" -keywords = ["crypto", "cryptography", "rand", "ECC", "RSA"] -license = "Apache-2.0 AND ISC" -name = "ring" -repository = "https://github.com/briansmith/ring" - -# Keep in sync with .github/workflows/ci.yml ("MSRV") and see the MSRV note -# in cpu/arm.rs. -# 1.66 is required on x86/x86_64 for https://github.com/rust-lang/rust/pull/101861. -rust-version = "1.66.0" - -# Keep in sync with `links` below. -version = "0.17.14" - -# Keep in sync with `version` above. -# -# build.rs verifies that this equals "ring_core_{major}_{minor}_{patch}_{pre}" -# as keeping this in sync with the symbol prefixing is crucial for ensuring -# the safety of multiple versions of *ring* being used in a program. -links = "ring_core_0_17_14_" - -include = [ - "LICENSE", - "LICENSE-other-bits", - "LICENSE-BoringSSL", - "src/polyfill/once_cell/LICENSE-APACHE", - "src/polyfill/once_cell/LICENSE-MIT", - - "Cargo.toml", - - "pregenerated/*", - - "benches/*.rs", - "build.rs", - - "crypto/chacha/asm/chacha-armv4.pl", - "crypto/chacha/asm/chacha-armv8.pl", - "crypto/chacha/asm/chacha-x86.pl", - "crypto/chacha/asm/chacha-x86_64.pl", - "crypto/constant_time_test.c", - "crypto/cpu_intel.c", - "crypto/crypto.c", - "crypto/curve25519/asm/x25519-asm-arm.S", - "crypto/curve25519/curve25519.c", - "crypto/curve25519/curve25519_64_adx.c", - "crypto/curve25519/curve25519_tables.h", - "crypto/curve25519/internal.h", - "crypto/fipsmodule/aes/aes_nohw.c", - "crypto/fipsmodule/aes/asm/aes-gcm-avx2-x86_64.pl", - "crypto/fipsmodule/aes/asm/aesni-x86.pl", - "crypto/fipsmodule/aes/asm/aesni-gcm-x86_64.pl", - "crypto/fipsmodule/aes/asm/aesni-x86_64.pl", - "crypto/fipsmodule/aes/asm/aesv8-armx.pl", - "crypto/fipsmodule/aes/asm/aesv8-gcm-armv8.pl", - "crypto/fipsmodule/aes/asm/ghash-armv4.pl", - "crypto/fipsmodule/aes/asm/ghash-neon-armv8.pl", - "crypto/fipsmodule/aes/asm/ghash-x86.pl", - "crypto/fipsmodule/aes/asm/ghash-x86_64.pl", - "crypto/fipsmodule/aes/asm/ghashv8-armx.pl", - "crypto/fipsmodule/aes/asm/bsaes-armv7.pl", - "crypto/fipsmodule/aes/asm/bsaes-x86_64.pl", - "crypto/fipsmodule/aes/asm/vsaes-armv7.pl", - "crypto/fipsmodule/aes/asm/vpaes-armv7.pl", - "crypto/fipsmodule/aes/asm/vpaes-armv8.pl", - "crypto/fipsmodule/aes/asm/vpaes-x86.pl", - "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl", - "crypto/fipsmodule/bn/asm/armv4-mont.pl", - "crypto/fipsmodule/bn/asm/armv8-mont.pl", - "crypto/fipsmodule/bn/asm/x86-mont.pl", - "crypto/fipsmodule/bn/asm/x86_64-mont.pl", - "crypto/fipsmodule/bn/asm/x86_64-mont5.pl", - "crypto/fipsmodule/bn/internal.h", - "crypto/fipsmodule/bn/montgomery.c", - "crypto/fipsmodule/bn/montgomery_inv.c", - "crypto/fipsmodule/ec/asm/p256-armv8-asm.pl", - "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl", - "crypto/fipsmodule/ec/ecp_nistz.c", - "crypto/fipsmodule/ec/ecp_nistz.h", - "crypto/fipsmodule/ec/ecp_nistz384.h", - "crypto/fipsmodule/ec/ecp_nistz384.inl", - "crypto/fipsmodule/ec/gfp_p256.c", - "crypto/fipsmodule/ec/gfp_p384.c", - "crypto/fipsmodule/ec/p256.c", - "crypto/fipsmodule/ec/p256-nistz-table.h", - "crypto/fipsmodule/ec/p256-nistz.c", - "crypto/fipsmodule/ec/p256-nistz.h", - "crypto/fipsmodule/ec/p256_shared.h", - "crypto/fipsmodule/ec/p256_table.h", - "crypto/fipsmodule/ec/util.h", - "crypto/fipsmodule/ecdsa/ecdsa_verify_tests.txt", - "crypto/fipsmodule/sha/asm/sha256-armv4.pl", - "crypto/fipsmodule/sha/asm/sha512-armv4.pl", - "crypto/fipsmodule/sha/asm/sha512-armv8.pl", - "crypto/fipsmodule/sha/asm/sha512-x86_64.pl", - "crypto/internal.h", - "crypto/limbs/limbs.c", - "crypto/limbs/limbs.h", - "crypto/limbs/limbs.inl", - "crypto/mem.c", - "crypto/perlasm/arm-xlate.pl", - "crypto/perlasm/x86asm.pl", - "crypto/perlasm/x86gas.pl", - "crypto/perlasm/x86nasm.pl", - "crypto/perlasm/x86_64-xlate.pl", - "crypto/poly1305/poly1305.c", - "crypto/poly1305/poly1305_arm.c", - "crypto/poly1305/poly1305_arm_asm.S", - "crypto/cipher/asm/chacha20_poly1305_armv8.pl", - "crypto/cipher/asm/chacha20_poly1305_x86_64.pl", - "examples/**/*.rs", - "include/ring-core/aes.h", - "include/ring-core/asm_base.h", - "include/ring-core/base.h", - "include/ring-core/check.h", - "include/ring-core/mem.h", - "include/ring-core/target.h", - "include/ring-core/type_check.h", - "src/**/*.rs", - "src/aead/poly1305_test.txt", - "src/data/alg-rsa-encryption.der", - "src/ec/curve25519/ed25519/ed25519_pkcs8_v2_template.der", - "src/ec/suite_b/ecdsa/ecPublicKey_p256_pkcs8_v1_template.der", - "src/ec/suite_b/ecdsa/ecPublicKey_p384_pkcs8_v1_template.der", - "src/rsa/signature_rsa_example_private_key.der", - "src/rsa/signature_rsa_example_public_key.der", - "tests/**/*.rs", - "tests/ecdsa_test_private_key_p256.p8", - "tests/ecdsa_test_public_key_p256.der", - "tests/ecdsa_test_public_key_p256_debug.txt", - "tests/ed25519_test_private_key.bin", - "tests/ed25519_test_private_key.p8", - "tests/ed25519_test_public_key.bin", - "tests/ed25519_test_public_key.der", - "tests/rsa_test_private_key_2048.p8", - "tests/rsa_test_public_key_2048.der", - "tests/rsa_test_public_key_2048_debug.txt", - "tests/rsa_test_public_modulus.bin", - "third_party/fiat/asm/fiat_curve25519_adx_mul.S", - "third_party/fiat/asm/fiat_curve25519_adx_square.S", - "third_party/fiat/curve25519_32.h", - "third_party/fiat/curve25519_64.h", - "third_party/fiat/curve25519_64_adx.h", - "third_party/fiat/curve25519_64_msvc.h", - "third_party/fiat/p256_32.h", - "third_party/fiat/p256_64.h", - "third_party/fiat/p256_64_msvc.h", - "third_party/fiat/LICENSE", -] - -[package.metadata.docs.rs] -all-features = true - -[lib] -name = "ring" - -[dependencies] -cfg-if = { version = "1.0.0", default-features = false } -untrusted = { version = "0.9" } - -[target.'cfg(not(target_os = "optee"))'.dependencies] -getrandom = { version = "0.2.10" } - -[target.'cfg(all(any(all(target_arch = "aarch64", target_endian = "little"), all(target_arch = "arm", target_endian = "little")), any(target_os = "android", target_os = "linux")))'.dependencies] -libc = { version = "0.2.148", default-features = false } - -[target.'cfg(all(all(target_arch = "aarch64", target_endian = "little"), target_vendor = "apple", any(target_os = "ios", target_os = "macos", target_os = "tvos", target_os = "visionos", target_os = "watchos")))'.dependencies] -libc = { version = "0.2.155", default-features = false } - -[target.'cfg(all(all(target_arch = "aarch64", target_endian = "little"), target_os = "windows"))'.dependencies] -windows-sys = { version = "0.52", features = ["Win32_Foundation", "Win32_System_Threading"] } - -[target.'cfg(target_os="optee")'.dependencies] -optee-utee = { version = "0.4.0" } - -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] -wasm-bindgen-test = { version = "0.3.37", default-features = false, features = ["std"] } - -[target.'cfg(any(unix, windows, target_os = "wasi"))'.dev-dependencies] -libc = { version = "0.2.148", default-features = false } - -[build-dependencies] -cc = { version = "1.2.8", default-features = false } - -[features] -# These features are documented in the top-level module's documentation. -default = ["alloc", "dev_urandom_fallback"] -alloc = [] -dev_urandom_fallback = [] -less-safe-getrandom-custom-or-rdrand = [] -less-safe-getrandom-espidf = [] -slow_tests = [] -std = ["alloc"] -unstable-testing-arm-no-hw = [] -unstable-testing-arm-no-neon = [] -test_logging = [] -wasm32_unknown_unknown_js = ["getrandom/js"] - -# XXX: debug = false because of https://github.com/rust-lang/rust/issues/34122 - -[profile.bench] -opt-level = 3 -debug = false -rpath = false -lto = true -debug-assertions = false -codegen-units = 1 - -[profile.release] -opt-level = 3 -debug = false -rpath = false -lto = true -debug-assertions = false -codegen-units = 1 - -[workspace] -members = [ - # intentionally not a default member so that `cargo test` doesn't cause criterion.rs and all its - # dependencies to get built. - "bench", - - "cavp", -] -default-members = [ - ".", - "cavp" -] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
