Class 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 Detail

      • littleEndian

        protected boolean littleEndian
      • widthInBits

        protected long widthInBits
    • Constructor Detail

      • KBKDFOptionalCounterParam

        public KBKDFOptionalCounterParam()
      • KBKDFOptionalCounterParam

        public KBKDFOptionalCounterParam​(boolean littleEndian,
                                         long widthInBits)
                                  throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • 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.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