org.abstractj.kalium
public class Sodium extends Object
Constructor and Description |
---|
Sodium() |
Modifier and Type | Method and Description |
---|---|
static int |
crypto_aead_chacha20poly1305_decrypt(byte[] m,
int[] mlen,
byte[] nsec,
byte[] c,
int clen,
byte[] ad,
int adlen,
byte[] npub,
byte[] k) |
static int |
crypto_aead_chacha20poly1305_encrypt(byte[] c,
int[] clen,
byte[] m,
int mlen,
byte[] ad,
int adlen,
byte[] nsec,
byte[] npub,
byte[] k) |
static int |
crypto_box_curve25519xsalsa20poly1305_keypair(byte[] pk,
byte[] sk) |
static int |
crypto_box_curve25519xsalsa20poly1305_open(byte[] m,
byte[] c,
int clen,
byte[] n,
byte[] pk,
byte[] sk) |
static int |
crypto_box_curve25519xsalsa20poly1305(byte[] c,
byte[] m,
int mlen,
byte[] n,
byte[] pk,
byte[] sk) |
static int |
crypto_generichash_blake2b(byte[] out,
long outlen,
byte[] in,
int inlen,
byte[] key,
long keylen) |
static int |
crypto_hash_sha256(byte[] out,
byte[] in,
int inlen) |
static int |
crypto_hash_sha512(byte[] out,
byte[] in,
int inlen) |
static int |
crypto_pwhash_scryptsalsa208sha256(byte[] out,
int outlen,
String passwd,
int passwdlen,
byte[] salt,
int opslimit,
long memlimit) |
static int |
crypto_scalarmult_curve25519(byte[] q,
byte[] n,
byte[] p) |
static int |
crypto_secretbox_xsalsa20poly1305_open(byte[] m,
byte[] c,
int clen,
byte[] n,
byte[] k) |
static int |
crypto_secretbox_xsalsa20poly1305(byte[] c,
byte[] m,
int mlen,
byte[] n,
byte[] k) |
static int |
crypto_sign_ed25519_open(byte[] m,
int[] mlen,
byte[] sm,
int smlen,
byte[] pk) |
static int |
crypto_sign_ed25519_seed_keypair(byte[] pk,
byte[] sk,
byte[] seed) |
static int |
crypto_sign_ed25519(byte[] sm,
int[] smlen,
byte[] m,
int mlen,
byte[] sk) |
static int |
crypto_stream_xsalsa20_xor(byte[] c,
byte[] m,
int mlen,
byte[] n,
byte[] k) |
static int |
crypto_stream_xsalsa20(byte[] c,
int clen,
byte[] n,
byte[] k) |
static void |
randombytes(byte[] buf,
int size) |
static String |
sodium_version_string() |
public static String sodium_version_string()
public static int crypto_aead_chacha20poly1305_encrypt(byte[] c, int[] clen, byte[] m, int mlen, byte[] ad, int adlen, byte[] nsec, byte[] npub, byte[] k)
public static int crypto_aead_chacha20poly1305_decrypt(byte[] m, int[] mlen, byte[] nsec, byte[] c, int clen, byte[] ad, int adlen, byte[] npub, byte[] k)
public static int crypto_hash_sha256(byte[] out, byte[] in, int inlen)
public static int crypto_hash_sha512(byte[] out, byte[] in, int inlen)
public static int crypto_generichash_blake2b(byte[] out, long outlen, byte[] in, int inlen, byte[] key, long keylen)
public static int crypto_pwhash_scryptsalsa208sha256(byte[] out, int outlen, String passwd, int passwdlen, byte[] salt, int opslimit, long memlimit)
public static int crypto_box_curve25519xsalsa20poly1305_keypair(byte[] pk, byte[] sk)
public static void randombytes(byte[] buf, int size)
public static int crypto_box_curve25519xsalsa20poly1305(byte[] c, byte[] m, int mlen, byte[] n, byte[] pk, byte[] sk)
public static int crypto_box_curve25519xsalsa20poly1305_open(byte[] m, byte[] c, int clen, byte[] n, byte[] pk, byte[] sk)
public static int crypto_scalarmult_curve25519(byte[] q, byte[] n, byte[] p)
public static int crypto_secretbox_xsalsa20poly1305(byte[] c, byte[] m, int mlen, byte[] n, byte[] k)
public static int crypto_secretbox_xsalsa20poly1305_open(byte[] m, byte[] c, int clen, byte[] n, byte[] k)
public static int crypto_sign_ed25519_seed_keypair(byte[] pk, byte[] sk, byte[] seed)
public static int crypto_sign_ed25519(byte[] sm, int[] smlen, byte[] m, int mlen, byte[] sk)
public static int crypto_sign_ed25519_open(byte[] m, int[] mlen, byte[] sm, int smlen, byte[] pk)
public static int crypto_stream_xsalsa20(byte[] c, int clen, byte[] n, byte[] k)
public static int crypto_stream_xsalsa20_xor(byte[] c, byte[] m, int mlen, byte[] n, byte[] k)
Copyright © 2015. All Rights Reserved.