Struct minisign::SecretKeyBox [−][src]
pub struct SecretKeyBox(_);
A secret key and its metadata.
A SecretKeyBox
represents a raw secret key, along with a key
identifier, an untrusted description, and information required to
decrypt it using a password.
This is what usually gets exported to disk.
A SecretKeyBox
can be directly converted to/from a single-line string.
Implementations
impl SecretKeyBox
[src]
impl SecretKeyBox
[src]pub fn from_string(s: &str) -> Result<SecretKeyBox>
[src]
Create a new SecretKeyBox
from a string.
pub fn into_string(self) -> String
[src]
Return a SecretKeyBox
for a string, for storage.
pub fn into_secret_key(self, password: Option<String>) -> Result<SecretKey>
[src]
Convert a SecretKeyBox
to a string, for storage.
pub fn to_bytes(&self) -> Vec<u8>
[src]
Return a byte representation of the secret key, for storage.
Trait Implementations
impl Clone for SecretKeyBox
[src]
impl Clone for SecretKeyBox
[src]fn clone(&self) -> SecretKeyBox
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SecretKeyBox
impl RefUnwindSafe for SecretKeyBox
impl Send for SecretKeyBox
impl Send for SecretKeyBox
impl Sync for SecretKeyBox
impl Sync for SecretKeyBox
impl Unpin for SecretKeyBox
impl Unpin for SecretKeyBox
impl UnwindSafe for SecretKeyBox
impl UnwindSafe for SecretKeyBox