Package org.mozilla.jss.crypto
Class KBKDFFeedbackParams
java.lang.Object
org.mozilla.jss.util.NativeEnclosure
org.mozilla.jss.crypto.KBKDFParameterSpec
org.mozilla.jss.crypto.KBKDFFeedbackParams
- All Implemented Interfaces:
AutoCloseable
,AlgorithmParameterSpec
,KeySpec
-
Field Summary
FieldsFields inherited from class org.mozilla.jss.crypto.KBKDFParameterSpec
additional_keys, derivedKeyAlgorithm, keySize, params, prf, prfKey
Fields inherited from class org.mozilla.jss.util.NativeEnclosure
mPointer, mPointerSize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
setInitialValue
(byte[] iv) protected void
Validate all class members prior to acquiring native resources.void
Zero out the copiend contents of the initial value.Methods inherited from class org.mozilla.jss.crypto.KBKDFParameterSpec
acquireNativeResources, addAdditionalDerivedKey, addParameter, releaseNativeResources, setAdditionalDerivedKeys, setDerivedKeyAlgorithm, setDerivedKeyAlgorithm, setKeySize, setParameters, setPRF, setPRF, setPRF, setPRFKey
Methods inherited from class org.mozilla.jss.util.NativeEnclosure
close, finalize, open
-
Field Details
-
initial_value
private byte[] initial_value
-
-
Constructor Details
-
KBKDFFeedbackParams
public KBKDFFeedbackParams()
-
-
Method Details
-
setInitialValue
- Throws:
IllegalArgumentException
-
zeroInitialValue
public void zeroInitialValue()Zero out the copiend contents of the initial value. Call this method when the contents of the initial value are sensitive and they're done being used. Note that this isn't called during close() as a given KBKDFParameterSpec instance may be reused, updating relevant parameters between calls. -
validateParameters
Description copied from class:KBKDFParameterSpec
Validate all class members prior to acquiring native resources. This is implemented by the derived KBKDF modes in an effort to give useful exceptions before derivation, instead of vague errors during derivation.- Specified by:
validateParameters
in classKBKDFParameterSpec
- Throws:
IllegalArgumentException
-
acquireNativeResourcesInternal
- Specified by:
acquireNativeResourcesInternal
in classKBKDFParameterSpec
- Throws:
Exception
-
releaseNativeResourcesInternal
- Specified by:
releaseNativeResourcesInternal
in classKBKDFParameterSpec
- Throws:
Exception
-