Class GenericHash.State

java.lang.Object
com.goterl.lazysodium.interfaces.GenericHash.State
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing interface:
GenericHash

public static class GenericHash.State extends Object implements Closeable
State of a multi-part hashing operation. Allocates a small piece of native memory, so it is Closeable, as you might want to close it explicitly to free the allocated memory. (If not, it should be auto-freed by GC as always.)
  • Constructor Details

    • State

      public State()
  • Method Details

    • getPointer

      public com.sun.jna.Pointer getPointer()
      Native pointer to the state buffer (64-byte aligned).
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable