Class SodiumJava

java.lang.Object
com.codevasp.lazysodium.Sodium
com.codevasp.lazysodium.SodiumJava

public class SodiumJava extends Sodium
  • Constructor Details

    • SodiumJava

      public SodiumJava()
      Creates the SodiumJava instance. Uses the default loading mode, first attempting to load the system sodium, and, if that fails — the bundled one.
    • SodiumJava

      public SodiumJava(LibraryLoader.Mode loadingMode)
      Creates the SodiumJava using the given loading mode.
      Parameters:
      loadingMode - controls which sodium library (installed in the system or bundled in the JAR) is loaded, and in which order
      See Also:
    • SodiumJava

      public SodiumJava(String absolutePath)
  • Method Details

    • crypto_pwhash_scryptsalsa208sha256

      public int crypto_pwhash_scryptsalsa208sha256(byte[] out, long outLen, byte[] password, long passwordLen, byte[] salt, long opsLimit, long memLimit)
    • crypto_pwhash_scryptsalsa208sha256_str

      public int crypto_pwhash_scryptsalsa208sha256_str(byte[] out, byte[] password, long passwordLen, long opsLimit, long memLimit)
    • crypto_pwhash_scryptsalsa208sha256_str_verify

      public int crypto_pwhash_scryptsalsa208sha256_str_verify(byte[] str, byte[] password, long passwordLen)
    • crypto_pwhash_scryptsalsa208sha256_ll

      public int crypto_pwhash_scryptsalsa208sha256_ll(byte[] password, int passwordLen, byte[] salt, int saltLen, long N, long r, long p, byte[] buf, int bufLen)
    • crypto_pwhash_scryptsalsa208sha256_str_needs_rehash

      public int crypto_pwhash_scryptsalsa208sha256_str_needs_rehash(byte[] password, long opsLimit, long memLimit)
    • crypto_stream_salsa2012_keygen

      public void crypto_stream_salsa2012_keygen(byte[] key)
    • crypto_stream_salsa2012

      public int crypto_stream_salsa2012(byte[] c, long cLen, byte[] nonce, byte[] key)
    • crypto_stream_salsa2012_xor

      public int crypto_stream_salsa2012_xor(byte[] cipher, byte[] message, long messageLen, byte[] nonce, byte[] key)
    • crypto_stream_salsa208_keygen

      public void crypto_stream_salsa208_keygen(byte[] key)
    • crypto_stream_salsa208

      public int crypto_stream_salsa208(byte[] c, long cLen, byte[] nonce, byte[] key)
    • crypto_stream_salsa208_xor

      public int crypto_stream_salsa208_xor(byte[] cipher, byte[] message, long messageLen, byte[] nonce, byte[] key)
    • crypto_stream_xchacha20

      public int crypto_stream_xchacha20(byte[] c, long cLen, byte[] nonce, byte[] key)
    • crypto_stream_xchacha20_xor

      public int crypto_stream_xchacha20_xor(byte[] cipher, byte[] message, long messageLen, byte[] nonce, byte[] key)
    • crypto_stream_xchacha20_xor_ic

      public int crypto_stream_xchacha20_xor_ic(byte[] cipher, byte[] message, long messageLen, byte[] nonce, long ic, byte[] key)
    • crypto_stream_xchacha20_keygen

      public void crypto_stream_xchacha20_keygen(byte[] key)
    • getClassesToRegister

      public static List<Class> getClassesToRegister()