public static interface SodiumLibrary.Sodium
Modifier and Type | Method and Description |
---|---|
NativeLong |
crypto_auth_bytes() |
NativeLong |
crypto_auth_keybytes() |
int |
crypto_auth_verify(byte[] mac,
byte[] message,
long messagelen,
byte[] key) |
int |
crypto_auth(byte[] mac,
byte[] message,
long messageLen,
byte[] key) |
int |
crypto_box_easy(byte[] cipher_text,
byte[] plain_text,
long pt_len,
byte[] nonce,
byte[] public_key,
byte[] private_key) |
int |
crypto_box_keypair(byte[] pk,
byte[] sk) |
NativeLong |
crypto_box_macbytes() |
NativeLong |
crypto_box_noncebytes() |
int |
crypto_box_open_easy(byte[] decrypted,
byte[] cipher_text,
long ct_len,
byte[] nonce,
byte[] public_key,
byte[] private_key) |
NativeLong |
crypto_box_publickeybytes() |
int |
crypto_box_seal_open(byte[] decrypted,
byte[] cipherText,
long cipherTextLen,
byte[] recipientPublicKey,
byte[] reciPientPrivateKey) |
int |
crypto_box_seal(byte[] cipherText,
byte[] message,
long messageLen,
byte[] recipientPublicKey) |
NativeLong |
crypto_box_sealbytes() |
NativeLong |
crypto_box_secretkeybytes() |
NativeLong |
crypto_box_seedbytes() |
int |
crypto_generichash(byte[] out,
int outlen,
byte[] in,
int inlen,
byte[] key,
long keylen) |
int |
crypto_pwhash_alg_argon2i13() |
int |
crypto_pwhash_alg_argon2id13() |
int |
crypto_pwhash_alg_default() |
NativeLong |
crypto_pwhash_memlimit_interactive() |
NativeLong |
crypto_pwhash_memlimit_moderate() |
NativeLong |
crypto_pwhash_memlimit_sensitive() |
long |
crypto_pwhash_opslimit_interactive() |
long |
crypto_pwhash_opslimit_moderate() |
long |
crypto_pwhash_opslimit_sensitive() |
int |
crypto_pwhash_saltbytes() |
NativeLong |
crypto_pwhash_scryptsalsa208sha256_saltbytes() |
int |
crypto_pwhash_scryptsalsa208sha256(byte[] key,
long keyLength,
byte[] passwd,
long passwd_len,
byte[] in_salt,
long opslimit,
NativeLong memlimit) |
int |
crypto_pwhash_str_verify(byte[] hashedPassword,
byte[] password,
long passwordLen) |
int |
crypto_pwhash_str(byte[] hashedPassword,
byte[] password,
long passwordLen,
long opslimit,
NativeLong memlimit) |
int |
crypto_pwhash_strbytes() |
Pointer |
crypto_pwhash_strprefix() |
int |
crypto_pwhash(byte[] key,
long keylen,
byte[] passwd,
long passwd_len,
byte[] in_salt,
long opslimit,
NativeLong memlimit,
int alg) |
int |
crypto_scalarmult_base(byte[] pk,
byte[] sk)
Compute Public key from Private Key
|
int |
crypto_secretbox_detached(byte[] cipherText,
byte[] mac,
byte[] message,
long mlen,
byte[] nonce,
byte[] key) |
int |
crypto_secretbox_easy(byte[] cipherText,
byte[] message,
long mlen,
byte[] nonce,
byte[] key) |
NativeLong |
crypto_secretbox_keybytes() |
NativeLong |
crypto_secretbox_macbytes() |
NativeLong |
crypto_secretbox_noncebytes() |
int |
crypto_secretbox_open_detached(byte[] message,
byte[] cipherText,
byte[] mac,
long cipherTextLength,
byte[] nonce,
byte[] key) |
int |
crypto_secretbox_open_easy(byte[] decrypted,
byte[] cipherText,
long ct_len,
byte[] nonce,
byte[] key) |
int |
crypto_sign_bytes() |
int |
crypto_sign_detached(byte[] sig,
long siglen_p,
byte[] m,
long mlen,
byte[] sk) |
int |
crypto_sign_ed25519_bytes() |
int |
crypto_sign_ed25519_pk_to_curve25519(byte[] curvePK,
byte[] edPK) |
int |
crypto_sign_ed25519_sk_to_curve25519(byte[] curveSK,
byte[] edSK) |
int |
crypto_sign_keypair(byte[] pk,
byte[] sk) |
int |
crypto_sign_open(byte[] m,
long mlen_p,
byte[] sm,
long smlen,
byte[] pk) |
long |
crypto_sign_publickeybytes() |
long |
crypto_sign_secretkeybytes() |
int |
crypto_sign_verify_detached(byte[] sig,
byte[] m,
long mlen,
byte[] pk) |
int |
crypto_sign(byte[] sm,
long smlen_p,
byte[] m,
long mlen,
byte[] sk) |
void |
randombytes_buf(byte[] buf,
int size) |
int |
sodium_init() |
int |
sodium_library_version_major() |
int |
sodium_library_version_minor() |
java.lang.String |
sodium_version_string() |
int sodium_library_version_major()
int sodium_library_version_minor()
int sodium_init()
java.lang.String sodium_version_string()
void randombytes_buf(byte[] buf, int size)
int crypto_pwhash_alg_argon2i13()
int crypto_pwhash_alg_argon2id13()
int crypto_pwhash_alg_default()
int crypto_pwhash_saltbytes()
int crypto_pwhash_strbytes()
Pointer crypto_pwhash_strprefix()
long crypto_pwhash_opslimit_interactive()
NativeLong crypto_pwhash_memlimit_interactive()
long crypto_pwhash_opslimit_moderate()
NativeLong crypto_pwhash_memlimit_moderate()
long crypto_pwhash_opslimit_sensitive()
NativeLong crypto_pwhash_memlimit_sensitive()
NativeLong crypto_box_seedbytes()
NativeLong crypto_box_publickeybytes()
NativeLong crypto_box_secretkeybytes()
NativeLong crypto_box_noncebytes()
NativeLong crypto_box_macbytes()
NativeLong crypto_box_sealbytes()
NativeLong crypto_auth_bytes()
NativeLong crypto_auth_keybytes()
int crypto_pwhash(byte[] key, long keylen, byte[] passwd, long passwd_len, byte[] in_salt, long opslimit, NativeLong memlimit, int alg)
int crypto_pwhash_scryptsalsa208sha256(byte[] key, long keyLength, byte[] passwd, long passwd_len, byte[] in_salt, long opslimit, NativeLong memlimit)
int crypto_pwhash_str(byte[] hashedPassword, byte[] password, long passwordLen, long opslimit, NativeLong memlimit)
int crypto_pwhash_str_verify(byte[] hashedPassword, byte[] password, long passwordLen)
NativeLong crypto_pwhash_scryptsalsa208sha256_saltbytes()
NativeLong crypto_secretbox_keybytes()
NativeLong crypto_secretbox_noncebytes()
NativeLong crypto_secretbox_macbytes()
int crypto_secretbox_easy(byte[] cipherText, byte[] message, long mlen, byte[] nonce, byte[] key)
int crypto_secretbox_open_easy(byte[] decrypted, byte[] cipherText, long ct_len, byte[] nonce, byte[] key)
int crypto_secretbox_detached(byte[] cipherText, byte[] mac, byte[] message, long mlen, byte[] nonce, byte[] key)
int crypto_secretbox_open_detached(byte[] message, byte[] cipherText, byte[] mac, long cipherTextLength, byte[] nonce, byte[] key)
int crypto_box_seal(byte[] cipherText, byte[] message, long messageLen, byte[] recipientPublicKey)
int crypto_box_seal_open(byte[] decrypted, byte[] cipherText, long cipherTextLen, byte[] recipientPublicKey, byte[] reciPientPrivateKey)
int crypto_auth(byte[] mac, byte[] message, long messageLen, byte[] key)
int crypto_auth_verify(byte[] mac, byte[] message, long messagelen, byte[] key)
int crypto_box_keypair(byte[] pk, byte[] sk)
int crypto_scalarmult_base(byte[] pk, byte[] sk)
pk
- - Public Key returnssk
- - Private Keyint crypto_box_easy(byte[] cipher_text, byte[] plain_text, long pt_len, byte[] nonce, byte[] public_key, byte[] private_key)
int crypto_box_open_easy(byte[] decrypted, byte[] cipher_text, long ct_len, byte[] nonce, byte[] public_key, byte[] private_key)
long crypto_sign_secretkeybytes()
long crypto_sign_publickeybytes()
int crypto_sign_keypair(byte[] pk, byte[] sk)
int crypto_sign_ed25519_bytes()
int crypto_sign_bytes()
int crypto_sign_detached(byte[] sig, long siglen_p, byte[] m, long mlen, byte[] sk)
int crypto_sign_verify_detached(byte[] sig, byte[] m, long mlen, byte[] pk)
int crypto_sign(byte[] sm, long smlen_p, byte[] m, long mlen, byte[] sk)
int crypto_sign_open(byte[] m, long mlen_p, byte[] sm, long smlen, byte[] pk)
int crypto_generichash(byte[] out, int outlen, byte[] in, int inlen, byte[] key, long keylen)
int crypto_sign_ed25519_sk_to_curve25519(byte[] curveSK, byte[] edSK)
int crypto_sign_ed25519_pk_to_curve25519(byte[] curvePK, byte[] edPK)