Package org.sol4k.tweetnacl
Class TweetNacl
- java.lang.Object
-
- org.sol4k.tweetnacl.TweetNacl
-
public final class TweetNacl extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetNacl.Boxstatic classTweetNacl.Hashstatic classTweetNacl.poly1305static classTweetNacl.ScalarMultstatic classTweetNacl.SecretBoxstatic classTweetNacl.Signature
-
Constructor Summary
Constructors Constructor Description TweetNacl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcrypto_box(byte[] c, byte[] m, int d, byte[] n, byte[] y, byte[] x)static intcrypto_box_afternm(byte[] c, byte[] m, int d, byte[] n, byte[] k)static intcrypto_box_beforenm(byte[] k, byte[] y, byte[] x)static intcrypto_box_keypair(byte[] y, byte[] x)static intcrypto_box_open(byte[] m, byte[] c, int d, byte[] n, byte[] y, byte[] x)static intcrypto_box_open_afternm(byte[] m, byte[] c, int d, byte[] n, byte[] k)static intcrypto_core_hsalsa20(byte[] out, byte[] in, byte[] k, byte[] c)static intcrypto_core_salsa20(byte[] out, byte[] in, byte[] k, byte[] c)static intcrypto_hash(byte[] out, byte[] m)static intcrypto_hash(byte[] out, byte[] m, int n)static intcrypto_hashblocks(byte[] x, byte[] m, int n)static intcrypto_onetimeauth(byte[] out, byte[] m, int n, byte[] k)static intcrypto_onetimeauth_verify(byte[] h, byte[] m, byte[] k)static intcrypto_onetimeauth_verify(byte[] h, byte[] m, int n, byte[] k)static intcrypto_scalarmult(byte[] q, byte[] n, byte[] p)static intcrypto_scalarmult_base(byte[] q, byte[] n)static intcrypto_secretbox(byte[] c, byte[] m, int d, byte[] n, byte[] k)static intcrypto_secretbox_open(byte[] m, byte[] c, int d, byte[] n, byte[] k)static intcrypto_sign(byte[] sm, long dummy, byte[] m, int n, byte[] sk)static intcrypto_sign_keypair(byte[] pk, byte[] sk, boolean seeded)static intcrypto_sign_open(byte[] m, long dummy, byte[] sm, int n, byte[] pk)static intcrypto_stream(byte[] c, long d, byte[] n, byte[] k)static intcrypto_stream_salsa20(byte[] c, long d, byte[] n, byte[] k)static intcrypto_stream_salsa20_xor(byte[] c, byte[] m, long b, byte[] n, byte[] k)static intcrypto_stream_xor(byte[] c, byte[] m, long d, byte[] n, byte[] k)static intcrypto_verify_16(byte[] x, byte[] y)static intcrypto_verify_32(byte[] x, byte[] y)static voidrandombytes(byte[] x, int len)
-
-
-
Method Detail
-
crypto_verify_16
public static int crypto_verify_16(byte[] x, byte[] y)
-
crypto_verify_32
public static int crypto_verify_32(byte[] x, byte[] y)
-
crypto_core_salsa20
public static int crypto_core_salsa20(byte[] out, byte[] in, byte[] k, byte[] c)
-
crypto_core_hsalsa20
public static int crypto_core_hsalsa20(byte[] out, byte[] in, byte[] k, byte[] c)
-
crypto_stream_salsa20_xor
public static int crypto_stream_salsa20_xor(byte[] c, byte[] m, long b, byte[] n, byte[] k)
-
crypto_stream_salsa20
public static int crypto_stream_salsa20(byte[] c, long d, byte[] n, byte[] k)
-
crypto_stream
public static int crypto_stream(byte[] c, long d, byte[] n, byte[] k)
-
crypto_stream_xor
public static int crypto_stream_xor(byte[] c, byte[] m, long d, byte[] n, byte[] k)
-
crypto_onetimeauth
public static int crypto_onetimeauth(byte[] out, byte[] m, int n, byte[] k)
-
crypto_onetimeauth_verify
public static int crypto_onetimeauth_verify(byte[] h, byte[] m, int n, byte[] k)
-
crypto_onetimeauth_verify
public static int crypto_onetimeauth_verify(byte[] h, byte[] m, byte[] k)
-
crypto_secretbox
public static int crypto_secretbox(byte[] c, byte[] m, int d, byte[] n, byte[] k)
-
crypto_secretbox_open
public static int crypto_secretbox_open(byte[] m, byte[] c, int d, byte[] n, byte[] k)
-
crypto_scalarmult
public static int crypto_scalarmult(byte[] q, byte[] n, byte[] p)
-
crypto_scalarmult_base
public static int crypto_scalarmult_base(byte[] q, byte[] n)
-
crypto_box_keypair
public static int crypto_box_keypair(byte[] y, byte[] x)
-
crypto_box_beforenm
public static int crypto_box_beforenm(byte[] k, byte[] y, byte[] x)
-
crypto_box_afternm
public static int crypto_box_afternm(byte[] c, byte[] m, int d, byte[] n, byte[] k)
-
crypto_box_open_afternm
public static int crypto_box_open_afternm(byte[] m, byte[] c, int d, byte[] n, byte[] k)
-
crypto_box
public static int crypto_box(byte[] c, byte[] m, int d, byte[] n, byte[] y, byte[] x)
-
crypto_box_open
public static int crypto_box_open(byte[] m, byte[] c, int d, byte[] n, byte[] y, byte[] x)
-
crypto_hashblocks
public static int crypto_hashblocks(byte[] x, byte[] m, int n)
-
crypto_hash
public static int crypto_hash(byte[] out, byte[] m, int n)
-
crypto_hash
public static int crypto_hash(byte[] out, byte[] m)
-
crypto_sign_keypair
public static int crypto_sign_keypair(byte[] pk, byte[] sk, boolean seeded)
-
crypto_sign
public static int crypto_sign(byte[] sm, long dummy, byte[] m, int n, byte[] sk)
-
crypto_sign_open
public static int crypto_sign_open(byte[] m, long dummy, byte[] sm, int n, byte[] pk)
-
randombytes
public static void randombytes(byte[] x, int len)
-
-