| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final byte[] | |
| private final byte[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| public | HKDFParameters(final byte[]
the input keying material or seed ikm, final byte[] the salt to use, may be null for a salt for hashLen zeros salt, final byte[] the info to use, may be null for an info field of zero bytes info)Generates parameters for HKDF, specifying both the optional salt and optional info. |
| Modifier and Type | Method and Description |
|---|---|
| public static HKDFParameters | |
| public byte[] | |
| public byte[] | Returns: the info field, never nullReturns the info field, which may be empty (null is converted to empty). |
| public byte[] | Returns: the salt, or nullReturns the salt, or null if the salt should be generated as a byte array of HashLen zeros. |
| public boolean | Returns: true for skipping, false for no skipping of step 1Returns if step 1: extract has to be skipped or not |
| public static HKDFParameters | Returns: HKDFParameters that makes the implementation skip step 1the input keying material or seed, directly used for step 2:
Expand ikm, final byte[] the info to use, may be null for an info field of zero bytes info)Factory method that makes the HKDF skip the extract part of the key derivation function. |
| ikm | back to summary |
|---|---|
| private final byte[] ikm | |
| info | back to summary |
|---|---|
| private final byte[] info | |
| salt | back to summary |
|---|---|
| private final byte[] salt | |
| skipExpand | back to summary |
|---|---|
| private final boolean skipExpand | |
| HKDFParameters | back to summary |
|---|---|
| private HKDFParameters(final byte[] ikm, final boolean skip, final byte[] salt, final byte[] info) | |
| HKDFParameters | back to summary |
|---|---|
| public HKDFParameters(final byte[] ikm, final byte[] salt, final byte[] info) Generates parameters for HKDF, specifying both the optional salt and optional info. Step 1: Extract won't be skipped.
| |
| defaultParameters | back to summary |
|---|---|
| public static HKDFParameters defaultParameters(final byte[] ikm) | |
| getIKM | back to summary |
|---|---|
| public byte[] getIKM() Returns the input keying material or seed.
| |
| getInfo | back to summary |
|---|---|
| public byte[] getInfo() Returns the info field, which may be empty (null is converted to empty).
| |
| getSalt | back to summary |
|---|---|
| public byte[] getSalt() Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros.
| |
| skipExtract | back to summary |
|---|---|
| public boolean skipExtract() Returns if step 1: extract has to be skipped or not
| |
| skipExtractParameters | back to summary |
|---|---|
| public static HKDFParameters skipExtractParameters(final byte[] ikm, final byte[] info) Factory method that makes the HKDF skip the extract part of the key derivation function.
| |