-
public abstract class Sodium
-
-
Field Summary
Fields Modifier and Type Field Description public static Base64Facadebase64Facade
-
Method Summary
Modifier and Type Method Description static voidsetBase64Facade(Base64Facade base64Facade)Temporary internal method. native intsodium_init()native voidsodium_increment(Array<byte> n, int nLen)native voidsodium_add(Array<byte> a, Array<byte> b, int len)native intsodium_is_zero(Array<byte> n, int nLen)native voidsodium_stackzero(int len)native intsodium_memcmp(Array<byte> b1, Array<byte> b2, int len)native intsodium_base64_encoded_len(int binLen, int variant)native intsodium_compare(Array<byte> b1, Array<byte> b2, int len)native Stringsodium_bin2hex(Array<byte> hex, int hexMaxLen, Array<byte> bin, int binLen)native intsodium_hex2bin(Array<byte> bin, int binMaxLen, Array<byte> hex, int hexLen, Array<byte> ignore, Pointer binLen, Pointer hexEnd)native Stringsodium_bin2base64(Array<byte> b64, int b64MaxLen, Array<byte> bin, int binLen, int variant)native intsodium_base642bin(Array<byte> bin, int binMaxLen, Array<byte> b64, int b64Len, Array<byte> ignore, Pointer binLen, Pointer b64End, int variant)native voidsodium_memzero(Array<byte> pnt, int len)native intsodium_mlock(Array<byte> addr, int len)native intsodium_munlock(Array<byte> addr, int len)native Pointersodium_malloc(int size)native Pointersodium_allocarray(int count, int size)native voidsodium_free(Pointer p)native intsodium_mprotect_noaccess(Pointer ptr)native intsodium_mprotect_readonly(Pointer ptr)native intsodium_mprotect_readwrite(Pointer ptr)native intsodium_pad(IntByReference paddedBuffLen, Pointer buf, int unpaddedBufLen, int blockSize, int maxBufLen)native intsodium_unpad(IntByReference unPaddedBuffLen, Pointer buf, int paddedBufLen, int blockSize)native longrandombytes_random()native longrandombytes_uniform(int upperBound)native voidrandombytes_buf(Array<byte> buffer, int size)native voidrandombytes_buf_deterministic(Array<byte> buffer, int size, Array<byte> seed)native intcrypto_pwhash(Array<byte> outputHash, long outputHashLen, Array<byte> password, long passwordLen, Array<byte> salt, long opsLimit, NativeLong memLimit, int alg)native intcrypto_pwhash_str(Array<byte> outputStr, Array<byte> password, long passwordLen, long opsLimit, NativeLong memLimit)native intcrypto_pwhash_str_verify(Array<byte> hash, Array<byte> password, long passwordLen)native intcrypto_pwhash_str_needs_rehash(Array<byte> hash, long opsLimit, NativeLong memLimit)native intcrypto_hash_sha256(Array<byte> out, Array<byte> in, long inLen)native intcrypto_hash_sha512(Array<byte> out, Array<byte> in, long inLen)native intcrypto_hash_sha256_init(Hash.State256 state)native intcrypto_hash_sha256_update(Hash.State256 state, Array<byte> in, long inLen)native intcrypto_hash_sha256_final(Hash.State256 state, Array<byte> out)native intcrypto_hash_sha512_init(Hash.State512 state)native intcrypto_hash_sha512_update(Hash.State512 state, Array<byte> in, long inLen)native intcrypto_hash_sha512_final(Hash.State512 state, Array<byte> out)native voidcrypto_kdf_keygen(Array<byte> masterKey)native intcrypto_kdf_derive_from_key(Array<byte> subkey, int subkeyLen, long subkeyId, Array<byte> context, Array<byte> masterKey)native intcrypto_kx_keypair(Array<byte> publicKey, Array<byte> secretKey)native intcrypto_kx_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)native intcrypto_kx_client_session_keys(Array<byte> rx, Array<byte> tx, Array<byte> clientPk, Array<byte> clientSk, Array<byte> serverPk)native intcrypto_kx_server_session_keys(Array<byte> rx, Array<byte> tx, Array<byte> serverPk, Array<byte> serverSk, Array<byte> clientPk)native voidcrypto_secretbox_keygen(Array<byte> key)native intcrypto_secretbox_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_xchacha20poly1305_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_xchacha20poly1305_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_xchacha20poly1305_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_secretbox_xchacha20poly1305_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_keypair(Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)native intcrypto_box_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_beforenm(Array<byte> k, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_easy_afternm(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_open_easy_afternm(Array<byte> message, Array<byte> cipher, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_detached_afternm(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_open_detached_afternm(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_seal(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> publicKey)native intcrypto_box_seal_open(Array<byte> m, Array<byte> cipher, long cipherLen, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_keypair(Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)native intcrypto_box_curve25519xchacha20poly1305_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_beforenm(Array<byte> k, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_box_curve25519xchacha20poly1305_easy_afternm(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_curve25519xchacha20poly1305_open_easy_afternm(Array<byte> message, Array<byte> cipher, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_curve25519xchacha20poly1305_detached_afternm(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_curve25519xchacha20poly1305_open_detached_afternm(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)native intcrypto_box_curve25519xchacha20poly1305_seal(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> publicKey)native intcrypto_box_curve25519xchacha20poly1305_seal_open(Array<byte> m, Array<byte> cipher, long cipherLen, Array<byte> publicKey, Array<byte> secretKey)native intcrypto_sign_init(Sign.StateCryptoSign state)native intcrypto_sign_update(Sign.StateCryptoSign state, Array<byte> chunk, long chunkLength)native intcrypto_sign_final_create(Sign.StateCryptoSign state, Array<byte> sig, Array<long> sigLen, Array<byte> sk)native intcrypto_sign_final_verify(Sign.StateCryptoSign state, Array<byte> sig, Array<byte> pk)native intcrypto_sign_keypair(Array<byte> publicKey, Array<byte> secretKey)native intcrypto_sign_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)native intcrypto_sign(Array<byte> signedMessage, Pointer sigLength, Array<byte> message, long messageLen, Array<byte> secretKey)native intcrypto_sign_open(Array<byte> message, Pointer messageLen, Array<byte> signedMessage, long signedMessageLen, Array<byte> publicKey)native intcrypto_sign_detached(Array<byte> signature, Pointer sigLength, Array<byte> message, long messageLen, Array<byte> secretKey)native intcrypto_sign_verify_detached(Array<byte> signature, Array<byte> message, long messageLen, Array<byte> publicKey)native intcrypto_sign_ed25519_pk_to_curve25519(Array<byte> curve25519PublicKey, Array<byte> ed25519PublicKey)native intcrypto_sign_ed25519_sk_to_curve25519(Array<byte> curve25519SecretKey, Array<byte> ed25519SecretKey)native intcrypto_sign_ed25519_sk_to_seed(Array<byte> seed, Array<byte> ed25519SecretKey)native intcrypto_sign_ed25519_sk_to_pk(Array<byte> ed25519PublicKey, Array<byte> ed25519SecretKey)native voidcrypto_secretstream_xchacha20poly1305_keygen(Array<byte> key)native intcrypto_secretstream_xchacha20poly1305_init_push(SecretStream.State state, Array<byte> header, Array<byte> key)native intcrypto_secretstream_xchacha20poly1305_push(SecretStream.State state, Array<byte> cipher, Array<long> cipherLen, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, byte tag)native intcrypto_secretstream_xchacha20poly1305_init_pull(SecretStream.State state, Array<byte> header, Array<byte> key)native intcrypto_secretstream_xchacha20poly1305_pull(SecretStream.State state, Array<byte> message, Array<long> messageLen, Array<byte> tagAddress, Array<byte> cipher, long cipherLen, Array<byte> additionalData, long additionalDataLen)native voidcrypto_secretstream_xchacha20poly1305_rekey(SecretStream.State state)native intcrypto_secretstream_xchacha20poly1305_abytes()native intcrypto_secretstream_xchacha20poly1305_headerbytes()native intcrypto_secretstream_xchacha20poly1305_keybytes()native intcrypto_secretstream_xchacha20poly1305_messagebytes_max()native bytecrypto_secretstream_xchacha20poly1305_tag_message()native bytecrypto_secretstream_xchacha20poly1305_tag_push()native bytecrypto_secretstream_xchacha20poly1305_tag_rekey()native bytecrypto_secretstream_xchacha20poly1305_tag_final()native voidcrypto_stream_chacha20_keygen(Array<byte> key)native intcrypto_stream_chacha20(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_chacha20_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_chacha20_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)native voidcrypto_stream_chacha20_ietf_keygen(Array<byte> key)native intcrypto_stream_chacha20_ietf(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_chacha20_ietf_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_chacha20_ietf_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)native voidcrypto_stream_salsa20_keygen(Array<byte> key)native intcrypto_stream_salsa20(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_salsa20_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_salsa20_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)native voidcrypto_stream_xsalsa20_keygen(Array<byte> key)native intcrypto_stream_xsalsa20(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_xsalsa20_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_xsalsa20_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)native voidcrypto_stream_keygen(Array<byte> key)native intcrypto_stream(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)native intcrypto_stream_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)native intcrypto_scalarmult_base(Array<byte> publicKey, Array<byte> secretKey)native intcrypto_scalarmult(Array<byte> shared, Array<byte> secretKey, Array<byte> publicKey)native intcrypto_auth(Array<byte> tag, Array<byte> in, long inLen, Array<byte> key)native intcrypto_auth_verify(Array<byte> tag, Array<byte> in, long inLen, Array<byte> key)native voidcrypto_auth_keygen(Array<byte> k)native voidcrypto_auth_hmacsha256_keygen(Array<byte> key)native intcrypto_auth_hmacsha256(Array<byte> out, Array<byte> in, long inLen, Array<byte> k)native intcrypto_auth_hmacsha256_verify(Array<byte> h, Array<byte> in, long inLen, Array<byte> k)native intcrypto_auth_hmacsha256_init(Auth.StateHMAC256 state, Array<byte> key, int keyLen)native intcrypto_auth_hmacsha256_update(Auth.StateHMAC256 state, Array<byte> in, long inLen)native intcrypto_auth_hmacsha256_final(Auth.StateHMAC256 state, Array<byte> out)native voidcrypto_auth_hmacsha512256_keygen(Array<byte> key)native intcrypto_auth_hmacsha512256(Array<byte> out, Array<byte> in, long inLen, Array<byte> k)native intcrypto_auth_hmacsha512256_verify(Array<byte> h, Array<byte> in, long inLen, Array<byte> k)native intcrypto_auth_hmacsha512256_init(Auth.StateHMAC512256 state, Array<byte> key, int keyLen)native intcrypto_auth_hmacsha512256_update(Auth.StateHMAC512256 state, Array<byte> in, long inLen)native intcrypto_auth_hmacsha512256_final(Auth.StateHMAC512256 state, Array<byte> out)native voidcrypto_auth_hmacsha512_keygen(Array<byte> key)native intcrypto_auth_hmacsha512(Array<byte> out, Array<byte> in, long inLen, Array<byte> k)native intcrypto_auth_hmacsha512_verify(Array<byte> h, Array<byte> in, long inLen, Array<byte> k)native intcrypto_auth_hmacsha512_init(Auth.StateHMAC512 state, Array<byte> key, int keyLen)native intcrypto_auth_hmacsha512_update(Auth.StateHMAC512 state, Array<byte> in, long inLen)native intcrypto_auth_hmacsha512_final(Auth.StateHMAC512 state, Array<byte> out)native intcrypto_shorthash(Array<byte> out, Array<byte> in, long inLen, Array<byte> key)native voidcrypto_shorthash_keygen(Array<byte> key)native voidcrypto_generichash_keygen(Array<byte> k)native intcrypto_generichash(Array<byte> out, int outLen, Array<byte> in, long inLen, Array<byte> key, int keyLen)native intcrypto_generichash_init(Pointer state, Array<byte> key, int keyLength, int outLen)native intcrypto_generichash_update(Pointer state, Array<byte> in, long inLen)native intcrypto_generichash_final(Pointer state, Array<byte> out, int outLen)native intcrypto_generichash_statebytes()native intcrypto_generichash_blake2b_salt_personal(Array<byte> subKey, int subKeyLen, Array<byte> in, long inLen, Array<byte> masterKey, int masterKeyLen, Array<byte> subKeyId, Array<byte> context)native intcrypto_core_hchacha20(Array<byte> out, Array<byte> in, Array<byte> k, Array<byte> c)native voidcrypto_aead_chacha20poly1305_keygen(Array<byte> key)native intcrypto_aead_chacha20poly1305_encrypt(Array<byte> c, Array<long> cLen, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)native intcrypto_aead_chacha20poly1305_decrypt(Array<byte> m, Array<long> mLen, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)native intcrypto_aead_chacha20poly1305_encrypt_detached(Array<byte> c, Array<byte> mac, Array<long> macLenAddress, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)native intcrypto_aead_chacha20poly1305_decrypt_detached(Array<byte> m, Array<byte> nsec, Array<byte> c, long cLen, Array<byte> mac, Array<byte> ad, long adLen, Array<byte> npub, Array<byte> k)native voidcrypto_aead_chacha20poly1305_ietf_keygen(Array<byte> key)native intcrypto_aead_chacha20poly1305_ietf_encrypt(Array<byte> c, Array<long> cLen, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)native intcrypto_aead_chacha20poly1305_ietf_decrypt(Array<byte> m, Array<long> mLen, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)native intcrypto_aead_chacha20poly1305_ietf_encrypt_detached(Array<byte> c, Array<byte> mac, Array<long> macLenAddress, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)native intcrypto_aead_chacha20poly1305_ietf_decrypt_detached(Array<byte> m, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> mac, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)native voidcrypto_aead_xchacha20poly1305_ietf_keygen(Array<byte> k)native intcrypto_aead_xchacha20poly1305_ietf_encrypt(Array<byte> c, Array<long> cLen, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)native intcrypto_aead_xchacha20poly1305_ietf_decrypt(Array<byte> m, Array<long> mLen, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)native intcrypto_aead_xchacha20poly1305_ietf_encrypt_detached(Array<byte> cipher, Array<byte> mac, Array<long> macLenAddress, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, Array<byte> key)native intcrypto_aead_xchacha20poly1305_ietf_decrypt_detached(Array<byte> message, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> mac, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, Array<byte> key)native voidcrypto_aead_aes256gcm_keygen(Array<byte> key)native intcrypto_aead_aes256gcm_encrypt(Array<byte> cipher, Array<long> cipherLen, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, Array<byte> key)native intcrypto_aead_aes256gcm_decrypt(Array<byte> message, Array<long> messageLen, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, Array<byte> key)native intcrypto_aead_aes256gcm_encrypt_detached(Array<byte> cipher, Array<byte> mac, Array<long> macLenAddress, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, Array<byte> key)native intcrypto_aead_aes256gcm_decrypt_detached(Array<byte> message, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> mac, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, Array<byte> key)native intcrypto_aead_aes256gcm_beforenm(AEAD.StateAES state, Array<byte> key)native intcrypto_aead_aes256gcm_encrypt_afternm(Array<byte> cipher, Array<long> cipherLength, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, AEAD.StateAES state)native intcrypto_aead_aes256gcm_decrypt_afternm(Array<byte> message, Array<long> messageLength, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, AEAD.StateAES state)native intcrypto_aead_aes256gcm_encrypt_detached_afternm(Array<byte> cipher, Array<byte> mac, Array<long> macLenAddress, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, AEAD.StateAES state)native intcrypto_aead_aes256gcm_decrypt_detached_afternm(Array<byte> message, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> mac, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, AEAD.StateAES state)native intcrypto_aead_aes256gcm_is_available()native intcrypto_core_ristretto255_is_valid_point(Array<byte> p)native voidcrypto_core_ristretto255_random(Array<byte> p)native intcrypto_core_ristretto255_from_hash(Array<byte> p, Array<byte> r)native intcrypto_scalarmult_ristretto255(Array<byte> q, Array<byte> n, Array<byte> p)native intcrypto_scalarmult_ristretto255_base(Array<byte> q, Array<byte> n)native intcrypto_core_ristretto255_add(Array<byte> r, Array<byte> p, Array<byte> q)native intcrypto_core_ristretto255_sub(Array<byte> r, Array<byte> p, Array<byte> q)native voidcrypto_core_ristretto255_scalar_random(Array<byte> r)native voidcrypto_core_ristretto255_scalar_reduce(Array<byte> r, Array<byte> s)native intcrypto_core_ristretto255_scalar_invert(Array<byte> recip, Array<byte> s)native voidcrypto_core_ristretto255_scalar_negate(Array<byte> neg, Array<byte> s)native voidcrypto_core_ristretto255_scalar_complement(Array<byte> comp, Array<byte> s)native voidcrypto_core_ristretto255_scalar_add(Array<byte> z, Array<byte> x, Array<byte> y)native voidcrypto_core_ristretto255_scalar_sub(Array<byte> z, Array<byte> x, Array<byte> y)native voidcrypto_core_ristretto255_scalar_mul(Array<byte> z, Array<byte> x, Array<byte> y)-
-
Method Detail
-
setBase64Facade
static void setBase64Facade(Base64Facade base64Facade)
Temporary internal method. Do not use.
-
sodium_init
native int sodium_init()
-
sodium_increment
native void sodium_increment(Array<byte> n, int nLen)
-
sodium_add
native void sodium_add(Array<byte> a, Array<byte> b, int len)
-
sodium_is_zero
native int sodium_is_zero(Array<byte> n, int nLen)
-
sodium_stackzero
native void sodium_stackzero(int len)
-
sodium_memcmp
native int sodium_memcmp(Array<byte> b1, Array<byte> b2, int len)
-
sodium_base64_encoded_len
native int sodium_base64_encoded_len(int binLen, int variant)
-
sodium_compare
native int sodium_compare(Array<byte> b1, Array<byte> b2, int len)
-
sodium_bin2hex
native String sodium_bin2hex(Array<byte> hex, int hexMaxLen, Array<byte> bin, int binLen)
-
sodium_hex2bin
native int sodium_hex2bin(Array<byte> bin, int binMaxLen, Array<byte> hex, int hexLen, Array<byte> ignore, Pointer binLen, Pointer hexEnd)
-
sodium_bin2base64
native String sodium_bin2base64(Array<byte> b64, int b64MaxLen, Array<byte> bin, int binLen, int variant)
-
sodium_base642bin
native int sodium_base642bin(Array<byte> bin, int binMaxLen, Array<byte> b64, int b64Len, Array<byte> ignore, Pointer binLen, Pointer b64End, int variant)
-
sodium_memzero
native void sodium_memzero(Array<byte> pnt, int len)
-
sodium_mlock
native int sodium_mlock(Array<byte> addr, int len)
-
sodium_munlock
native int sodium_munlock(Array<byte> addr, int len)
-
sodium_malloc
native Pointer sodium_malloc(int size)
-
sodium_allocarray
native Pointer sodium_allocarray(int count, int size)
-
sodium_free
native void sodium_free(Pointer p)
-
sodium_mprotect_noaccess
native int sodium_mprotect_noaccess(Pointer ptr)
-
sodium_mprotect_readonly
native int sodium_mprotect_readonly(Pointer ptr)
-
sodium_mprotect_readwrite
native int sodium_mprotect_readwrite(Pointer ptr)
-
sodium_pad
native int sodium_pad(IntByReference paddedBuffLen, Pointer buf, int unpaddedBufLen, int blockSize, int maxBufLen)
-
sodium_unpad
native int sodium_unpad(IntByReference unPaddedBuffLen, Pointer buf, int paddedBufLen, int blockSize)
-
randombytes_random
native long randombytes_random()
-
randombytes_uniform
native long randombytes_uniform(int upperBound)
-
randombytes_buf
native void randombytes_buf(Array<byte> buffer, int size)
-
randombytes_buf_deterministic
native void randombytes_buf_deterministic(Array<byte> buffer, int size, Array<byte> seed)
-
crypto_pwhash
native int crypto_pwhash(Array<byte> outputHash, long outputHashLen, Array<byte> password, long passwordLen, Array<byte> salt, long opsLimit, NativeLong memLimit, int alg)
-
crypto_pwhash_str
native int crypto_pwhash_str(Array<byte> outputStr, Array<byte> password, long passwordLen, long opsLimit, NativeLong memLimit)
-
crypto_pwhash_str_verify
native int crypto_pwhash_str_verify(Array<byte> hash, Array<byte> password, long passwordLen)
-
crypto_pwhash_str_needs_rehash
native int crypto_pwhash_str_needs_rehash(Array<byte> hash, long opsLimit, NativeLong memLimit)
-
crypto_hash_sha256
native int crypto_hash_sha256(Array<byte> out, Array<byte> in, long inLen)
-
crypto_hash_sha512
native int crypto_hash_sha512(Array<byte> out, Array<byte> in, long inLen)
-
crypto_hash_sha256_init
native int crypto_hash_sha256_init(Hash.State256 state)
-
crypto_hash_sha256_update
native int crypto_hash_sha256_update(Hash.State256 state, Array<byte> in, long inLen)
-
crypto_hash_sha256_final
native int crypto_hash_sha256_final(Hash.State256 state, Array<byte> out)
-
crypto_hash_sha512_init
native int crypto_hash_sha512_init(Hash.State512 state)
-
crypto_hash_sha512_update
native int crypto_hash_sha512_update(Hash.State512 state, Array<byte> in, long inLen)
-
crypto_hash_sha512_final
native int crypto_hash_sha512_final(Hash.State512 state, Array<byte> out)
-
crypto_kdf_keygen
native void crypto_kdf_keygen(Array<byte> masterKey)
-
crypto_kdf_derive_from_key
native int crypto_kdf_derive_from_key(Array<byte> subkey, int subkeyLen, long subkeyId, Array<byte> context, Array<byte> masterKey)
-
crypto_kx_keypair
native int crypto_kx_keypair(Array<byte> publicKey, Array<byte> secretKey)
-
crypto_kx_seed_keypair
native int crypto_kx_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)
-
crypto_kx_client_session_keys
native int crypto_kx_client_session_keys(Array<byte> rx, Array<byte> tx, Array<byte> clientPk, Array<byte> clientSk, Array<byte> serverPk)
-
crypto_kx_server_session_keys
native int crypto_kx_server_session_keys(Array<byte> rx, Array<byte> tx, Array<byte> serverPk, Array<byte> serverSk, Array<byte> clientPk)
-
crypto_secretbox_keygen
native void crypto_secretbox_keygen(Array<byte> key)
-
crypto_secretbox_easy
native int crypto_secretbox_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_open_easy
native int crypto_secretbox_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_detached
native int crypto_secretbox_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_open_detached
native int crypto_secretbox_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_xchacha20poly1305_easy
native int crypto_secretbox_xchacha20poly1305_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_xchacha20poly1305_open_easy
native int crypto_secretbox_xchacha20poly1305_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_xchacha20poly1305_detached
native int crypto_secretbox_xchacha20poly1305_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_secretbox_xchacha20poly1305_open_detached
native int crypto_secretbox_xchacha20poly1305_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_keypair
native int crypto_box_keypair(Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_seed_keypair
native int crypto_box_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)
-
crypto_box_easy
native int crypto_box_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_open_easy
native int crypto_box_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_detached
native int crypto_box_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_open_detached
native int crypto_box_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_beforenm
native int crypto_box_beforenm(Array<byte> k, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_easy_afternm
native int crypto_box_easy_afternm(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_open_easy_afternm
native int crypto_box_open_easy_afternm(Array<byte> message, Array<byte> cipher, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_detached_afternm
native int crypto_box_detached_afternm(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_open_detached_afternm
native int crypto_box_open_detached_afternm(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_seal
native int crypto_box_seal(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> publicKey)
-
crypto_box_seal_open
native int crypto_box_seal_open(Array<byte> m, Array<byte> cipher, long cipherLen, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_keypair
native int crypto_box_curve25519xchacha20poly1305_keypair(Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_seed_keypair
native int crypto_box_curve25519xchacha20poly1305_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)
-
crypto_box_curve25519xchacha20poly1305_easy
native int crypto_box_curve25519xchacha20poly1305_easy(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_open_easy
native int crypto_box_curve25519xchacha20poly1305_open_easy(Array<byte> message, Array<byte> cipherText, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_detached
native int crypto_box_curve25519xchacha20poly1305_detached(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_open_detached
native int crypto_box_curve25519xchacha20poly1305_open_detached(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_beforenm
native int crypto_box_curve25519xchacha20poly1305_beforenm(Array<byte> k, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_box_curve25519xchacha20poly1305_easy_afternm
native int crypto_box_curve25519xchacha20poly1305_easy_afternm(Array<byte> cipherText, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_curve25519xchacha20poly1305_open_easy_afternm
native int crypto_box_curve25519xchacha20poly1305_open_easy_afternm(Array<byte> message, Array<byte> cipher, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_curve25519xchacha20poly1305_detached_afternm
native int crypto_box_curve25519xchacha20poly1305_detached_afternm(Array<byte> cipherText, Array<byte> mac, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_curve25519xchacha20poly1305_open_detached_afternm
native int crypto_box_curve25519xchacha20poly1305_open_detached_afternm(Array<byte> message, Array<byte> cipherText, Array<byte> mac, long cipherTextLen, Array<byte> nonce, Array<byte> key)
-
crypto_box_curve25519xchacha20poly1305_seal
native int crypto_box_curve25519xchacha20poly1305_seal(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> publicKey)
-
crypto_box_curve25519xchacha20poly1305_seal_open
native int crypto_box_curve25519xchacha20poly1305_seal_open(Array<byte> m, Array<byte> cipher, long cipherLen, Array<byte> publicKey, Array<byte> secretKey)
-
crypto_sign_init
native int crypto_sign_init(Sign.StateCryptoSign state)
-
crypto_sign_update
native int crypto_sign_update(Sign.StateCryptoSign state, Array<byte> chunk, long chunkLength)
-
crypto_sign_final_create
native int crypto_sign_final_create(Sign.StateCryptoSign state, Array<byte> sig, Array<long> sigLen, Array<byte> sk)
-
crypto_sign_final_verify
native int crypto_sign_final_verify(Sign.StateCryptoSign state, Array<byte> sig, Array<byte> pk)
-
crypto_sign_keypair
native int crypto_sign_keypair(Array<byte> publicKey, Array<byte> secretKey)
-
crypto_sign_seed_keypair
native int crypto_sign_seed_keypair(Array<byte> publicKey, Array<byte> secretKey, Array<byte> seed)
-
crypto_sign
native int crypto_sign(Array<byte> signedMessage, Pointer sigLength, Array<byte> message, long messageLen, Array<byte> secretKey)
-
crypto_sign_open
native int crypto_sign_open(Array<byte> message, Pointer messageLen, Array<byte> signedMessage, long signedMessageLen, Array<byte> publicKey)
-
crypto_sign_detached
native int crypto_sign_detached(Array<byte> signature, Pointer sigLength, Array<byte> message, long messageLen, Array<byte> secretKey)
-
crypto_sign_verify_detached
native int crypto_sign_verify_detached(Array<byte> signature, Array<byte> message, long messageLen, Array<byte> publicKey)
-
crypto_sign_ed25519_pk_to_curve25519
native int crypto_sign_ed25519_pk_to_curve25519(Array<byte> curve25519PublicKey, Array<byte> ed25519PublicKey)
-
crypto_sign_ed25519_sk_to_curve25519
native int crypto_sign_ed25519_sk_to_curve25519(Array<byte> curve25519SecretKey, Array<byte> ed25519SecretKey)
-
crypto_sign_ed25519_sk_to_seed
native int crypto_sign_ed25519_sk_to_seed(Array<byte> seed, Array<byte> ed25519SecretKey)
-
crypto_sign_ed25519_sk_to_pk
native int crypto_sign_ed25519_sk_to_pk(Array<byte> ed25519PublicKey, Array<byte> ed25519SecretKey)
-
crypto_secretstream_xchacha20poly1305_keygen
native void crypto_secretstream_xchacha20poly1305_keygen(Array<byte> key)
-
crypto_secretstream_xchacha20poly1305_init_push
native int crypto_secretstream_xchacha20poly1305_init_push(SecretStream.State state, Array<byte> header, Array<byte> key)
-
crypto_secretstream_xchacha20poly1305_push
native int crypto_secretstream_xchacha20poly1305_push(SecretStream.State state, Array<byte> cipher, Array<long> cipherLen, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, byte tag)
-
crypto_secretstream_xchacha20poly1305_init_pull
native int crypto_secretstream_xchacha20poly1305_init_pull(SecretStream.State state, Array<byte> header, Array<byte> key)
-
crypto_secretstream_xchacha20poly1305_pull
native int crypto_secretstream_xchacha20poly1305_pull(SecretStream.State state, Array<byte> message, Array<long> messageLen, Array<byte> tagAddress, Array<byte> cipher, long cipherLen, Array<byte> additionalData, long additionalDataLen)
-
crypto_secretstream_xchacha20poly1305_rekey
native void crypto_secretstream_xchacha20poly1305_rekey(SecretStream.State state)
-
crypto_secretstream_xchacha20poly1305_abytes
native int crypto_secretstream_xchacha20poly1305_abytes()
-
crypto_secretstream_xchacha20poly1305_headerbytes
native int crypto_secretstream_xchacha20poly1305_headerbytes()
-
crypto_secretstream_xchacha20poly1305_keybytes
native int crypto_secretstream_xchacha20poly1305_keybytes()
-
crypto_secretstream_xchacha20poly1305_messagebytes_max
native int crypto_secretstream_xchacha20poly1305_messagebytes_max()
-
crypto_secretstream_xchacha20poly1305_tag_message
native byte crypto_secretstream_xchacha20poly1305_tag_message()
-
crypto_secretstream_xchacha20poly1305_tag_push
native byte crypto_secretstream_xchacha20poly1305_tag_push()
-
crypto_secretstream_xchacha20poly1305_tag_rekey
native byte crypto_secretstream_xchacha20poly1305_tag_rekey()
-
crypto_secretstream_xchacha20poly1305_tag_final
native byte crypto_secretstream_xchacha20poly1305_tag_final()
-
crypto_stream_chacha20_keygen
native void crypto_stream_chacha20_keygen(Array<byte> key)
-
crypto_stream_chacha20
native int crypto_stream_chacha20(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_chacha20_xor
native int crypto_stream_chacha20_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_chacha20_xor_ic
native int crypto_stream_chacha20_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)
-
crypto_stream_chacha20_ietf_keygen
native void crypto_stream_chacha20_ietf_keygen(Array<byte> key)
-
crypto_stream_chacha20_ietf
native int crypto_stream_chacha20_ietf(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_chacha20_ietf_xor
native int crypto_stream_chacha20_ietf_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_chacha20_ietf_xor_ic
native int crypto_stream_chacha20_ietf_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)
-
crypto_stream_salsa20_keygen
native void crypto_stream_salsa20_keygen(Array<byte> key)
-
crypto_stream_salsa20
native int crypto_stream_salsa20(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_salsa20_xor
native int crypto_stream_salsa20_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_salsa20_xor_ic
native int crypto_stream_salsa20_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)
-
crypto_stream_xsalsa20_keygen
native void crypto_stream_xsalsa20_keygen(Array<byte> key)
-
crypto_stream_xsalsa20
native int crypto_stream_xsalsa20(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_xsalsa20_xor
native int crypto_stream_xsalsa20_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_xsalsa20_xor_ic
native int crypto_stream_xsalsa20_xor_ic(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, long ic, Array<byte> key)
-
crypto_stream_keygen
native void crypto_stream_keygen(Array<byte> key)
-
crypto_stream
native int crypto_stream(Array<byte> c, long cLen, Array<byte> nonce, Array<byte> key)
-
crypto_stream_xor
native int crypto_stream_xor(Array<byte> cipher, Array<byte> message, long messageLen, Array<byte> nonce, Array<byte> key)
-
crypto_scalarmult_base
native int crypto_scalarmult_base(Array<byte> publicKey, Array<byte> secretKey)
-
crypto_scalarmult
native int crypto_scalarmult(Array<byte> shared, Array<byte> secretKey, Array<byte> publicKey)
-
crypto_auth
native int crypto_auth(Array<byte> tag, Array<byte> in, long inLen, Array<byte> key)
-
crypto_auth_verify
native int crypto_auth_verify(Array<byte> tag, Array<byte> in, long inLen, Array<byte> key)
-
crypto_auth_keygen
native void crypto_auth_keygen(Array<byte> k)
-
crypto_auth_hmacsha256_keygen
native void crypto_auth_hmacsha256_keygen(Array<byte> key)
-
crypto_auth_hmacsha256
native int crypto_auth_hmacsha256(Array<byte> out, Array<byte> in, long inLen, Array<byte> k)
-
crypto_auth_hmacsha256_verify
native int crypto_auth_hmacsha256_verify(Array<byte> h, Array<byte> in, long inLen, Array<byte> k)
-
crypto_auth_hmacsha256_init
native int crypto_auth_hmacsha256_init(Auth.StateHMAC256 state, Array<byte> key, int keyLen)
-
crypto_auth_hmacsha256_update
native int crypto_auth_hmacsha256_update(Auth.StateHMAC256 state, Array<byte> in, long inLen)
-
crypto_auth_hmacsha256_final
native int crypto_auth_hmacsha256_final(Auth.StateHMAC256 state, Array<byte> out)
-
crypto_auth_hmacsha512256_keygen
native void crypto_auth_hmacsha512256_keygen(Array<byte> key)
-
crypto_auth_hmacsha512256
native int crypto_auth_hmacsha512256(Array<byte> out, Array<byte> in, long inLen, Array<byte> k)
-
crypto_auth_hmacsha512256_verify
native int crypto_auth_hmacsha512256_verify(Array<byte> h, Array<byte> in, long inLen, Array<byte> k)
-
crypto_auth_hmacsha512256_init
native int crypto_auth_hmacsha512256_init(Auth.StateHMAC512256 state, Array<byte> key, int keyLen)
-
crypto_auth_hmacsha512256_update
native int crypto_auth_hmacsha512256_update(Auth.StateHMAC512256 state, Array<byte> in, long inLen)
-
crypto_auth_hmacsha512256_final
native int crypto_auth_hmacsha512256_final(Auth.StateHMAC512256 state, Array<byte> out)
-
crypto_auth_hmacsha512_keygen
native void crypto_auth_hmacsha512_keygen(Array<byte> key)
-
crypto_auth_hmacsha512
native int crypto_auth_hmacsha512(Array<byte> out, Array<byte> in, long inLen, Array<byte> k)
-
crypto_auth_hmacsha512_verify
native int crypto_auth_hmacsha512_verify(Array<byte> h, Array<byte> in, long inLen, Array<byte> k)
-
crypto_auth_hmacsha512_init
native int crypto_auth_hmacsha512_init(Auth.StateHMAC512 state, Array<byte> key, int keyLen)
-
crypto_auth_hmacsha512_update
native int crypto_auth_hmacsha512_update(Auth.StateHMAC512 state, Array<byte> in, long inLen)
-
crypto_auth_hmacsha512_final
native int crypto_auth_hmacsha512_final(Auth.StateHMAC512 state, Array<byte> out)
-
crypto_shorthash
native int crypto_shorthash(Array<byte> out, Array<byte> in, long inLen, Array<byte> key)
-
crypto_shorthash_keygen
native void crypto_shorthash_keygen(Array<byte> key)
-
crypto_generichash_keygen
native void crypto_generichash_keygen(Array<byte> k)
-
crypto_generichash
native int crypto_generichash(Array<byte> out, int outLen, Array<byte> in, long inLen, Array<byte> key, int keyLen)
-
crypto_generichash_init
native int crypto_generichash_init(Pointer state, Array<byte> key, int keyLength, int outLen)
-
crypto_generichash_update
native int crypto_generichash_update(Pointer state, Array<byte> in, long inLen)
-
crypto_generichash_final
native int crypto_generichash_final(Pointer state, Array<byte> out, int outLen)
-
crypto_generichash_statebytes
native int crypto_generichash_statebytes()
-
crypto_generichash_blake2b_salt_personal
native int crypto_generichash_blake2b_salt_personal(Array<byte> subKey, int subKeyLen, Array<byte> in, long inLen, Array<byte> masterKey, int masterKeyLen, Array<byte> subKeyId, Array<byte> context)
-
crypto_core_hchacha20
native int crypto_core_hchacha20(Array<byte> out, Array<byte> in, Array<byte> k, Array<byte> c)
-
crypto_aead_chacha20poly1305_keygen
native void crypto_aead_chacha20poly1305_keygen(Array<byte> key)
-
crypto_aead_chacha20poly1305_encrypt
native int crypto_aead_chacha20poly1305_encrypt(Array<byte> c, Array<long> cLen, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)
-
crypto_aead_chacha20poly1305_decrypt
native int crypto_aead_chacha20poly1305_decrypt(Array<byte> m, Array<long> mLen, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)
-
crypto_aead_chacha20poly1305_encrypt_detached
native int crypto_aead_chacha20poly1305_encrypt_detached(Array<byte> c, Array<byte> mac, Array<long> macLenAddress, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)
-
crypto_aead_chacha20poly1305_decrypt_detached
native int crypto_aead_chacha20poly1305_decrypt_detached(Array<byte> m, Array<byte> nsec, Array<byte> c, long cLen, Array<byte> mac, Array<byte> ad, long adLen, Array<byte> npub, Array<byte> k)
-
crypto_aead_chacha20poly1305_ietf_keygen
native void crypto_aead_chacha20poly1305_ietf_keygen(Array<byte> key)
-
crypto_aead_chacha20poly1305_ietf_encrypt
native int crypto_aead_chacha20poly1305_ietf_encrypt(Array<byte> c, Array<long> cLen, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)
-
crypto_aead_chacha20poly1305_ietf_decrypt
native int crypto_aead_chacha20poly1305_ietf_decrypt(Array<byte> m, Array<long> mLen, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)
-
crypto_aead_chacha20poly1305_ietf_encrypt_detached
native int crypto_aead_chacha20poly1305_ietf_encrypt_detached(Array<byte> c, Array<byte> mac, Array<long> macLenAddress, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)
-
crypto_aead_chacha20poly1305_ietf_decrypt_detached
native int crypto_aead_chacha20poly1305_ietf_decrypt_detached(Array<byte> m, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> mac, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)
-
crypto_aead_xchacha20poly1305_ietf_keygen
native void crypto_aead_xchacha20poly1305_ietf_keygen(Array<byte> k)
-
crypto_aead_xchacha20poly1305_ietf_encrypt
native int crypto_aead_xchacha20poly1305_ietf_encrypt(Array<byte> c, Array<long> cLen, Array<byte> m, long mLen, Array<byte> ad, long adLen, Array<byte> nSec, Array<byte> nPub, Array<byte> k)
-
crypto_aead_xchacha20poly1305_ietf_decrypt
native int crypto_aead_xchacha20poly1305_ietf_decrypt(Array<byte> m, Array<long> mLen, Array<byte> nSec, Array<byte> c, long cLen, Array<byte> ad, long adLen, Array<byte> nPub, Array<byte> k)
-
crypto_aead_xchacha20poly1305_ietf_encrypt_detached
native int crypto_aead_xchacha20poly1305_ietf_encrypt_detached(Array<byte> cipher, Array<byte> mac, Array<long> macLenAddress, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, Array<byte> key)
-
crypto_aead_xchacha20poly1305_ietf_decrypt_detached
native int crypto_aead_xchacha20poly1305_ietf_decrypt_detached(Array<byte> message, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> mac, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, Array<byte> key)
-
crypto_aead_aes256gcm_keygen
native void crypto_aead_aes256gcm_keygen(Array<byte> key)
-
crypto_aead_aes256gcm_encrypt
native int crypto_aead_aes256gcm_encrypt(Array<byte> cipher, Array<long> cipherLen, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, Array<byte> key)
-
crypto_aead_aes256gcm_decrypt
native int crypto_aead_aes256gcm_decrypt(Array<byte> message, Array<long> messageLen, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, Array<byte> key)
-
crypto_aead_aes256gcm_encrypt_detached
native int crypto_aead_aes256gcm_encrypt_detached(Array<byte> cipher, Array<byte> mac, Array<long> macLenAddress, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, Array<byte> key)
-
crypto_aead_aes256gcm_decrypt_detached
native int crypto_aead_aes256gcm_decrypt_detached(Array<byte> message, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> mac, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, Array<byte> key)
-
crypto_aead_aes256gcm_beforenm
native int crypto_aead_aes256gcm_beforenm(AEAD.StateAES state, Array<byte> key)
-
crypto_aead_aes256gcm_encrypt_afternm
native int crypto_aead_aes256gcm_encrypt_afternm(Array<byte> cipher, Array<long> cipherLength, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, AEAD.StateAES state)
-
crypto_aead_aes256gcm_decrypt_afternm
native int crypto_aead_aes256gcm_decrypt_afternm(Array<byte> message, Array<long> messageLength, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, AEAD.StateAES state)
-
crypto_aead_aes256gcm_encrypt_detached_afternm
native int crypto_aead_aes256gcm_encrypt_detached_afternm(Array<byte> cipher, Array<byte> mac, Array<long> macLenAddress, Array<byte> message, long messageLen, Array<byte> additionalData, long additionalDataLen, Array<byte> nSec, Array<byte> nPub, AEAD.StateAES state)
-
crypto_aead_aes256gcm_decrypt_detached_afternm
native int crypto_aead_aes256gcm_decrypt_detached_afternm(Array<byte> message, Array<byte> nSec, Array<byte> cipher, long cipherLen, Array<byte> mac, Array<byte> additionalData, long additionalDataLen, Array<byte> nPub, AEAD.StateAES state)
-
crypto_aead_aes256gcm_is_available
native int crypto_aead_aes256gcm_is_available()
-
crypto_core_ristretto255_is_valid_point
native int crypto_core_ristretto255_is_valid_point(Array<byte> p)
-
crypto_core_ristretto255_random
native void crypto_core_ristretto255_random(Array<byte> p)
-
crypto_core_ristretto255_from_hash
native int crypto_core_ristretto255_from_hash(Array<byte> p, Array<byte> r)
-
crypto_scalarmult_ristretto255
native int crypto_scalarmult_ristretto255(Array<byte> q, Array<byte> n, Array<byte> p)
-
crypto_scalarmult_ristretto255_base
native int crypto_scalarmult_ristretto255_base(Array<byte> q, Array<byte> n)
-
crypto_core_ristretto255_add
native int crypto_core_ristretto255_add(Array<byte> r, Array<byte> p, Array<byte> q)
-
crypto_core_ristretto255_sub
native int crypto_core_ristretto255_sub(Array<byte> r, Array<byte> p, Array<byte> q)
-
crypto_core_ristretto255_scalar_random
native void crypto_core_ristretto255_scalar_random(Array<byte> r)
-
crypto_core_ristretto255_scalar_reduce
native void crypto_core_ristretto255_scalar_reduce(Array<byte> r, Array<byte> s)
-
crypto_core_ristretto255_scalar_invert
native int crypto_core_ristretto255_scalar_invert(Array<byte> recip, Array<byte> s)
-
crypto_core_ristretto255_scalar_negate
native void crypto_core_ristretto255_scalar_negate(Array<byte> neg, Array<byte> s)
-
crypto_core_ristretto255_scalar_complement
native void crypto_core_ristretto255_scalar_complement(Array<byte> comp, Array<byte> s)
-
crypto_core_ristretto255_scalar_add
native void crypto_core_ristretto255_scalar_add(Array<byte> z, Array<byte> x, Array<byte> y)
-
crypto_core_ristretto255_scalar_sub
native void crypto_core_ristretto255_scalar_sub(Array<byte> z, Array<byte> x, Array<byte> y)
-
crypto_core_ristretto255_scalar_mul
native void crypto_core_ristretto255_scalar_mul(Array<byte> z, Array<byte> x, Array<byte> y)
-
-
-
-