Skip to content

Commit

Permalink
small documentation and RsaMethod is public
Browse files Browse the repository at this point in the history
  • Loading branch information
brimonk committed Apr 11, 2024
1 parent 783d304 commit 8fc693c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion openssl/src/rsa_meth.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
//! RSA Methods
//!
//! The [`RsaMethod`] type is a structure used for the provisioning of custom RSA implementations.
//! It provides a set of functions used by OpenSSL for the implementation of the various RSA
//! capabilities. See the wrapper's [RSA](/rsa) documentation, or the manual's documentation
//! [`RSA_METHOD`](https://www.openssl.org/docs/man1.1.1/man3/RSA_meth_new.html) for more details.

use crate::error::ErrorStack;
use crate::{cvt, cvt_p, cvt_p_const};
use ffi::{BIGNUM, BN_CTX, BN_GENCB, BN_MONT_CTX, RSA};
use openssl_macros::corresponds;
use std::ffi::{c_int, c_uchar, c_uint, c_void, CStr, CString};

struct RsaMethod(*mut ffi::RSA_METHOD);
pub struct RsaMethod(*mut ffi::RSA_METHOD);

impl RsaMethod {
/// Creates a new `RSA_METHOD` structure.
Expand Down

0 comments on commit 8fc693c

Please sign in to comment.