pub trait GeneratePkcs8 {
    // Required method
    fn generate_pkcs8() -> SecretDocument;
}
Expand description

Trait for generating PKCS#8-encoded private keys.

Required Methods§

source

fn generate_pkcs8() -> SecretDocument

Randomly generate a new PKCS#8 private key.

Implementors§

source§

impl GeneratePkcs8 for signatory::ecdsa::nistp256::SigningKey

Available on crate features nistp256 and ecdsa and std only.
source§

impl GeneratePkcs8 for signatory::ecdsa::nistp384::SigningKey

Available on crate features nistp384 and ecdsa and std only.
source§

impl GeneratePkcs8 for signatory::ecdsa::secp256k1::SigningKey

Available on crate features secp256k1 and ecdsa and std only.
source§

impl GeneratePkcs8 for signatory::ed25519::SigningKey

Available on crate features ed25519 and std only.