Skip to content

Commit 37a920c

Browse files
committed
fixes
1 parent 2517960 commit 37a920c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openssl/src/pkey_ctx.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl<T> PkeyCtxRef<T>
141141
where
142142
T: HasPrivate,
143143
{
144-
/// Prepares the context for encryption using the private key.
144+
/// Prepares the context for decryption using the private key.
145145
#[corresponds(EVP_PKEY_decrypt_init)]
146146
#[inline]
147147
pub fn decrypt_init(&mut self) -> Result<(), ErrorStack> {
@@ -211,6 +211,7 @@ impl<T> PkeyCtxRef<T> {
211211

212212
/// Prepares the context for key generation.
213213
#[corresponds(EVP_PKEY_keygen_init)]
214+
#[inline]
214215
pub fn keygen_init(&mut self) -> Result<(), ErrorStack> {
215216
unsafe {
216217
cvt(ffi::EVP_PKEY_keygen_init(self.as_ptr()))?;

0 commit comments

Comments
 (0)