Class KBKDFDKMLengthParam

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class KBKDFDKMLengthParam
    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 Detail

      • lengthMethod

        protected long lengthMethod
      • littleEndian

        protected boolean littleEndian
      • widthInBits

        protected long widthInBits
    • Constructor Detail

      • KBKDFDKMLengthParam

        public KBKDFDKMLengthParam()
      • KBKDFDKMLengthParam

        public KBKDFDKMLengthParam​(long lengthMethod,
                                   boolean littleEndian,
                                   long widthInBits)
                            throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • setLengthSpec

        public void setLengthSpec​(long lengthMethod,
                                  boolean littleEndian,
                                  long widthInBits)
                           throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • acquireNativeResources

        protected void acquireNativeResources()
                                       throws java.lang.Exception
        Description copied from class: NativeEnclosure
        Allocate native resources, setting mPointer and mPointerSize as appropriate.
        Specified by:
        acquireNativeResources in class NativeEnclosure
        Throws:
        java.lang.Exception
      • releaseNativeResources

        protected void releaseNativeResources()
                                       throws java.lang.Exception
        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 class NativeEnclosure
        Throws:
        java.lang.Exception