pub trait GeneratePkcs8 {
// Required method
fn generate_pkcs8() -> SecretDocument;
}
Expand description
Trait for generating PKCS#8-encoded private keys.
Required Methods§
Sourcefn generate_pkcs8() -> SecretDocument
fn generate_pkcs8() -> SecretDocument
Randomly generate a new PKCS#8 private key.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.