tokio-1.0
Avril 4 years ago
parent f55ca93eee
commit 8044422747
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -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 <flanchan@cumallover.me>"]

@ -158,7 +158,7 @@ impl RsaPrivateKey
}
/// Try to create an instance from PEM, requesting password if needed
pub fn from_pem<F>(&self, pem: impl AsRef<str>, pw: F) -> Result<Self, Error>
pub fn from_pem<F>(pem: impl AsRef<str>, pw: F) -> Result<Self, Error>
where F: FnOnce() -> Option<Password>
{
let pem = pem.as_ref().as_bytes();

Loading…
Cancel
Save