diff --git a/Cargo.toml b/Cargo.toml index 29baafe..7fa7cdd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cryptohelpers" -version = "1.5.0" +version = "1.5.1" license= "MIT" description = "Collection of helpers and simplifying functions for cryptography things" authors = ["Avril "] diff --git a/src/rsa/private.rs b/src/rsa/private.rs index dc961b8..6b31bfc 100644 --- a/src/rsa/private.rs +++ b/src/rsa/private.rs @@ -158,7 +158,7 @@ impl RsaPrivateKey } /// Try to create an instance from PEM, requesting password if needed - pub fn from_pem(&self, pem: impl AsRef, pw: F) -> Result + pub fn from_pem(pem: impl AsRef, pw: F) -> Result where F: FnOnce() -> Option { let pem = pem.as_ref().as_bytes();