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

EncryptedValueBuilder

public class EncryptedValueBuilder

public EncryptedValue Build(char[] revocationPassphrase)

Build an EncryptedValue structure containing the certificate contained in the passed in holder.

public EncryptedValue Build(PrivateKeyInfo privateKeyInfo)

Build an EncryptedValue structure containing the private key contained in the passed info structure.