Skip to content

Commit f0be052

Browse files
committed
Add deprecation notice to is_valid
Adding deprecation notice as suggested [here](#332 (comment)). Signed-off-by: Ionut Mihalcea <[email protected]>
1 parent 6b20769 commit f0be052

File tree

1 file changed

+4
-0
lines changed
  • tss-esapi/src/structures/tagged/public

1 file changed

+4
-0
lines changed

tss-esapi/src/structures/tagged/public/rsa.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ impl RsaExponent {
248248
}
249249

250250
/// No-op. Does not check whether the value is a valid exponent for RSA.
251+
#[deprecated(
252+
since = "7.0.1",
253+
note = "TPMs are only mandated to support 0 as an exponent, with support for and checking of other values being done differently by each manufacturer. See discussion here: https://github.com/parallaxsecond/rust-tss-esapi/pull/332"
254+
)]
251255
pub fn is_valid(_: u32) -> bool {
252256
true
253257
}

0 commit comments

Comments
 (0)