|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.params.HKDFParameters
Parameter class for the HKDFBytesGenerator class.
Constructor Summary | |
HKDFParameters(byte[] ikm,
byte[] salt,
byte[] info)
Generates parameters for HKDF, specifying both the optional salt and optional info. |
Method Summary | |
static HKDFParameters |
defaultParameters(byte[] ikm)
|
byte[] |
getIKM()
Returns the input keying material or seed. |
byte[] |
getInfo()
Returns the info field, which may be empty (null is converted to empty). |
byte[] |
getSalt()
Returns the salt, or null if the salt should be generated as a byte array of HashLen zeros. |
boolean |
skipExtract()
Returns if step 1: extract has to be skipped or not |
static HKDFParameters |
skipExtractParameters(byte[] ikm,
byte[] info)
Factory method that makes the HKDF skip the extract part of the key derivation function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HKDFParameters(byte[] ikm, byte[] salt, byte[] info)
ikm
- the input keying material or seedsalt
- the salt to use, may be null for a salt for hashLen zerosinfo
- the info to use, may be null for an info field of zero bytesMethod Detail |
public static HKDFParameters skipExtractParameters(byte[] ikm, byte[] info)
ikm
- the input keying material or seed, directly used for step 2:
Expandinfo
- the info to use, may be null for an info field of zero bytes
public static HKDFParameters defaultParameters(byte[] ikm)
public byte[] getIKM()
public boolean skipExtract()
public byte[] getSalt()
public byte[] getInfo()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |