diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/sec1 | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/sec1')
-rw-r--r-- | vendor/sec1/.cargo-checksum.json | 2 | ||||
-rw-r--r-- | vendor/sec1/CHANGELOG.md | 6 | ||||
-rw-r--r-- | vendor/sec1/Cargo.toml | 4 | ||||
-rw-r--r-- | vendor/sec1/src/point.rs | 10 |
4 files changed, 19 insertions, 3 deletions
diff --git a/vendor/sec1/.cargo-checksum.json b/vendor/sec1/.cargo-checksum.json index 4076cc2c7..ab3fe6313 100644 --- a/vendor/sec1/.cargo-checksum.json +++ b/vendor/sec1/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CHANGELOG.md":"891e11e2b344c89fbc8248437a7bc68e73b5ac85446ca0d8460f346942523371","Cargo.toml":"cc4365ee90c755c8b71cda0d78a8f4ac0c5da6f897ac49ddce309f460aa4fffd","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"4a883ecc3bb1010faed542bf63d53e530fea5e5e12cf676aed588784298ba929","README.md":"f4cb78d53d52f2a44d2336e4c3dc29f10f62f2636f6db0757e0b6edb94d6e52b","src/error.rs":"a59b7e2881f9caf4f932d11eedaedaa9eb34797e652c6d363b11b604848f7d2d","src/lib.rs":"43415382857e83d425069163323a341624ae80a7282ab01c2a43519aee4472db","src/parameters.rs":"f186cde9c122319b4d408b1ad8090cbc9f6bc817ee7c761c0dbf6868131e2259","src/point.rs":"29b77d471d36adfc1760c9fa7061d6c08282c6c8070b30f355ba2485e9335114","src/private_key.rs":"daac1e9b5e87af5f7bcde728b6711cae5b04188ae683aea43478a85e53b76276","src/traits.rs":"b554960b3ceb586871f2febd403288bbc4c104fa1ad3a14b67b3f91a9dfb2f3b","tests/examples/p256-priv.der":"36186d76a14000b87c31162269207a757dc147668219c1adcdcdc25fa6f04a8d","tests/examples/p256-priv.pem":"7f9b6b52c303da1ad081a416e3b159109d158338374de902099877dbd1102dc8","tests/private_key.rs":"9a43eb7673d0acde453c47581eec93463b7b2adca41bf210154695a971966de1","tests/traits.rs":"837859875b3d6cabd6d2e1d16c6bb686be0be838f11b924adbfad0793b54f6fb"},"package":"f0aec48e813d6b90b15f0b8948af3c63483992dee44c03e9930b3eebdabe046e"}
\ No newline at end of file +{"files":{"CHANGELOG.md":"2b3e288a2da4733e1286829facc55fef0466ec25dd896079855d7cb930ce624b","Cargo.toml":"24a70b7095f9fd000e904aea11d5c67846e1aa252962d73c2d85085da49593aa","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"4a883ecc3bb1010faed542bf63d53e530fea5e5e12cf676aed588784298ba929","README.md":"f4cb78d53d52f2a44d2336e4c3dc29f10f62f2636f6db0757e0b6edb94d6e52b","src/error.rs":"a59b7e2881f9caf4f932d11eedaedaa9eb34797e652c6d363b11b604848f7d2d","src/lib.rs":"43415382857e83d425069163323a341624ae80a7282ab01c2a43519aee4472db","src/parameters.rs":"f186cde9c122319b4d408b1ad8090cbc9f6bc817ee7c761c0dbf6868131e2259","src/point.rs":"9bb2bcf504594606ae21914349f3e78e1c63c174a8f4b9312f22a6069ee226ac","src/private_key.rs":"daac1e9b5e87af5f7bcde728b6711cae5b04188ae683aea43478a85e53b76276","src/traits.rs":"b554960b3ceb586871f2febd403288bbc4c104fa1ad3a14b67b3f91a9dfb2f3b","tests/examples/p256-priv.der":"36186d76a14000b87c31162269207a757dc147668219c1adcdcdc25fa6f04a8d","tests/examples/p256-priv.pem":"7f9b6b52c303da1ad081a416e3b159109d158338374de902099877dbd1102dc8","tests/private_key.rs":"9a43eb7673d0acde453c47581eec93463b7b2adca41bf210154695a971966de1","tests/traits.rs":"837859875b3d6cabd6d2e1d16c6bb686be0be838f11b924adbfad0793b54f6fb"},"package":"d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"}
\ No newline at end of file diff --git a/vendor/sec1/CHANGELOG.md b/vendor/sec1/CHANGELOG.md index 97d91f80d..44a0fc9d5 100644 --- a/vendor/sec1/CHANGELOG.md +++ b/vendor/sec1/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.7.3 (2023-07-16) +### Added +- Impl `Hash` for `EncodedPoint` ([#1102]) + +[#1102]: https://github.com/RustCrypto/formats/pull/1102 + ## 0.7.2 (2023-04-09) ### Added - Impl `ModulusSize` for `U24` ([#995]) diff --git a/vendor/sec1/Cargo.toml b/vendor/sec1/Cargo.toml index db8458d1e..c640dea2f 100644 --- a/vendor/sec1/Cargo.toml +++ b/vendor/sec1/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" rust-version = "1.65" name = "sec1" -version = "0.7.2" +version = "0.7.3" authors = ["RustCrypto Developers"] description = """ Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats @@ -81,7 +81,7 @@ optional = true default-features = false [dev-dependencies.hex-literal] -version = "0.3" +version = "0.4" [dev-dependencies.tempfile] version = "3" diff --git a/vendor/sec1/src/point.rs b/vendor/sec1/src/point.rs index fb0e04564..818f5bda7 100644 --- a/vendor/sec1/src/point.rs +++ b/vendor/sec1/src/point.rs @@ -10,6 +10,7 @@ use base16ct::HexDisplay; use core::{ cmp::Ordering, fmt::{self, Debug}, + hash::{Hash, Hasher}, ops::Add, str, }; @@ -294,6 +295,15 @@ where } } +impl<Size> Hash for EncodedPoint<Size> +where + Size: ModulusSize, +{ + fn hash<H: Hasher>(&self, state: &mut H) { + self.as_bytes().hash(state) + } +} + impl<Size: ModulusSize> PartialOrd for EncodedPoint<Size> where Size: ModulusSize, |