Note
as this is still a draft the output of this generator may change, don't use it for anything that might be subject to long term storage.
| Modifier and Type | Field and Description |
|---|---|
| private Digest | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | BrokenKDF2BytesGenerator(Digest
the digest to be used as the source of derived keys. digest)Construct a KDF2 Parameters generator. |
| Modifier and Type | Method and Description |
|---|---|
| public int | generateBytes(byte[] out, int outOff, int len)
Implements org. fill len bytes of the output buffer with bytes generated from the derivation function. |
| public Digest | |
| public void |
| digest | back to summary |
|---|---|
| private Digest digest | |
| iv | back to summary |
|---|---|
| private byte[] iv | |
| shared | back to summary |
|---|---|
| private byte[] shared | |
| BrokenKDF2BytesGenerator | back to summary |
|---|---|
| public BrokenKDF2BytesGenerator(Digest digest) Construct a KDF2 Parameters generator. Generates key material according to IEEE P1363a - if you want orthodox results you should use a digest specified in the standard. Note IEEE P1363a standard is still a draft standard, if the standard changes this function, the output of this function will change as well. Don't use this routine for anything subject to long term storage.
| |
| generateBytes | back to summary |
|---|---|
| public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, IllegalArgumentException Implements org. fill len bytes of the output buffer with bytes generated from the derivation function.
| |
| getDigest | back to summary |
|---|---|
| public Digest getDigest() return the underlying digest. | |
| init | back to summary |
|---|---|
| public void init(DerivationParameters param) Implements org. | |