Rust wrapper: remove outdated set_rng safety contract comments

This commit is contained in:
Josh Holtrop
2026-05-07 06:40:17 -04:00
parent 5a45fabb0d
commit 93db87e4ed
2 changed files with 0 additions and 14 deletions
@@ -1685,13 +1685,6 @@ impl ECC {
/// * `rng`: The `RNG` struct instance to associate with this `ECC`
/// instance.
///
/// # Safety contract
///
/// The caller must ensure that the `RNG` instance is not dropped before
/// this `ECC` instance. The `ECC` struct holds an internal pointer to the
/// `RNG`'s underlying `WC_RNG` context, and dropping the `RNG` first
/// would result in a dangling pointer.
///
/// # Returns
///
/// Returns Ok(()) on success or Err(e) containing the wolfSSL library
@@ -1187,13 +1187,6 @@ impl RSA {
/// * `rng`: The `RNG` struct instance to associate with this `RSA`
/// instance.
///
/// # Safety contract
///
/// The caller must ensure that the `RNG` instance is not dropped before
/// this `RSA` instance. The `RSA` struct holds an internal pointer to the
/// `RNG`'s underlying `WC_RNG` context, and dropping the `RNG` first
/// would result in a dangling pointer.
///
/// # Returns
///
/// Returns Ok(()) on success or Err(e) containing the wolfSSL library