diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml deleted file mode 100644 index d2480599..00000000 --- a/.github/workflows/nix.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Nix - -on: - push: - branches: [main] - pull_request: - -jobs: - nix: - runs-on: ubuntu-latest - steps: - - uses: DeterminateSystems/nix-installer-action@v12 - - uses: DeterminateSystems/magic-nix-cache-action@v7 - - name: Install & configure Cachix - shell: bash - run: | - nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install - cachix use hax - - uses: actions/checkout@v4 - - run: nix build -L diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 31fbd5d8..00000000 --- a/Cargo.lock +++ /dev/null @@ -1,1637 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "addr2line" -version = "0.24.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" -dependencies = [ - "gimli", -] - -[[package]] -name = "adler2" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "anes" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" - -[[package]] -name = "anstream" -version = "0.6.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is_terminal_polyfill", - "utf8parse", -] - -[[package]] -name = "anstyle" -version = "1.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" - -[[package]] -name = "anstyle-parse" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" -dependencies = [ - "windows-sys 0.59.0", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" -dependencies = [ - "anstyle", - "windows-sys 0.59.0", -] - -[[package]] -name = "anyhow" -version = "1.0.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" - -[[package]] -name = "autocfg" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" - -[[package]] -name = "backtrace" -version = "0.3.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" -dependencies = [ - "addr2line", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", - "windows-targets", -] - -[[package]] -name = "base64" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ea22880d78093b0cbe17c89f64a7d457941e65759157ec6cb31a31d652b05e5" - -[[package]] -name = "bertie" -version = "0.1.0-pre.2" -dependencies = [ - "backtrace", - "bertie", - "criterion", - "dhat", - "hax-lib 0.1.0-rc.1", - "hex", - "libcrux", - "libcrux-kem 0.0.2-alpha.3", - "rand", - "rayon", - "serde", - "serde_json", - "tracing", -] - -[[package]] -name = "bitflags" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" - -[[package]] -name = "bogo_shim" -version = "0.1.0" -dependencies = [ - "base64", - "bertie", - "rand", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "bumpalo" -version = "3.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" - -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" - -[[package]] -name = "cast" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" - -[[package]] -name = "cc" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" -dependencies = [ - "jobserver", - "libc", - "shlex", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "ciborium" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" -dependencies = [ - "ciborium-io", - "ciborium-ll", - "serde", -] - -[[package]] -name = "ciborium-io" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" - -[[package]] -name = "ciborium-ll" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" -dependencies = [ - "ciborium-io", - "half", -] - -[[package]] -name = "clap" -version = "4.5.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" -dependencies = [ - "clap_builder", - "clap_derive", -] - -[[package]] -name = "clap_builder" -version = "4.5.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" -dependencies = [ - "anstream", - "anstyle", - "clap_lex", - "strsim", -] - -[[package]] -name = "clap_derive" -version = "4.5.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "clap_lex" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" - -[[package]] -name = "colorchoice" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" - -[[package]] -name = "criterion" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f" -dependencies = [ - "anes", - "cast", - "ciborium", - "clap", - "criterion-plot", - "is-terminal", - "itertools", - "num-traits", - "once_cell", - "oorandom", - "plotters", - "rayon", - "regex", - "serde", - "serde_derive", - "serde_json", - "tinytemplate", - "walkdir", -] - -[[package]] -name = "criterion-plot" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" -dependencies = [ - "cast", - "itertools", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" - -[[package]] -name = "crunchy" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" - -[[package]] -name = "dhat" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cd11d84628e233de0ce467de10b8633f4ddaecafadefc86e13b84b8739b827" -dependencies = [ - "backtrace", - "lazy_static", - "mintex", - "parking_lot", - "rustc-hash", - "serde", - "serde_json", - "thousands", -] - -[[package]] -name = "either" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" - -[[package]] -name = "getrandom" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" -dependencies = [ - "cfg-if", - "libc", - "wasi", -] - -[[package]] -name = "gimli" -version = "0.31.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" - -[[package]] -name = "half" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888" -dependencies = [ - "cfg-if", - "crunchy", -] - -[[package]] -name = "hax-lib" -version = "0.1.0-alpha.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7e74ec5c3de03ebab66ad5d0ea0c2be0c45e8ae2396481fbec8a4cbbaaaa25" -dependencies = [ - "hax-lib-macros 0.1.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", - "num-bigint", - "num-traits", -] - -[[package]] -name = "hax-lib" -version = "0.1.0-alpha.1" -source = "git+https://github.com/hacspec/hax/?branch=main#ce1554f401cec551f467a0ad0a4cd400edea5f89" -dependencies = [ - "hax-lib-macros 0.1.0-alpha.1 (git+https://github.com/hacspec/hax/?branch=main)", - "num-bigint", - "num-traits", -] - -[[package]] -name = "hax-lib" -version = "0.1.0-alpha.1" -source = "git+https://github.com/hacspec/hax#ce1554f401cec551f467a0ad0a4cd400edea5f89" -dependencies = [ - "hax-lib-macros 0.1.0-alpha.1 (git+https://github.com/hacspec/hax)", - "num-bigint", - "num-traits", -] - -[[package]] -name = "hax-lib" -version = "0.1.0-rc.1" -source = "git+https://github.com/hacspec/hax/?branch=pq11-fstar-libs#a2dddea3f56c8895b9b9ffd2df817fcd584483a1" -dependencies = [ - "hax-lib-macros 0.1.0-rc.1", - "num-bigint", - "num-traits", -] - -[[package]] -name = "hax-lib-macros" -version = "0.1.0-alpha.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0be907056709acf1db3e0db55ce451aa6bd5a1c1739f49110e6ff7cc60a19177" -dependencies = [ - "hax-lib-macros-types 0.1.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", - "paste", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "hax-lib-macros" -version = "0.1.0-alpha.1" -source = "git+https://github.com/hacspec/hax/?branch=main#ce1554f401cec551f467a0ad0a4cd400edea5f89" -dependencies = [ - "hax-lib-macros-types 0.1.0-alpha.1 (git+https://github.com/hacspec/hax/?branch=main)", - "paste", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "hax-lib-macros" -version = "0.1.0-alpha.1" -source = "git+https://github.com/hacspec/hax#ce1554f401cec551f467a0ad0a4cd400edea5f89" -dependencies = [ - "hax-lib-macros-types 0.1.0-alpha.1 (git+https://github.com/hacspec/hax)", - "paste", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "hax-lib-macros" -version = "0.1.0-rc.1" -source = "git+https://github.com/hacspec/hax/?branch=pq11-fstar-libs#a2dddea3f56c8895b9b9ffd2df817fcd584483a1" -dependencies = [ - "hax-lib-macros-types 0.1.0-rc.1", - "paste", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "hax-lib-macros-types" -version = "0.1.0-alpha.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f85634f7fae96ad7b6bddc68a01f69a6ca81f914cf18fb46e3fb9f50e4624454" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_json", - "uuid", -] - -[[package]] -name = "hax-lib-macros-types" -version = "0.1.0-alpha.1" -source = "git+https://github.com/hacspec/hax/?branch=main#ce1554f401cec551f467a0ad0a4cd400edea5f89" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_json", - "uuid", -] - -[[package]] -name = "hax-lib-macros-types" -version = "0.1.0-alpha.1" -source = "git+https://github.com/hacspec/hax#ce1554f401cec551f467a0ad0a4cd400edea5f89" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_json", - "uuid", -] - -[[package]] -name = "hax-lib-macros-types" -version = "0.1.0-rc.1" -source = "git+https://github.com/hacspec/hax/?branch=pq11-fstar-libs#a2dddea3f56c8895b9b9ffd2df817fcd584483a1" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_json", - "uuid", -] - -[[package]] -name = "heck" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - -[[package]] -name = "hermit-abi" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "integration_tests" -version = "0.1.0" -dependencies = [ - "bertie", - "libcrux-platform 0.0.2-alpha.3", - "rand", - "tracing-subscriber", -] - -[[package]] -name = "is-terminal" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "is_terminal_polyfill" -version = "1.70.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534" - -[[package]] -name = "jobserver" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" -dependencies = [ - "libc", -] - -[[package]] -name = "js-sys" -version = "0.3.72" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" -dependencies = [ - "wasm-bindgen", -] - -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - -[[package]] -name = "libc" -version = "0.2.164" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" - -[[package]] -name = "libcrux" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "hax-lib 0.1.0-alpha.1 (git+https://github.com/hacspec/hax/?branch=main)", - "hax-lib-macros 0.1.0-alpha.1 (git+https://github.com/hacspec/hax/?branch=main)", - "libcrux-ecdh 0.0.2-beta.2", - "libcrux-ed25519", - "libcrux-hacl 0.0.2-beta.2", - "libcrux-hacl-rs", - "libcrux-hkdf", - "libcrux-hmac", - "libcrux-kem 0.0.2-beta.2", - "libcrux-ml-kem 0.0.2-beta.2", - "libcrux-platform 0.0.2-beta.2", - "libcrux-sha2", - "libcrux-traits", - "rand", -] - -[[package]] -name = "libcrux-curve25519" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-hacl-rs", - "libcrux-macros", - "libcrux-sha2", -] - -[[package]] -name = "libcrux-ecdh" -version = "0.0.2-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "706661e22936e496552fb372a97be642707653c5450ee3227a34008675578f4c" -dependencies = [ - "libcrux-hacl 0.0.2-alpha.3", - "rand", -] - -[[package]] -name = "libcrux-ecdh" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-curve25519", - "libcrux-hacl 0.0.2-beta.2", - "rand", -] - -[[package]] -name = "libcrux-ed25519" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-hacl-rs", - "libcrux-macros", - "libcrux-sha2", -] - -[[package]] -name = "libcrux-hacl" -version = "0.0.2-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc642d4586eca52dd453de27f13c241ea70633f1ba8115599ed81a2464516e2d" -dependencies = [ - "cc", - "libcrux-platform 0.0.2-alpha.3", -] - -[[package]] -name = "libcrux-hacl" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "cc", - "libcrux-platform 0.0.2-beta.2", -] - -[[package]] -name = "libcrux-hacl-rs" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-macros", -] - -[[package]] -name = "libcrux-hkdf" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-hacl-rs", - "libcrux-hmac", -] - -[[package]] -name = "libcrux-hmac" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-hacl-rs", - "libcrux-macros", - "libcrux-sha2", -] - -[[package]] -name = "libcrux-intrinsics" -version = "0.0.2-beta.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47721304c578e85827c9efe757f8b4e9c4143a339082f7ea50730c576efa737e" - -[[package]] -name = "libcrux-intrinsics" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" - -[[package]] -name = "libcrux-kem" -version = "0.0.2-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e1b7a21ad6800c4d9f733434ef3a5f5308bddcc741e6e2818173ded756f8893" -dependencies = [ - "libcrux-ecdh 0.0.2-alpha.3", - "libcrux-ml-kem 0.0.2-alpha.3", - "libcrux-sha3 0.0.2-alpha.3", - "rand", -] - -[[package]] -name = "libcrux-kem" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-ecdh 0.0.2-beta.2", - "libcrux-ml-kem 0.0.2-beta.2", - "libcrux-sha3 0.0.2-beta.2", - "rand", -] - -[[package]] -name = "libcrux-macros" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" - -[[package]] -name = "libcrux-ml-kem" -version = "0.0.2-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cac73db2e2fa0382c2f37632e0d1e188201175deda0158b49a2632bc8deefe1" -dependencies = [ - "hax-lib 0.1.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libcrux-intrinsics 0.0.2-beta.2 (registry+https://github.com/rust-lang/crates.io-index)", - "libcrux-platform 0.0.2-alpha.3", - "libcrux-sha3 0.0.2-alpha.3", - "rand_core", -] - -[[package]] -name = "libcrux-ml-kem" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "hax-lib 0.1.0-alpha.1 (git+https://github.com/hacspec/hax)", - "libcrux-intrinsics 0.0.2-beta.2 (git+https://github.com/cryspen/libcrux)", - "libcrux-platform 0.0.2-beta.2", - "libcrux-sha3 0.0.2-beta.2", - "rand", -] - -[[package]] -name = "libcrux-platform" -version = "0.0.2-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61f024adfcf750f591404e7f83034d822c3f88a220cf59c5d7a1f3edfaf3f6d2" -dependencies = [ - "libc", -] - -[[package]] -name = "libcrux-platform" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libc", -] - -[[package]] -name = "libcrux-sha2" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "libcrux-hacl-rs", - "libcrux-macros", - "libcrux-traits", -] - -[[package]] -name = "libcrux-sha3" -version = "0.0.2-alpha.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee374451378a5b7ec908373d03a78cbf050c387cd1996a50724d88a392f4d1a5" -dependencies = [ - "hax-lib 0.1.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", - "libcrux-intrinsics 0.0.2-beta.2 (registry+https://github.com/rust-lang/crates.io-index)", - "libcrux-platform 0.0.2-alpha.3", -] - -[[package]] -name = "libcrux-sha3" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" -dependencies = [ - "hax-lib 0.1.0-alpha.1 (git+https://github.com/hacspec/hax)", - "libcrux-intrinsics 0.0.2-beta.2 (git+https://github.com/cryspen/libcrux)", - "libcrux-platform 0.0.2-beta.2", -] - -[[package]] -name = "libcrux-traits" -version = "0.0.2-beta.2" -source = "git+https://github.com/cryspen/libcrux#2b0c30d9c0f2871cfbcb3b29ac071244ea5c13b8" - -[[package]] -name = "lock_api" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" -dependencies = [ - "autocfg", - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" - -[[package]] -name = "memchr" -version = "2.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" - -[[package]] -name = "miniz_oxide" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" -dependencies = [ - "adler2", -] - -[[package]] -name = "mintex" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bec4598fddb13cc7b528819e697852653252b760f1228b7642679bf2ff2cd07" - -[[package]] -name = "nu-ansi-term" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" -dependencies = [ - "overload", - "winapi", -] - -[[package]] -name = "num-bigint" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" -dependencies = [ - "num-integer", - "num-traits", -] - -[[package]] -name = "num-integer" -version = "0.1.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" -dependencies = [ - "autocfg", -] - -[[package]] -name = "object" -version = "0.36.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" -dependencies = [ - "memchr", -] - -[[package]] -name = "once_cell" -version = "1.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" - -[[package]] -name = "oorandom" -version = "11.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b410bbe7e14ab526a0e86877eb47c6996a2bd7746f027ba551028c925390e4e9" - -[[package]] -name = "overload" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" - -[[package]] -name = "parking_lot" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-targets", -] - -[[package]] -name = "paste" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" - -[[package]] -name = "pin-project-lite" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" - -[[package]] -name = "plotters" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747" -dependencies = [ - "num-traits", - "plotters-backend", - "plotters-svg", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "plotters-backend" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a" - -[[package]] -name = "plotters-svg" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670" -dependencies = [ - "plotters-backend", -] - -[[package]] -name = "ppv-lite86" -version = "0.2.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" -dependencies = [ - "zerocopy", -] - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn 1.0.109", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - -[[package]] -name = "proc-macro2" -version = "1.0.89" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "quote" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom", -] - -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - -[[package]] -name = "record" -version = "0.1.0" -dependencies = [ - "anyhow", - "bertie", - "hex", - "thiserror", - "tracing", -] - -[[package]] -name = "redox_syscall" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" -dependencies = [ - "bitflags", -] - -[[package]] -name = "regex" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" - -[[package]] -name = "rustc-demangle" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" - -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - -[[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 = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - -[[package]] -name = "serde" -version = "1.0.215" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.215" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "serde_json" -version = "1.0.133" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" -dependencies = [ - "itoa", - "memchr", - "ryu", - "serde", -] - -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "simple_https_client" -version = "0.1.0" -dependencies = [ - "anyhow", - "bertie", - "clap", - "hex", - "rand", - "record", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "simple_https_server" -version = "0.1.0" -dependencies = [ - "anyhow", - "bertie", - "clap", - "rand", - "record", - "tracing-subscriber", -] - -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "2.0.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "thiserror" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "thousands" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bf63baf9f5039dadc247375c29eb13706706cfde997d0330d05aa63a77d8820" - -[[package]] -name = "thread_local" -version = "1.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" -dependencies = [ - "cfg-if", - "once_cell", -] - -[[package]] -name = "tinytemplate" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" -dependencies = [ - "serde", - "serde_json", -] - -[[package]] -name = "tracing" -version = "0.1.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" -dependencies = [ - "pin-project-lite", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.87", -] - -[[package]] -name = "tracing-core" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" -dependencies = [ - "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" -dependencies = [ - "nu-ansi-term", - "sharded-slab", - "smallvec", - "thread_local", - "tracing-core", - "tracing-log", -] - -[[package]] -name = "unicode-ident" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" - -[[package]] -name = "utf8parse" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" - -[[package]] -name = "uuid" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" -dependencies = [ - "getrandom", -] - -[[package]] -name = "valuable" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" - -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[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.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" -dependencies = [ - "cfg-if", - "once_cell", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" -dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.87", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.87", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" - -[[package]] -name = "web-sys" -version = "0.3.72" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[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 = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[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" - -[[package]] -name = "zerocopy" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" -dependencies = [ - "byteorder", - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.87", -] diff --git a/Cargo.toml b/Cargo.toml index 9cf6bf67..c9bb07ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,15 +17,16 @@ backtrace = "0.3.0" rand = "0.8.0" hex = "0.4.3" tracing = "0.1" -libcrux-kem = {version = "0.0.2-alpha.1", features = ["pre-verification", "kyber"]} -libcrux = { version = "0.0.2-alpha.1", features = [ +libcrux-kem = { git = "https://github.com/cryspen/libcrux", features = ["kyber"]} +libcrux = { git = "https://github.com/cryspen/libcrux", features = [ "rand", ]} hax-lib = { git = "https://github.com/hacspec/hax/", branch= "pq11-fstar-libs" } [features] -default = ["api"] +default = ["api", "std"] +std = [] test_utils = [] secret_integers = [] api = [] # The streaming Rust API that everyone should use but is not hacspec. @@ -65,8 +66,5 @@ default-members = [ "integration_tests", ] -[patch.crates-io] -libcrux = { git = "https://github.com/cryspen/libcrux" } - [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(bench)'] } diff --git a/integration_tests/Cargo.toml b/integration_tests/Cargo.toml index 2acab70f..a082df44 100644 --- a/integration_tests/Cargo.toml +++ b/integration_tests/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] bertie = { version = "0.1.0-pre.2", path = ".." } -libcrux-platform = "0.0.2-alpha.1" +libcrux-platform = { git = "https://github.com/cryspen/libcrux" } tracing-subscriber = "0.3" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 100ae668..94ee2dab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,6 +26,16 @@ // FIXME(performance) #![allow(clippy::large_enum_variant)] #![allow(clippy::zero_prefixed_literal)] +#![no_std] + +#[cfg(feature = "std")] +extern crate std; + +#[cfg(not(feature = "std"))] +extern crate alloc; + +#[cfg(not(feature = "std"))] +use alloc as std; mod tls13formats; mod tls13handshake; @@ -47,12 +57,12 @@ pub use tls13formats::{ bench_parse_server_hello, HandshakeData, }; -#[cfg(test)] +#[cfg(all(test, feature = "std"))] mod test_tls13traces_internal; // === Public API that is NOT in hacspec -#[cfg(feature = "api")] +#[cfg(all(feature = "api", feature = "std"))] pub mod stream; #[cfg(feature = "test_utils")] diff --git a/src/stream/bertie_stream.rs b/src/stream/bertie_stream.rs index 9ec367b8..321bc426 100644 --- a/src/stream/bertie_stream.rs +++ b/src/stream/bertie_stream.rs @@ -1,6 +1,9 @@ use std::{ convert::TryInto, + eprintln, io::{Read, Write}, + string::String, + vec::Vec, }; use crate::{tls13crypto::*, tls13utils::*}; diff --git a/src/stream/client.rs b/src/stream/client.rs index 10504479..89525ce4 100644 --- a/src/stream/client.rs +++ b/src/stream/client.rs @@ -4,8 +4,13 @@ use rand::{CryptoRng, RngCore}; use std::{ + eprintln, io::{Read, Write}, net::TcpStream, + println, + string::ToString, + vec, + vec::Vec, }; // use tracing::{event, Level}; @@ -235,6 +240,7 @@ mod tests { use crate::tls13crypto::SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_X25519; use super::*; + use std::{format, string::String}; #[test] fn client() { diff --git a/src/stream/server.rs b/src/stream/server.rs index 88e90980..ec00a4ea 100644 --- a/src/stream/server.rs +++ b/src/stream/server.rs @@ -1,7 +1,11 @@ use std::{ + eprintln, fs::File, io::{BufReader, Read, Write}, net::TcpStream, + string::ToString, + vec, + vec::Vec, }; use rand::{CryptoRng, RngCore}; diff --git a/src/test_tls13traces_internal.rs b/src/test_tls13traces_internal.rs index 7056f8d1..4fe0fe28 100644 --- a/src/test_tls13traces_internal.rs +++ b/src/test_tls13traces_internal.rs @@ -1,5 +1,7 @@ #![allow(dead_code)] +use std::println; + use crate::tls13handshake::*; use crate::tls13utils::*; use crate::{ diff --git a/src/test_utils.rs b/src/test_utils.rs index e09dca26..c151c757 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -1,3 +1,4 @@ +use crate::std::vec::Vec; use rand::{CryptoRng, RngCore}; pub struct TestRng { diff --git a/src/tls13api.rs b/src/tls13api.rs index cbe6d2ff..51ab6c2a 100644 --- a/src/tls13api.rs +++ b/src/tls13api.rs @@ -139,10 +139,7 @@ impl Client { ContentType::ApplicationData => { Ok((Some(AppData::new(hd)), Client::Client1(state, cipher1))) } - ContentType::Handshake => { - eprintln!("Received Session Ticket"); - Ok((None, Client::Client1(state, cipher1))) - } + ContentType::Handshake => Ok((None, Client::Client1(state, cipher1))), _ => Err(PARSE_FAILED), } } diff --git a/src/tls13cert.rs b/src/tls13cert.rs index 385fa4a4..b42df80f 100644 --- a/src/tls13cert.rs +++ b/src/tls13cert.rs @@ -386,10 +386,10 @@ pub(crate) fn rsa_public_key( } /// Debug print a slice. -#[cfg(test)] +#[cfg(all(test, feature = "std"))] #[allow(dead_code)] fn debug_print(tag: &str, bytes: &Bytes, offset: usize) { - eprintln!( + std::eprintln!( "{}: {}", tag, bytes.slice(offset, bytes.len() - offset).as_hex() @@ -457,10 +457,12 @@ mod unit_test { match spki { Ok(spki) => { let pk = cert_public_key(cert, &spki).expect("Error reading public key from cert"); - println!("Got pk {:?}", pk); + #[cfg(feature = "std")] + std::println!("Got pk {:?}", pk); } Err(e) => { - println!("verif key extraction error {}", e); + #[cfg(feature = "std")] + std::println!("verif key extraction error {}", e); panic!() } } @@ -480,13 +482,14 @@ mod unit_test { } #[test] + #[cfg(feature = "std")] fn read_cert() { let files = fs::read_dir("test_certs").expect("Error listing files."); for file in files { let file = file.expect("Error reading file ...").path(); let mut f = fs::File::open(file.clone()) .unwrap_or_else(|_| panic!("Didn't find the file {}.", file.display())); - let mut bytes = Vec::new(); + let mut bytes = std::vec::Vec::new(); f.read_to_end(&mut bytes) .unwrap_or_else(|_| panic!("Error reading file {}", file.display())); test(&bytes.into()); diff --git a/src/tls13crypto.rs b/src/tls13crypto.rs index 12cd8059..a6eae1d6 100644 --- a/src/tls13crypto.rs +++ b/src/tls13crypto.rs @@ -4,7 +4,8 @@ use libcrux::{ }; use libcrux_kem::{Ct, PrivateKey, PublicKey}; use rand::{CryptoRng, RngCore}; -use std::fmt::Display; + +use crate::std::{fmt::Display, format, vec::Vec}; use crate::tls13utils::{ check_mem, eq, length_u16_encoded, tlserr, Bytes, Error, TLSError, CRYPTO_ERROR, @@ -766,7 +767,7 @@ impl TryFrom<&str> for Algorithms { } impl Display for Algorithms { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + fn fmt(&self, f: &mut crate::std::fmt::Formatter<'_>) -> crate::std::fmt::Result { write!( f, "TLS_{:?}_{:?} w/ {:?} | {:?}", diff --git a/src/tls13utils.rs b/src/tls13utils.rs index ba45862e..2b1969aa 100644 --- a/src/tls13utils.rs +++ b/src/tls13utils.rs @@ -1,5 +1,7 @@ use core::ops::Range; +use crate::std::{format, string::String, vec, vec::Vec}; + // FIXME: NOT HACSPEC | ONLY FOR DEBUGGING pub(crate) fn parse_failed() -> TLSError { // let bt = backtrace::Backtrace::new(); @@ -51,14 +53,8 @@ pub(crate) fn tlserr(err: TLSError) -> Result { #[cfg(test)] pub(crate) fn tlserr(err: TLSError) -> Result { let bt = backtrace::Backtrace::new(); - println!("{:?}", bt); Err(err) } -/* -pub(crate) fn check_eq_size(s1: TLSError, s2: usize) -> Result<()> { - if s1 == s2 {Ok(())} - else {Err(parse_failed())} -}*/ #[cfg(feature = "secret_integers")] #[derive(Clone, Copy, PartialEq, Debug)]