Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 22 additions & 3 deletions src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,29 @@ members = [
"qos_test_primitives",
"qos_p256",
"qos_nsm",
# special members that are not default-members
"qos_p256/fuzz",
"qos_crypto/fuzz",
"qos_nsm/fuzz",
]
default-members = [
"integration",
"qos_client",
"qos_core",
"qos_crypto",
"qos_host",
"qos_hex",
"qos_net",
"qos_test_primitives",
"qos_p256",
"qos_nsm",
]

exclude = [
"init",
"qos_aws",
"qos_system",
"qos_enclave",
"qos_p256/fuzz",
"qos_crypto/fuzz",
"qos_nsm/fuzz",
]
# We need this to avoid issues with the mock feature uinintentionally being
# enabled just because some tests need it.
Expand Down Expand Up @@ -91,3 +105,8 @@ qos_net = { path = "qos_net", default-features = false }
qos_nsm = { path = "qos_nsm", default-features = false }
qos_p256 = { path = "qos_p256" }
qos_test_primitives = { path = "qos_test_primitives" }

# TODO test extensively before enabling by default
# [profile.release]
# # enable arithmetic checks at runtime
# overflow-checks = true
11 changes: 1 addition & 10 deletions src/qos_crypto/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ cargo-fuzz = true
libfuzzer-sys = "0.4"
arbitrary = { version = "1", features = ["derive"] }

[dependencies.qos_crypto]
path = ".."

# Prevent this from interfering with workspaces
[workspace]
members = ["."]

[profile.release]
# enable arithmetic checks at runtime
overflow-checks = true
qos_crypto = { path = ".." }

[[bin]]
name = "1_shamir_generate_reconstruct"
Expand Down
10 changes: 0 additions & 10 deletions src/qos_nsm/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,9 @@ cargo-fuzz = true
libfuzzer-sys = "0.4"

qos_hex = { path = "../../qos_hex" }

# we need some of the mock code features
qos_nsm = { path = "../", features = ["mock"] }


# Prevent this from interfering with workspaces
[workspace]
members = ["."]

[profile.release]
# enable arithmetic checks at runtime
overflow-checks = true

[[bin]]
name = "1_attestation_doc_from_der"
path = "fuzz_targets/1_attestation_doc_from_der.rs"
Expand Down
9 changes: 0 additions & 9 deletions src/qos_p256/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ arbitrary = { version = "1", features = ["derive"] }

qos_p256 = { path = "../"}

# Prevent this from interfering with workspaces
[workspace]
members = ["."]

[profile.release]
debug = 1
# enable integer overflow checks
overflow-checks = true

[features]
# feature used by some harnesses to signal a special mode, does nothing on other targets
fuzzer_corpus_seed1 = []
Expand Down