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

Org.BouncyCastle.Bcpg.S2k

public class S2k : BcpgObject
namespace Org.BouncyCastle.Bcpg { public class S2k : BcpgObject { public const int Simple = 0; public const int Salted = 1; public const int SaltedAndIterated = 3; public const int GnuDummyS2K = 101; public const int GnuProtectionModeNoPrivateKey = 1; public const int GnuProtectionModeDivertToCard = 2; public virtual int Type { get; } public virtual HashAlgorithmTag HashAlgorithm { get; } public virtual long IterationCount { get; } public virtual int ProtectionMode { get; } public S2k(HashAlgorithmTag algorithm); public S2k(HashAlgorithmTag algorithm, byte[] iv); public S2k(HashAlgorithmTag algorithm, byte[] iv, int itCount); public virtual byte[] GetIV(); } }