| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private int | |
| private HMac | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | HKDFBytesGenerator(Digest
the digest to be used as the source of generatedBytes bytes hash)Creates a HKDFBytesGenerator based on the given hash function. |
| Modifier and Type | Method and Description |
|---|---|
| private void | expandNext()
Performs the expand part of the key derivation function, using currentT as input and output buffer. |
| public byte[] | Returns: the PRK as KeyParameterthe salt to use salt, byte[] the input keying material ikm)Performs the extract part of the key derivation function. |
| public int | generateBytes(byte[] out, int outOff, int len)
Implements org. |
| public Digest | |
| public void |
| currentT | back to summary |
|---|---|
| private byte[] currentT | |
| generatedBytes | back to summary |
|---|---|
| private int generatedBytes | |
| hashLen | back to summary |
|---|---|
| private int hashLen | |
| hMacHash | back to summary |
|---|---|
| private HMac hMacHash | |
| info | back to summary |
|---|---|
| private byte[] info | |
| HKDFBytesGenerator | back to summary |
|---|---|
| public HKDFBytesGenerator(Digest hash) Creates a HKDFBytesGenerator based on the given hash function.
| |
| expandNext | back to summary |
|---|---|
| private void expandNext() throws DataLengthException Performs the expand part of the key derivation function, using currentT as input and output buffer.
| |
| extractPRK | back to summary |
|---|---|
| public byte[] extractPRK(byte[] salt, byte[] ikm) Performs the extract part of the key derivation function.
| |
| generateBytes | back to summary |
|---|---|
| public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, IllegalArgumentException Implements org. | |
| getDigest | back to summary |
|---|---|
| public Digest getDigest() | |
| init | back to summary |
|---|---|
| public void init(DerivationParameters param) Implements org. | |