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

S2k

public class S2k : BcpgObject
public const int GnuDummyS2K = 101

public const int GnuProtectionModeDivertToCard = 2

public const int GnuProtectionModeNoPrivateKey = 1

public const int Salted = 1

public const int SaltedAndIterated = 3

public const int Simple = 0

public virtual HashAlgorithmTag HashAlgorithm { get; }

The hash algorithm.

public virtual long IterationCount { get; }

The iteration count

public virtual int ProtectionMode { get; }

The protection mode - only if GnuDummyS2K

public virtual int Type { get; }

public S2k(HashAlgorithmTag algorithm)

public S2k(HashAlgorithmTag algorithm, byte[] iv)

public S2k(HashAlgorithmTag algorithm, byte[] iv, int itCount)

public virtual byte[] GetIV()

The IV for the key generation algorithm.