<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.11" />

System.Security.Cryptography.Pkcs.Pkcs12ShroudedKeyBag

public sealed class Pkcs12ShroudedKeyBag : Pkcs12SafeBag
Represents the ShroudedKeyBag from PKCS#12, a container whose contents are a PKCS#8 EncryptedPrivateKeyInfo. This class cannot be inherited.

Gets a memory value containing the PKCS#8 EncryptedPrivateKeyInfo value transported by this bag.

public Pkcs12ShroudedKeyBag(ReadOnlyMemory<byte> encryptedPkcs8PrivateKey, bool skipCopy = false)

Initializes a new instance of the Pkcs12ShroudedKeyBag from an existing encoded PKCS#8 EncryptedPrivateKeyInfo value.