public class S2K extends BCPGObject
Modifier and Type | Field and Description |
---|---|
static int |
GNU_DUMMY_S2K |
static int |
SALTED |
static int |
SALTED_AND_ITERATED |
static int |
SIMPLE |
Constructor and Description |
---|
S2K(int algorithm) |
S2K(int algorithm,
byte[] iv) |
S2K(int algorithm,
byte[] iv,
int itCount) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
int |
getHashAlgorithm()
return the hash algorithm for this S2K
|
long |
getIterationCount()
return the iteration count
|
byte[] |
getIV()
return the iv for the key generation algorithm
|
int |
getProtectionMode()
the protection mode - only if GNU_DUMMY_S2K
|
int |
getType() |
getEncoded
public static final int SIMPLE
public static final int SALTED
public static final int SALTED_AND_ITERATED
public static final int GNU_DUMMY_S2K
public S2K(int algorithm)
public S2K(int algorithm, byte[] iv)
public S2K(int algorithm, byte[] iv, int itCount)
public int getType()
public int getHashAlgorithm()
public byte[] getIV()
public long getIterationCount()
public int getProtectionMode()
public void encode(BCPGOutputStream out) throws java.io.IOException
encode
in class BCPGObject
java.io.IOException