Package libsodiumjni.internal
Class SodiumApi
java.lang.Object
libsodiumjni.internal.SodiumApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcrypto_box_keypair(byte[] pubKey, byte[] secretKey) static intstatic intcrypto_box_seal(byte[] cipher, byte[] message, long messageLen, byte[] publicKey) static intstatic intcrypto_box_seal_open(byte[] decrypted, byte[] cipher, int cipherLen, byte[] pubKey, byte[] secretKey) static intstatic int
-
Constructor Details
-
SodiumApi
public SodiumApi()
-
-
Method Details
-
sodium_init
public static int sodium_init() -
crypto_box_public_key_bytes
public static int crypto_box_public_key_bytes() -
crypto_box_secret_key_bytes
public static int crypto_box_secret_key_bytes() -
crypto_box_keypair
public static int crypto_box_keypair(byte[] pubKey, byte[] secretKey) -
crypto_box_seal_bytes
public static int crypto_box_seal_bytes() -
crypto_box_seal
public static int crypto_box_seal(byte[] cipher, byte[] message, long messageLen, byte[] publicKey) -
crypto_box_seal_open
public static int crypto_box_seal_open(byte[] decrypted, byte[] cipher, int cipherLen, byte[] pubKey, byte[] secretKey)
-