Package com.iwebpp.crypto
Class TweetNaclFast
- java.lang.Object
-
- com.iwebpp.crypto.TweetNaclFast
-
public final class TweetNaclFast extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TweetNaclFast.Box
static class
TweetNaclFast.Hash
static class
TweetNaclFast.poly1305
static class
TweetNaclFast.ScalarMult
static class
TweetNaclFast.SecretBox
static class
TweetNaclFast.Signature
-
Constructor Summary
Constructors Constructor Description TweetNaclFast()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
crypto_box(byte[] c, byte[] m, int d, byte[] n, byte[] y, byte[] x)
static int
crypto_box_afternm(byte[] c, byte[] m, int d, byte[] n, byte[] k)
static int
crypto_box_beforenm(byte[] k, byte[] y, byte[] x)
static int
crypto_box_keypair(byte[] y, byte[] x)
static int
crypto_box_open(byte[] m, byte[] c, int d, byte[] n, byte[] y, byte[] x)
static int
crypto_box_open_afternm(byte[] m, byte[] c, int d, byte[] n, byte[] k)
static int
crypto_core_hsalsa20(byte[] out, byte[] in, byte[] k, byte[] c)
static int
crypto_core_salsa20(byte[] out, byte[] in, byte[] k, byte[] c)
static int
crypto_hash(byte[] out, byte[] m)
static int
crypto_hash(byte[] out, byte[] m, int moff, int n)
static int
crypto_onetimeauth(byte[] out, byte[] m, int n, byte[] k)
static int
crypto_onetimeauth_verify(byte[] h, byte[] m, byte[] k)
static int
crypto_onetimeauth_verify(byte[] h, byte[] m, int n, byte[] k)
static int
crypto_scalarmult(byte[] q, byte[] n, byte[] p)
static int
crypto_scalarmult_base(byte[] q, byte[] n)
static int
crypto_secretbox(byte[] c, byte[] m, int d, byte[] n, byte[] k)
static int
crypto_secretbox_open(byte[] m, byte[] c, int d, byte[] n, byte[] k)
static int
crypto_sign(byte[] sm, long dummy, byte[] m, int moff, int n, byte[] sk)
static int
crypto_sign_keypair(byte[] pk, byte[] sk, boolean seeded)
static int
crypto_sign_open(byte[] m, long dummy, byte[] sm, int smoff, int n, byte[] pk)
static int
crypto_stream(byte[] c, int cpos, long d, byte[] n, byte[] k)
static int
crypto_stream_salsa20(byte[] c, int cpos, long b, byte[] n, byte[] k)
static int
crypto_stream_xor(byte[] c, int cpos, byte[] m, int mpos, long d, byte[] n, byte[] k)
static int
crypto_verify_16(byte[] x, byte[] y)
static int
crypto_verify_32(byte[] x, byte[] y)
static byte[]
hexDecode(String s)
static String
hexEncodeToString(byte[] raw)
static byte[]
makeBoxNonce()
static byte[]
makeSecretBoxNonce()
static byte[]
randombytes(byte[] x)
static byte[]
randombytes(byte[] x, int len)
static byte[]
randombytes(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
public static int crypto_stream_salsa20(byte[] c, int cpos, long b, byte[] n, byte[] k)
-
crypto_stream
public static int crypto_stream(byte[] c, int cpos, long d, byte[] n, byte[] k)
-
crypto_stream_xor
public static int crypto_stream_xor(byte[] c, int cpos, byte[] m, int mpos, 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_hash
public static int crypto_hash(byte[] out, byte[] m, int moff, 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 moff, int n, byte[] sk)
-
crypto_sign_open
public static int crypto_sign_open(byte[] m, long dummy, byte[] sm, int smoff, int n, byte[] pk)
-
randombytes
public static byte[] randombytes(byte[] x)
-
randombytes
public static byte[] randombytes(int len)
-
randombytes
public static byte[] randombytes(byte[] x, int len)
-
makeBoxNonce
public static byte[] makeBoxNonce()
-
makeSecretBoxNonce
public static byte[] makeSecretBoxNonce()
-
hexEncodeToString
public static String hexEncodeToString(byte[] raw)
-
hexDecode
public static byte[] hexDecode(String s)
-
-