[−][src]Trait signatory::encoding::pkcs8::FromPkcs8
Load this type from a PKCS#8 private key
Required methods
fn from_pkcs8<K: AsRef<[u8]>>(secret_key: K) -> Result<Self, Error>
Load from the given PKCS#8-encoded private key, returning Self
or an error if the given data couldn't be loaded.
Provided methods
fn read_pkcs8<R: Read>(reader: R) -> Result<Self, Error>
Read PKCS#8 data from the given std::io::Read
.
fn from_pkcs8_file<P: AsRef<Path>>(path: P) -> Result<Self, Error>
Read PKCS#8 data from the file at the given path.