Class S2k
- Namespace
- Org.BouncyCastle.Bcpg
- Assembly
- BouncyCastle.Cryptography.dll
public class S2k : BcpgObject
- Inheritance
-
S2k
- Inherited Members
Remarks
The string to key specifier class.
Constructors
S2k(HashAlgorithmTag)
public S2k(HashAlgorithmTag algorithm)
Parameters
algorithmHashAlgorithmTag
S2k(HashAlgorithmTag, byte[])
public S2k(HashAlgorithmTag algorithm, byte[] iv)
Parameters
algorithmHashAlgorithmTagivbyte[]
S2k(HashAlgorithmTag, byte[], int)
public S2k(HashAlgorithmTag algorithm, byte[] iv, int itCount)
Parameters
algorithmHashAlgorithmTagivbyte[]itCountint
Fields
GnuDummyS2K
public const int GnuDummyS2K = 101
Field Value
GnuProtectionModeDivertToCard
public const int GnuProtectionModeDivertToCard = 2
Field Value
GnuProtectionModeNoPrivateKey
public const int GnuProtectionModeNoPrivateKey = 1
Field Value
Salted
public const int Salted = 1
Field Value
SaltedAndIterated
public const int SaltedAndIterated = 3
Field Value
Simple
public const int Simple = 0
Field Value
Properties
HashAlgorithm
The hash algorithm.
public virtual HashAlgorithmTag HashAlgorithm { get; }
Property Value
IterationCount
The iteration count
public virtual long IterationCount { get; }
Property Value
ProtectionMode
The protection mode - only if GnuDummyS2K
public virtual int ProtectionMode { get; }
Property Value
Type
public virtual int Type { get; }
Property Value
Methods
Encode(BcpgOutputStream)
public override void Encode(BcpgOutputStream bcpgOut)
Parameters
bcpgOutBcpgOutputStream
GetIV()
The IV for the key generation algorithm.
public virtual byte[] GetIV()
Returns
- byte[]