diff --git a/Cargo.lock b/Cargo.lock index cb8cebaf8..a45523564 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -384,7 +384,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41262f11d771fd4a61aa3ce019fca363b4b6c282fca9da2a31186d3965a47a5c" dependencies = [ "either", - "radium", + "radium 0.3.0", +] + +[[package]] +name = "bitvec" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5011ffc90248764d7005b0e10c7294f5aa1bd87d9dd7248f4ad475b347c294d" +dependencies = [ + "funty", + "radium 0.6.2", + "tap", + "wyz", ] [[package]] @@ -1513,11 +1525,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9abe4578ed343c7a2c9d617cd2b1895ba0a87a6a4dee97bde156d65f608c7b2d" dependencies = [ "generic-array 0.14.4", - "rand_core 0.5.1", "subtle", "zeroize", ] +[[package]] +name = "elliptic-curve" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c237c70e5a4013efd3e8f1e49e79b58d0bfd601c6783d82fb819d04a29b85297" +dependencies = [ + "ff", + "generic-array 0.14.4", + "group", + "rand_core 0.6.1", + "subtle", +] + [[package]] name = "enclave-macro" version = "0.6.0" @@ -1662,6 +1686,17 @@ dependencies = [ "regex", ] +[[package]] +name = "ff" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a4d941a5b7c2a75222e2d44fcdf634a67133d9db31e177ae5ff6ecda852bfe" +dependencies = [ + "bitvec 0.20.1", + "rand_core 0.6.1", + "subtle", +] + [[package]] name = "fixed" version = "1.5.0" @@ -1764,6 +1799,12 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" +[[package]] +name = "funty" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7" + [[package]] name = "futures" version = "0.1.29" @@ -1961,6 +2002,17 @@ dependencies = [ "regex", ] +[[package]] +name = "group" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b3c1e8b4f1ca07e6605ea1be903a5f6956aec5c8a67fd44d56076631675ed8" +dependencies = [ + "ff", + "rand_core 0.6.1", + "subtle", +] + [[package]] name = "grpc" version = "0.8.1" @@ -3024,7 +3076,7 @@ dependencies = [ "assert_matches", "chain-util", "chrono", - "elliptic-curve 0.5.0", + "elliptic-curve 0.9.0", "generic-array 0.14.4", "hkdf 0.10.0", "hpke", @@ -3297,7 +3349,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79602888a81ace83e3d1d4b2873286c1f5f906c84db667594e8db8da3506c383" dependencies = [ "arrayvec 0.5.1", - "bitvec", + "bitvec 0.17.4", "byte-slice-cast", "parity-scale-codec-derive", "serde", @@ -3846,6 +3898,12 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "def50a86306165861203e7f84ecffbbdfdea79f0e51039b33de1e952358c47ac" +[[package]] +name = "radium" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643f8f41a8ebc4c5dc4515c82bb8abd397b527fc20fd681b7c011c2aee5d44fb" + [[package]] name = "rand" version = "0.4.6" @@ -3948,6 +4006,12 @@ dependencies = [ "getrandom 0.1.14", ] +[[package]] +name = "rand_core" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c026d7df8b298d90ccbbc5190bd04d85e159eaf5576caeacf8741da93ccbd2e5" + [[package]] name = "rand_hc" version = "0.1.0" @@ -4869,6 +4933,12 @@ dependencies = [ "chrono", ] +[[package]] +name = "tap" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36474e732d1affd3a6ed582781b3683df3d0563714c59c39591e8ff707cf078e" + [[package]] name = "tdb-enclave-app" version = "0.6.0" @@ -5991,6 +6061,12 @@ dependencies = [ "winapi-build", ] +[[package]] +name = "wyz" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214" + [[package]] name = "x509-parser" version = "0.8.2" diff --git a/chain-tx-enclave-next/mls/Cargo.toml b/chain-tx-enclave-next/mls/Cargo.toml index 5727c247b..3c18a6d01 100644 --- a/chain-tx-enclave-next/mls/Cargo.toml +++ b/chain-tx-enclave-next/mls/Cargo.toml @@ -22,7 +22,7 @@ chrono="0.4.19" ra-client = { path = "../enclave-ra/ra-client" } subtle = "2.4.0" chain-util = { path = "../../chain-util" } -elliptic-curve = "0.5.0" +elliptic-curve = "0.9.0" p256 = { version = "0.4.1", features = ["arithmetic", "zeroize"] } zeroize = "1.2" parity-scale-codec = { features = ["derive"], version = "1.3" }