Skip to content

Commit 40a58a9

Browse files
authored
Remove deprecated pkcs1v15 methods (#524)
In `rsa` v0.9 we changed these types to be prefixed-by-default, but retained and deprecated the `*_with_prefix` method names. Now that `master` is tracking the v0.10 release, we can remove these.
1 parent a5d5618 commit 40a58a9

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

src/pkcs1v15.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ impl Pkcs1v15Sign {
8989
prefix: Box::new([]),
9090
}
9191
}
92-
93-
/// Create new PKCS#1 v1.5 padding for computing an unprefixed signature.
94-
///
95-
/// This sets `hash_len` to `None` and uses an empty `prefix`.
96-
#[deprecated(since = "0.9.0", note = "use Pkcs1v15Sign::new_unprefixed instead")]
97-
pub fn new_raw() -> Self {
98-
Self::new_unprefixed()
99-
}
10092
}
10193

10294
impl SignatureScheme for Pkcs1v15Sign {

src/pkcs1v15/signing_key.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,6 @@ where
5656
phantom: Default::default(),
5757
})
5858
}
59-
60-
/// Create a new signing key with a prefix for the digest `D`.
61-
#[deprecated(since = "0.9.0", note = "use SigningKey::new instead")]
62-
pub fn new_with_prefix(key: RsaPrivateKey) -> Self {
63-
Self::new(key)
64-
}
65-
66-
/// Generate a new signing key with a prefix for the digest `D`.
67-
#[deprecated(since = "0.9.0", note = "use SigningKey::random instead")]
68-
pub fn random_with_prefix<R: CryptoRng + ?Sized>(rng: &mut R, bit_size: usize) -> Result<Self> {
69-
Self::random(rng, bit_size)
70-
}
7159
}
7260

7361
impl<D> SigningKey<D>

src/pkcs1v15/verifying_key.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ where
4545
phantom: Default::default(),
4646
}
4747
}
48-
49-
/// Create a new verifying key with a prefix for the digest `D`.
50-
#[deprecated(since = "0.9.0", note = "use VerifyingKey::new instead")]
51-
pub fn new_with_prefix(key: RsaPublicKey) -> Self {
52-
Self::new(key)
53-
}
5448
}
5549

5650
impl<D> VerifyingKey<D>

0 commit comments

Comments
 (0)