mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 10:40:52 +02:00
Rust wrapper: remove outdated set_rng safety contract comments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user