pub struct Sm9SignKey { /* private fields */ }Implementations§
Source§impl Sm9SignKey
impl Sm9SignKey
Sourcepub fn from_encrypted_pem(
pem_data: &[u8],
password: &str,
) -> Result<Self, GmsslError>
pub fn from_encrypted_pem( pem_data: &[u8], password: &str, ) -> Result<Self, GmsslError>
Import from encrypted PEM (in-memory).
Sourcepub fn to_encrypted_pem(&self, password: &str) -> Result<Vec<u8>, GmsslError>
pub fn to_encrypted_pem(&self, password: &str) -> Result<Vec<u8>, GmsslError>
Export to encrypted PEM (in-memory).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sm9SignKey
impl RefUnwindSafe for Sm9SignKey
impl Send for Sm9SignKey
impl Sync for Sm9SignKey
impl Unpin for Sm9SignKey
impl UnsafeUnpin for Sm9SignKey
impl UnwindSafe for Sm9SignKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more