org.bouncycastle.bcpg
Class S2K
The string to key specifier class
S2K(int algorithm)
|
S2K(int algorithm, byte[] iv)
|
S2K(int algorithm, byte[] iv, int itCount)
|
GNU_DUMMY_S2K
public static final int GNU_DUMMY_S2K
SALTED
public static final int SALTED
SALTED_AND_ITERATED
public static final int SALTED_AND_ITERATED
SIMPLE
public static final int SIMPLE
S2K
public S2K(int algorithm)
S2K
public S2K(int algorithm,
byte[] iv)
S2K
public S2K(int algorithm,
byte[] iv,
int itCount)
getHashAlgorithm
public int getHashAlgorithm()
return the hash algorithm for this S2K
getIV
public byte[] getIV()
return the iv for the key generation algorithm
getIterationCount
public long getIterationCount()
return the iteration count
getProtectionMode
public int getProtectionMode()
the protection mode - only if GN_DUMMY_S2K
getType
public int getType()