aws-lc-rs: enable FIPS mode

This commit is contained in:
Joseph Birr-Pixton 2023-10-06 11:38:40 +01:00
parent 976e522a0d
commit 82b1e3f1db
2 changed files with 40 additions and 2 deletions

40
Cargo.lock generated
View File

@ -132,12 +132,27 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "aws-lc-fips-sys"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f56794bd674ee9f3d8de0e1d378ee44c72beb3506e5b747f89a632eb39adba1"
dependencies = [
"bindgen 0.69.1",
"cmake",
"dunce",
"fs_extra",
"libc",
"paste",
]
[[package]]
name = "aws-lc-rs"
version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7bc2aa0a35a53d7cfda07a69f74d67a918ced3ec1a607f5bce5da7c3aff6bab7"
dependencies = [
"aws-lc-fips-sys",
"aws-lc-sys",
"mirai-annotations",
"untrusted 0.7.1",
@ -150,7 +165,7 @@ version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2c6f9497a1bd3bed0a28a01b8836dbe9c7a2c521e47a14b165c64c4df592331"
dependencies = [
"bindgen",
"bindgen 0.68.1",
"cmake",
"dunce",
"fs_extra",
@ -220,6 +235,29 @@ dependencies = [
"which",
]
[[package]]
name = "bindgen"
version = "0.69.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ffcebc3849946a7170a05992aac39da343a90676ab392c51a4280981d6379c2"
dependencies = [
"bitflags 2.4.1",
"cexpr",
"clang-sys",
"lazy_static",
"lazycell",
"log",
"peeking_take_while",
"prettyplease",
"proc-macro2",
"quote",
"regex",
"rustc-hash",
"shlex",
"syn",
"which",
]
[[package]]
name = "bitflags"
version = "1.3.2"

View File

@ -16,7 +16,7 @@ build = "build.rs"
rustversion = { version = "1.0.6", optional = true }
[dependencies]
aws-lc-rs = { version = "1.5", optional = true }
aws-lc-rs = { version = "1.5", optional = true, features = ["fips"] }
log = { version = "0.4.4", optional = true }
ring = { version = "0.17", optional = true }
subtle = { version = "2.5.0", default-features = false }