The document this implementation is based on can be found at RSA's PKCS12 Page
| Modifier and Type | Field and Description |
|---|---|
| private Digest | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | PKCS12ParametersGenerator(Digest
the digest to be used as the source of derived keys. digest)Construct a PKCS 12 Parameters generator. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private byte[] | |
| public CipherParameters | Returns: a KeyParameter object.the size of the key we want (in bits) keySize)Implements abstract org. Generate a key parameter for use with a MAC derived from the password, salt, and iteration count we are currently initialised with. |
| public CipherParameters | Returns: a KeyParameter object.the size of the key we want (in bits) keySize)Implements abstract org. Generate a key parameter derived from the password, salt, and iteration count we are currently initialised with. |
| public CipherParameters | Returns: a ParametersWithIV object.the size of the key we want (in bits) keySize, int the size of the iv we want (in bits) ivSize)Implements abstract org. Generate a key with initialisation vector parameter derived from the password, salt, and iteration count we are currently initialised with. |
| digest | back to summary |
|---|---|
| private Digest digest | |
| IV_MATERIAL | back to summary |
|---|---|
| public static final int IV_MATERIAL | |
| KEY_MATERIAL | back to summary |
|---|---|
| public static final int KEY_MATERIAL | |
| MAC_MATERIAL | back to summary |
|---|---|
| public static final int MAC_MATERIAL | |
| u | back to summary |
|---|---|
| private int u | |
| v | back to summary |
|---|---|
| private int v | |
| PKCS12ParametersGenerator | back to summary |
|---|---|
| public PKCS12ParametersGenerator(Digest digest) Construct a PKCS 12 Parameters generator. This constructor will accept any digest which also implements ExtendedDigest.
| |
| adjust | back to summary |
|---|---|
| private void adjust(byte[] a, int aOff, byte[] b) add a + b + 1, returning the result in a. The a value is treated as a BigInteger of length (b.length * 8) bits. The result is modulo 2^b.length in case of overflow. | |
| generateDerivedKey | back to summary |
|---|---|
| private byte[] generateDerivedKey(int idByte, int n) generation of a derived key ala PKCS12 V1.0. | |
| generateDerivedMacParameters | back to summary |
|---|---|
| public CipherParameters generateDerivedMacParameters(int keySize) Implements abstract org. Generate a key parameter for use with a MAC derived from the password, salt, and iteration count we are currently initialised with.
| |
| generateDerivedParameters | back to summary |
|---|---|
| public CipherParameters generateDerivedParameters(int keySize) Implements abstract org. Generate a key parameter derived from the password, salt, and iteration count we are currently initialised with.
| |
| generateDerivedParameters | back to summary |
|---|---|
| public CipherParameters generateDerivedParameters(int keySize, int ivSize) Implements abstract org. Generate a key with initialisation vector parameter derived from the password, salt, and iteration count we are currently initialised with.
| |