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:
java.lang.AutoCloseable
public class KBKDFOptionalCounterParam extends KBKDFDataParameter
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
Fields Modifier and Type Field Description protected booleanlittleEndianprotected longwidthInBits-
Fields inherited from class org.mozilla.jss.crypto.KBKDFDataParameter
type
-
Fields inherited from class org.mozilla.jss.util.NativeEnclosure
mPointer, mPointerSize
-
-
Constructor Summary
Constructors Constructor Description KBKDFOptionalCounterParam()KBKDFOptionalCounterParam(boolean littleEndian, long widthInBits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidacquireNativeResources()Allocate native resources, setting mPointer and mPointerSize as appropriate.protected voidreleaseNativeResources()Called to deallocate native resources; note that mPointer.close() is called afterwards.voidsetCounterSpec(boolean littleEndian, long widthInBits)-
Methods inherited from class org.mozilla.jss.util.NativeEnclosure
close, finalize, open
-
-
-
-
Method Detail
-
setCounterSpec
public void setCounterSpec(boolean littleEndian, long widthInBits) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
acquireNativeResources
protected void acquireNativeResources() throws java.lang.ExceptionDescription copied from class:NativeEnclosureAllocate native resources, setting mPointer and mPointerSize as appropriate.- Specified by:
acquireNativeResourcesin classNativeEnclosure- Throws:
java.lang.Exception
-
releaseNativeResources
protected void releaseNativeResources() throws java.lang.ExceptionDescription copied from class:NativeEnclosureCalled 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:
releaseNativeResourcesin classNativeEnclosure- Throws:
java.lang.Exception
-
-