<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.OpenSsl.Pkcs8Generator

namespace Org.BouncyCastle.OpenSsl { public class Pkcs8Generator : PemObjectGenerator { public static readonly DerObjectIdentifier PbeWithShaAnd128BitRC4; public static readonly DerObjectIdentifier PbeWithShaAnd40BitRC4; public static readonly DerObjectIdentifier PbeWithShaAnd3KeyTripleDesCbc; public static readonly DerObjectIdentifier PbeWithShaAnd2KeyTripleDesCbc; public static readonly DerObjectIdentifier PbeWithShaAnd128BitRC2Cbc; public static readonly DerObjectIdentifier PbewithShaAnd40BitRC2Cbc; public static readonly string PbeSha1_RC4_128; public static readonly string PbeSha1_RC4_40; public static readonly string PbeSha1_3DES; public static readonly string PbeSha1_2DES; public static readonly string PbeSha1_RC2_128; public static readonly string PbeSha1_RC2_40; public SecureRandom SecureRandom { set; } public char[] Password { set; } public int IterationCount { set; } public Pkcs8Generator(AsymmetricKeyParameter privKey); public Pkcs8Generator(AsymmetricKeyParameter privKey, string algorithm); public Pkcs8Generator(AsymmetricKeyParameter privKey, DerObjectIdentifier algorithm); public PemObject Generate(); } }