org.bouncycastle.bcpg
public class S2K extends BCPGObject
| Field Summary | |
|---|---|
| static int | GNU_DUMMY_S2K |
| static int | SALTED |
| static int | SALTED_AND_ITERATED |
| static int | SIMPLE |
| Constructor Summary | |
|---|---|
| S2K(int algorithm) | |
| S2K(int algorithm, byte[] iv) | |
| S2K(int algorithm, byte[] iv, int itCount) | |
| Method Summary | |
|---|---|
| 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() |