pub trait Encode: Sealed {
// Required methods
fn as_pkcs1(&self) -> Result<Vec<u8>, Error>;
fn as_pkcs8(&self) -> Result<Vec<u8>, Error>;
}
Expand description
Trait for encoding the keys
pub trait Encode: Sealed {
// Required methods
fn as_pkcs1(&self) -> Result<Vec<u8>, Error>;
fn as_pkcs8(&self) -> Result<Vec<u8>, Error>;
}
Trait for encoding the keys