Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elliptic-curve v0.11.10 #923

Closed
wants to merge 2 commits into from
Closed
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
4 changes: 4 additions & 0 deletions elliptic-curve/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.11.10 (2022-01-27)
### Changed
- Revert [#884] to support a wider range of `zeroize` versions.

## 0.11.9 (2022-01-17)
### Changed
- Activate `bits`, `hash2curve`, and `voprf` features on docs.rs ([#891])
Expand Down
6 changes: 3 additions & 3 deletions elliptic-curve/Cargo.lock

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

4 changes: 2 additions & 2 deletions elliptic-curve/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "elliptic-curve"
version = "0.11.9" # Also update html_root_url in lib.rs when bumping this
version = "0.11.10" # Also update html_root_url in lib.rs when bumping this
description = """
General purpose Elliptic Curve Cryptography (ECC) support, including types
and traits for representing various elliptic curve forms, scalars, points,
Expand All @@ -26,7 +26,7 @@ der = { version = "0.5", default-features = false, features = ["oid"] }
generic-array = { version = "0.14", default-features = false }
rand_core = { version = "0.6", default-features = false }
subtle = { version = "2", default-features = false }
zeroize = { version = "1.5", default-features = false }
zeroize = { version = "1", default-features = false }

# optional dependencies
base64ct = { version = "1", optional = true, default-features = false }
Expand Down
6 changes: 1 addition & 5 deletions elliptic-curve/src/ecdh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use crate::{
use core::borrow::Borrow;
use group::Curve as _;
use rand_core::{CryptoRng, RngCore};
use zeroize::{Zeroize, ZeroizeOnDrop};
use zeroize::Zeroize;

/// Low-level Elliptic Curve Diffie-Hellman (ECDH) function.
///
Expand Down Expand Up @@ -138,8 +138,6 @@ where
}
}

impl<C> ZeroizeOnDrop for EphemeralSecret<C> where C: Curve + ProjectiveArithmetic {}

impl<C> Drop for EphemeralSecret<C>
where
C: Curve + ProjectiveArithmetic,
Expand Down Expand Up @@ -210,8 +208,6 @@ impl<C: Curve> Zeroize for SharedSecret<C> {
}
}

impl<C: Curve> ZeroizeOnDrop for SharedSecret<C> {}

impl<C: Curve> Drop for SharedSecret<C> {
fn drop(&mut self) {
self.zeroize();
Expand Down
4 changes: 1 addition & 3 deletions elliptic-curve/src/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use core::{
str::{self, FromStr},
};
use serde::{de, ser, Deserialize, Serialize};
use zeroize::{Zeroize, ZeroizeOnDrop};
use zeroize::Zeroize;

#[cfg(feature = "arithmetic")]
use crate::{
Expand Down Expand Up @@ -345,8 +345,6 @@ impl PartialEq for JwkEcKey {

impl Eq for JwkEcKey {}

impl ZeroizeOnDrop for JwkEcKey {}

impl Drop for JwkEcKey {
fn drop(&mut self) {
self.zeroize();
Expand Down
2 changes: 1 addition & 1 deletion elliptic-curve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/8f1a9894/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/8f1a9894/logo.svg",
html_root_url = "https://docs.rs/elliptic-curve/0.11.9"
html_root_url = "https://docs.rs/elliptic-curve/0.11.10"
)]
#![doc = include_str!("../README.md")]

Expand Down
4 changes: 1 addition & 3 deletions elliptic-curve/src/secret_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use core::fmt::{self, Debug};
use crypto_bigint::Encoding;
use generic_array::GenericArray;
use subtle::{Choice, ConstantTimeEq};
use zeroize::{Zeroize, ZeroizeOnDrop};
use zeroize::Zeroize;

#[cfg(all(feature = "alloc", feature = "arithmetic"))]
use {
Expand Down Expand Up @@ -325,8 +325,6 @@ where
}
}

impl<C> ZeroizeOnDrop for SecretKey<C> where C: Curve {}

impl<C> Drop for SecretKey<C>
where
C: Curve,
Expand Down