Package org.mozilla.jss.crypto
Class KBKDFOptionalCounterParam
java.lang.Object
org.mozilla.jss.util.NativeEnclosure
org.mozilla.jss.crypto.KBKDFDataParameter
org.mozilla.jss.crypto.KBKDFOptionalCounterParam
- All Implemented Interfaces:
AutoCloseable
A KBKDF Optional Counter Parameter is a type of KBKDF Data Parameter that
describes the optional counter variable for Feedback and Pipeline KBKDFs.
Note that this parameter is illegal in Counter Mode.
-
Field Summary
FieldsFields inherited from class org.mozilla.jss.crypto.KBKDFDataParameter
type
Fields inherited from class org.mozilla.jss.util.NativeEnclosure
mPointer, mPointerSize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Allocate native resources, setting mPointer and mPointerSize as appropriate.protected void
Called to deallocate native resources; note that mPointer.close() is called afterwards.void
setCounterSpec
(boolean littleEndian, long widthInBits) Methods inherited from class org.mozilla.jss.util.NativeEnclosure
close, finalize, open
-
Field Details
-
littleEndian
protected boolean littleEndian -
widthInBits
protected long widthInBits
-
-
Constructor Details
-
KBKDFOptionalCounterParam
public KBKDFOptionalCounterParam() -
KBKDFOptionalCounterParam
public KBKDFOptionalCounterParam(boolean littleEndian, long widthInBits) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
setCounterSpec
- Throws:
IllegalArgumentException
-
acquireNativeResources
Description copied from class:NativeEnclosure
Allocate native resources, setting mPointer and mPointerSize as appropriate.- Specified by:
acquireNativeResources
in classNativeEnclosure
- Throws:
Exception
-
releaseNativeResources
Description copied from class:NativeEnclosure
Called to deallocate native resources; note that mPointer.close() is called afterwards. If mPointer.close() should be a no-op, extend from StaticVoidRef and do any required cleanup here.- Specified by:
releaseNativeResources
in classNativeEnclosure
- Throws:
Exception
-