crypto
Module Contents
alltypes
Module Contents
class AES256GCM : AutoCloseable
Module Contents
fun close(): Unit
@Nullable fun decrypt(cipherText: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decrypt(cipherText: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable fun decrypt(cipherText: Bytes!, data: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decrypt(cipherText: ByteArray!, data: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable fun decryptDetached(cipherText: Bytes!, mac: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable fun decryptDetached(cipherText: Bytes!, mac: Bytes!, data: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, data: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
fun encrypt(message: Bytes!, nonce: Nonce!): Bytes!
fun encrypt(message: ByteArray!, nonce: Nonce!): ByteArray!
fun encrypt(message: Bytes!, data: Bytes!, nonce: Nonce!): Bytes!
fun encrypt(message: ByteArray!, data: ByteArray!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
fun encryptDetached(message: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: Bytes!, data: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: ByteArray!, data: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
protected fun finalize(): Unit
static fun forKey(key: Key!): AES256GCM!
static fun isAvailable(): Boolean
class Key : Destroyable
class Nonce
class Allocated : Destroyable
class Auth
class BLS12381
Module Contents
static fun sign(keyPair: KeyPair!, message: ByteArray!, domain: Int): SignatureAndPublicKey!
static fun sign(keyPair: KeyPair!, message: Bytes!, domain: Int): SignatureAndPublicKey!
static fun verify(publicKey: PublicKey!, signature: Signature!, message: ByteArray!, domain: Int): Boolean
static fun verify(publicKey: PublicKey!, signature: Signature!, message: Bytes!, domain: Int): Boolean
static fun verify(sigAndPubKey: SignatureAndPublicKey!, message: ByteArray!, domain: Int): Boolean
static fun verify(sigAndPubKey: SignatureAndPublicKey!, message: Bytes!, domain: Int): Boolean
class Box : AutoCloseable
Module Contents
fun close(): Unit
@Nullable fun decrypt(cipherText: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decrypt(cipherText: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): ByteArray?
@Nullable fun decryptDetached(cipherText: Bytes!, mac: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptSealed(cipherText: Bytes!, sender: PublicKey!, receiver: SecretKey!): Bytes?
@Nullable static fun decryptSealed(cipherText: ByteArray!, sender: PublicKey!, receiver: SecretKey!): ByteArray?
fun encrypt(message: Bytes!, nonce: Nonce!): Bytes!
fun encrypt(message: ByteArray!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): ByteArray!
fun encryptDetached(message: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptSealed(message: Bytes!, receiver: PublicKey!): Bytes!
static fun encryptSealed(message: ByteArray!, receiver: PublicKey!): ByteArray!
protected fun finalize(): Unit
static fun forKeys(receiver: PublicKey!, sender: SecretKey!): Box!
class KeyPair
class Nonce
class PublicKey : Destroyable
class SecretKey : Destroyable
class Seed
class Concatenate
interface DetachedEncryptionResult
class DiffieHelman
class GenericHash
class Hash
class HMACSHA256
class HMACSHA512
class HMACSHA512256
class InvalidSEC256K1SecretKeyStoreException : RuntimeException
class KeyDerivation
class KeyExchange
class KeyPair
interface LibSodium
Module Contents
abstract fun buf(buf: ByteArray!, size: Long): Unit
abstract fun close(): Int
abstract fun crypto_aead_aes256gcm_abytes(): Long
abstract fun crypto_aead_aes256gcm_beforenm(ctx_: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: Pointer!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt_afternm(m: ByteArray!, mlen_p: LongLongByReference!, nsec: Pointer!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt_detached(m: ByteArray!, nsec: Pointer!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt_detached_afternm(m: ByteArray!, nsec: Pointer!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt_afternm(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt_detached_afternm(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_is_available(): Int
abstract fun crypto_aead_aes256gcm_keybytes(): Long
abstract fun crypto_aead_aes256gcm_keygen(k: Pointer!): Unit
abstract fun crypto_aead_aes256gcm_messagebytes_max(): Long
abstract fun crypto_aead_aes256gcm_npubbytes(): Long
abstract fun crypto_aead_aes256gcm_nsecbytes(): Long
abstract fun crypto_aead_aes256gcm_statebytes(): Long
abstract fun crypto_aead_chacha20poly1305_abytes(): Long
abstract fun crypto_aead_chacha20poly1305_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: ByteArray!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_decrypt_detached(m: ByteArray!, nsec: ByteArray!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_abytes(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: ByteArray!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_decrypt_detached(m: ByteArray!, nsec: ByteArray!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_keybytes(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_keygen(k: ByteArray!): Unit
abstract fun crypto_aead_chacha20poly1305_ietf_messagebytes_max(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_npubbytes(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_nsecbytes(): Long
abstract fun crypto_aead_chacha20poly1305_keybytes(): Long
abstract fun crypto_aead_chacha20poly1305_keygen(k: ByteArray!): Unit
abstract fun crypto_aead_chacha20poly1305_messagebytes_max(): Long
abstract fun crypto_aead_chacha20poly1305_npubbytes(): Long
abstract fun crypto_aead_chacha20poly1305_nsecbytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_abytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: ByteArray!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_decrypt_detached(m: ByteArray!, nsec: ByteArray!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_keybytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_keygen(k: Pointer!): Unit
abstract fun crypto_aead_xchacha20poly1305_ietf_messagebytes_max(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_npubbytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_nsecbytes(): Long
abstract fun crypto_auth(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_bytes(): Long
abstract fun crypto_auth_hmacsha256(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha256_bytes(): Long
abstract fun crypto_auth_hmacsha256_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_auth_hmacsha256_init(state: Pointer!, key: ByteArray!, keylen: Long): Int
abstract fun crypto_auth_hmacsha256_keybytes(): Long
abstract fun crypto_auth_hmacsha256_keygen(k: ByteArray!): Unit
abstract fun crypto_auth_hmacsha256_statebytes(): Long
abstract fun crypto_auth_hmacsha256_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_auth_hmacsha256_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512256(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512256_bytes(): Long
abstract fun crypto_auth_hmacsha512256_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_auth_hmacsha512256_init(state: Pointer!, key: ByteArray!, keylen: Long): Int
abstract fun crypto_auth_hmacsha512256_keybytes(): Long
abstract fun crypto_auth_hmacsha512256_keygen(k: ByteArray!): Unit
abstract fun crypto_auth_hmacsha512256_statebytes(): Long
abstract fun crypto_auth_hmacsha512256_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_auth_hmacsha512256_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512_bytes(): Long
abstract fun crypto_auth_hmacsha512_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_auth_hmacsha512_init(state: Pointer!, key: ByteArray!, keylen: Long): Int
abstract fun crypto_auth_hmacsha512_keybytes(): Long
abstract fun crypto_auth_hmacsha512_keygen(k: ByteArray!): Unit
abstract fun crypto_auth_hmacsha512_statebytes(): Long
abstract fun crypto_auth_hmacsha512_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_auth_hmacsha512_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_keybytes(): Long
abstract fun crypto_auth_keygen(k: Pointer!): Unit
abstract fun crypto_auth_primitive(): String!
abstract fun crypto_auth_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_box(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_beforenm(k: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_beforenmbytes(): Long
abstract fun crypto_box_boxzerobytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_beforenm(k: Pointer!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_beforenmbytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_detached_afternm(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_easy_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_keypair(pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_macbytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_messagebytes_max(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_noncebytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_open_detached_afternm(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_open_easy_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_publickeybytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_seal(c: ByteArray!, m: ByteArray!, mlen: Long, pk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_seal_open(m: ByteArray!, c: ByteArray!, clen: Long, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_sealbytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_secretkeybytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_seed_keypair(pk: ByteArray!, sk: ByteArray!, seed: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_seedbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_beforenm(k: Pointer!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_beforenmbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_boxzerobytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_keypair(pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_macbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_messagebytes_max(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_noncebytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_open_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_publickeybytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_secretkeybytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_seed_keypair(pk: ByteArray!, sk: ByteArray!, seed: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_seedbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_zerobytes(): Long
abstract fun crypto_box_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_detached_afternm(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_easy_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_keypair(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_macbytes(): Long
abstract fun crypto_box_messagebytes_max(): Long
abstract fun crypto_box_noncebytes(): Long
abstract fun crypto_box_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_open_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_open_detached_afternm(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_open_easy_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_primitive(): String!
abstract fun crypto_box_publickeybytes(): Long
abstract fun crypto_box_seal(c: ByteArray!, m: ByteArray!, mlen: Long, pk: Pointer!): Int
abstract fun crypto_box_seal_open(m: ByteArray!, c: ByteArray!, clen: Long, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_sealbytes(): Long
abstract fun crypto_box_secretkeybytes(): Long
abstract fun crypto_box_seed_keypair(pk: Pointer!, sk: Pointer!, seed: Pointer!): Int
abstract fun crypto_box_seedbytes(): Long
abstract fun crypto_box_zerobytes(): Long
abstract fun crypto_core_ed25519_add(r: ByteArray!, p: ByteArray!, q: ByteArray!): Int
abstract fun crypto_core_ed25519_bytes(): Long
abstract fun crypto_core_ed25519_from_uniform(p: ByteArray!, r: ByteArray!): Int
abstract fun crypto_core_ed25519_is_valid_point(p: ByteArray!): Int
abstract fun crypto_core_ed25519_sub(r: ByteArray!, p: ByteArray!, q: ByteArray!): Int
abstract fun crypto_core_ed25519_uniformbytes(): Long
abstract fun crypto_core_hchacha20(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_hchacha20_constbytes(): Long
abstract fun crypto_core_hchacha20_inputbytes(): Long
abstract fun crypto_core_hchacha20_keybytes(): Long
abstract fun crypto_core_hchacha20_outputbytes(): Long
abstract fun crypto_core_hsalsa20(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_hsalsa20_constbytes(): Long
abstract fun crypto_core_hsalsa20_inputbytes(): Long
abstract fun crypto_core_hsalsa20_keybytes(): Long
abstract fun crypto_core_hsalsa20_outputbytes(): Long
abstract fun crypto_core_salsa20(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_salsa2012(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_salsa2012_constbytes(): Long
abstract fun crypto_core_salsa2012_inputbytes(): Long
abstract fun crypto_core_salsa2012_keybytes(): Long
abstract fun crypto_core_salsa2012_outputbytes(): Long
abstract fun crypto_core_salsa208(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_salsa208_constbytes(): Long
abstract fun crypto_core_salsa208_inputbytes(): Long
abstract fun crypto_core_salsa208_keybytes(): Long
abstract fun crypto_core_salsa208_outputbytes(): Long
abstract fun crypto_core_salsa20_constbytes(): Long
abstract fun crypto_core_salsa20_inputbytes(): Long
abstract fun crypto_core_salsa20_keybytes(): Long
abstract fun crypto_core_salsa20_outputbytes(): Long
abstract fun crypto_generichash(out: Pointer!, outlen: Long, in: Pointer!, inlen: Long, key: Pointer!, keylen: Long): Int
abstract fun crypto_generichash_blake2b(out: ByteArray!, outlen: Long, in: ByteArray!, inlen: Long, key: ByteArray!, keylen: Long): Int
abstract fun crypto_generichash_blake2b_bytes(): Long
abstract fun crypto_generichash_blake2b_bytes_max(): Long
abstract fun crypto_generichash_blake2b_bytes_min(): Long
abstract fun crypto_generichash_blake2b_final(state: Pointer!, out: ByteArray!, outlen: Long): Int
abstract fun crypto_generichash_blake2b_init(state: Pointer!, key: ByteArray!, keylen: Long, outlen: Long): Int
abstract fun crypto_generichash_blake2b_init_salt_personal(state: Pointer!, key: ByteArray!, keylen: Long, outlen: Long, salt: ByteArray!, personal: ByteArray!): Int
abstract fun crypto_generichash_blake2b_keybytes(): Long
abstract fun crypto_generichash_blake2b_keybytes_max(): Long
abstract fun crypto_generichash_blake2b_keybytes_min(): Long
abstract fun crypto_generichash_blake2b_keygen(k: ByteArray!): Unit
abstract fun crypto_generichash_blake2b_personalbytes(): Long
abstract fun crypto_generichash_blake2b_salt_personal(out: ByteArray!, outlen: Long, in: ByteArray!, inlen: Long, key: ByteArray!, keylen: Long, salt: ByteArray!, personal: ByteArray!): Int
abstract fun crypto_generichash_blake2b_saltbytes(): Long
abstract fun crypto_generichash_blake2b_statebytes(): Long
abstract fun crypto_generichash_blake2b_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_generichash_bytes(): Long
abstract fun crypto_generichash_bytes_max(): Long
abstract fun crypto_generichash_bytes_min(): Long
abstract fun crypto_generichash_final(state: Pointer!, out: ByteArray!, outlen: Long): Int
abstract fun crypto_generichash_init(state: Pointer!, key: ByteArray!, keylen: Long, outlen: Long): Int
abstract fun crypto_generichash_keybytes(): Long
abstract fun crypto_generichash_keybytes_max(): Long
abstract fun crypto_generichash_keybytes_min(): Long
abstract fun crypto_generichash_keygen(k: ByteArray!): Unit
abstract fun crypto_generichash_primitive(): String!
abstract fun crypto_generichash_statebytes(): Long
abstract fun crypto_generichash_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash(out: ByteArray!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_bytes(): Long
abstract fun crypto_hash_primitive(): String!
abstract fun crypto_hash_sha256(out: ByteArray!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_sha256(out: Pointer!, in: Pointer!, inlen: Long): Int
abstract fun crypto_hash_sha256_bytes(): Long
abstract fun crypto_hash_sha256_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_hash_sha256_init(state: Pointer!): Int
abstract fun crypto_hash_sha256_statebytes(): Long
abstract fun crypto_hash_sha256_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_sha512(out: ByteArray!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_sha512_bytes(): Long
abstract fun crypto_hash_sha512_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_hash_sha512_init(state: Pointer!): Int
abstract fun crypto_hash_sha512_statebytes(): Long
abstract fun crypto_hash_sha512_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_kdf_blake2b_bytes_max(): Long
abstract fun crypto_kdf_blake2b_bytes_min(): Long
abstract fun crypto_kdf_blake2b_contextbytes(): Long
abstract fun crypto_kdf_blake2b_derive_from_key(subkey: ByteArray!, subkey_len: Long, subkey_id: Long, ctx: ByteArray!, key: Pointer!): Int
abstract fun crypto_kdf_blake2b_keybytes(): Long
abstract fun crypto_kdf_bytes_max(): Long
abstract fun crypto_kdf_bytes_min(): Long
abstract fun crypto_kdf_contextbytes(): Long
abstract fun crypto_kdf_derive_from_key(subkey: ByteArray!, subkey_len: Long, subkey_id: Long, ctx: ByteArray!, key: Pointer!): Int
abstract fun crypto_kdf_keybytes(): Long
abstract fun crypto_kdf_keygen(k: Pointer!): Unit
abstract fun crypto_kdf_primitive(): String!
abstract fun crypto_kx_client_session_keys(rx: Pointer!, tx: Pointer!, client_pk: Pointer!, client_sk: Pointer!, server_pk: Pointer!): Int
abstract fun crypto_kx_keypair(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_kx_primitive(): String!
abstract fun crypto_kx_publickeybytes(): Long
abstract fun crypto_kx_secretkeybytes(): Long
abstract fun crypto_kx_seed_keypair(pk: Pointer!, sk: Pointer!, seed: Pointer!): Int
abstract fun crypto_kx_seedbytes(): Long
abstract fun crypto_kx_server_session_keys(rx: Pointer!, tx: Pointer!, server_pk: Pointer!, server_sk: Pointer!, client_pk: Pointer!): Int
abstract fun crypto_kx_sessionkeybytes(): Long
abstract fun crypto_onetimeauth(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_onetimeauth_bytes(): Long
abstract fun crypto_onetimeauth_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_onetimeauth_init(state: Pointer!, key: ByteArray!): Int
abstract fun crypto_onetimeauth_keybytes(): Long
abstract fun crypto_onetimeauth_keygen(k: ByteArray!): Unit
abstract fun crypto_onetimeauth_poly1305(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_onetimeauth_poly1305_bytes(): Long
abstract fun crypto_onetimeauth_poly1305_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_onetimeauth_poly1305_init(state: Pointer!, key: ByteArray!): Int
abstract fun crypto_onetimeauth_poly1305_keybytes(): Long
abstract fun crypto_onetimeauth_poly1305_keygen(k: ByteArray!): Unit
abstract fun crypto_onetimeauth_poly1305_statebytes(): Long
abstract fun crypto_onetimeauth_poly1305_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_onetimeauth_poly1305_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_onetimeauth_primitive(): String!
abstract fun crypto_onetimeauth_statebytes(): Long
abstract fun crypto_onetimeauth_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_onetimeauth_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_pwhash(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: Pointer!, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_alg_argon2i13(): Int
abstract fun crypto_pwhash_alg_argon2id13(): Int
abstract fun crypto_pwhash_alg_default(): Int
abstract fun crypto_pwhash_argon2i(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_argon2i_alg_argon2i13(): Int
abstract fun crypto_pwhash_argon2i_bytes_max(): Long
abstract fun crypto_pwhash_argon2i_bytes_min(): Long
abstract fun crypto_pwhash_argon2i_memlimit_interactive(): Long
abstract fun crypto_pwhash_argon2i_memlimit_max(): Long
abstract fun crypto_pwhash_argon2i_memlimit_min(): Long
abstract fun crypto_pwhash_argon2i_memlimit_moderate(): Long
abstract fun crypto_pwhash_argon2i_memlimit_sensitive(): Long
abstract fun crypto_pwhash_argon2i_opslimit_interactive(): Long
abstract fun crypto_pwhash_argon2i_opslimit_max(): Long
abstract fun crypto_pwhash_argon2i_opslimit_min(): Long
abstract fun crypto_pwhash_argon2i_opslimit_moderate(): Long
abstract fun crypto_pwhash_argon2i_opslimit_sensitive(): Long
abstract fun crypto_pwhash_argon2i_passwd_max(): Long
abstract fun crypto_pwhash_argon2i_passwd_min(): Long
abstract fun crypto_pwhash_argon2i_saltbytes(): Long
abstract fun crypto_pwhash_argon2i_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2i_str_needs_rehash(str: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2i_str_verify(str: ByteArray!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_argon2i_strbytes(): Long
abstract fun crypto_pwhash_argon2i_strprefix(): String!
abstract fun crypto_pwhash_argon2id(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_argon2id_alg_argon2id13(): Int
abstract fun crypto_pwhash_argon2id_bytes_max(): Long
abstract fun crypto_pwhash_argon2id_bytes_min(): Long
abstract fun crypto_pwhash_argon2id_memlimit_interactive(): Long
abstract fun crypto_pwhash_argon2id_memlimit_max(): Long
abstract fun crypto_pwhash_argon2id_memlimit_min(): Long
abstract fun crypto_pwhash_argon2id_memlimit_moderate(): Long
abstract fun crypto_pwhash_argon2id_memlimit_sensitive(): Long
abstract fun crypto_pwhash_argon2id_opslimit_interactive(): Long
abstract fun crypto_pwhash_argon2id_opslimit_max(): Long
abstract fun crypto_pwhash_argon2id_opslimit_min(): Long
abstract fun crypto_pwhash_argon2id_opslimit_moderate(): Long
abstract fun crypto_pwhash_argon2id_opslimit_sensitive(): Long
abstract fun crypto_pwhash_argon2id_passwd_max(): Long
abstract fun crypto_pwhash_argon2id_passwd_min(): Long
abstract fun crypto_pwhash_argon2id_saltbytes(): Long
abstract fun crypto_pwhash_argon2id_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2id_str_needs_rehash(str: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2id_str_verify(str: ByteArray!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_argon2id_strbytes(): Long
abstract fun crypto_pwhash_argon2id_strprefix(): String!
abstract fun crypto_pwhash_bytes_max(): Long
abstract fun crypto_pwhash_bytes_min(): Long
abstract fun crypto_pwhash_memlimit_interactive(): Long
abstract fun crypto_pwhash_memlimit_max(): Long
abstract fun crypto_pwhash_memlimit_min(): Long
abstract fun crypto_pwhash_memlimit_moderate(): Long
abstract fun crypto_pwhash_memlimit_sensitive(): Long
abstract fun crypto_pwhash_opslimit_interactive(): Long
abstract fun crypto_pwhash_opslimit_max(): Long
abstract fun crypto_pwhash_opslimit_min(): Long
abstract fun crypto_pwhash_opslimit_moderate(): Long
abstract fun crypto_pwhash_opslimit_sensitive(): Long
abstract fun crypto_pwhash_passwd_max(): Long
abstract fun crypto_pwhash_passwd_min(): Long
abstract fun crypto_pwhash_primitive(): String!
abstract fun crypto_pwhash_saltbytes(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_bytes_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_bytes_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_ll(passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, saltlen: Long, N: Long, r: Int, p: Int, buf: ByteArray!, buflen: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_interactive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_interactive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_passwd_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_passwd_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_saltbytes(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_str_needs_rehash(str: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_str_verify(str: ByteArray!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_strbytes(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_strprefix(): String!
abstract fun crypto_pwhash_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_str_alg(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_str_needs_rehash(str: Pointer!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_str_verify(str: Pointer!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_strbytes(): Long
abstract fun crypto_pwhash_strprefix(): String!
abstract fun crypto_scalarmult(q: Pointer!, n: Pointer!, p: Pointer!): Int
abstract fun crypto_scalarmult_base(q: Pointer!, n: Pointer!): Int
abstract fun crypto_scalarmult_bytes(): Long
abstract fun crypto_scalarmult_curve25519(q: ByteArray!, n: ByteArray!, p: ByteArray!): Int
abstract fun crypto_scalarmult_curve25519_base(q: ByteArray!, n: ByteArray!): Int
abstract fun crypto_scalarmult_curve25519_bytes(): Long
abstract fun crypto_scalarmult_curve25519_scalarbytes(): Long
abstract fun crypto_scalarmult_ed25519(q: ByteArray!, n: ByteArray!, p: ByteArray!): Int
abstract fun crypto_scalarmult_ed25519_base(q: ByteArray!, n: ByteArray!): Int
abstract fun crypto_scalarmult_ed25519_bytes(): Long
abstract fun crypto_scalarmult_ed25519_scalarbytes(): Long
abstract fun crypto_scalarmult_primitive(): String!
abstract fun crypto_scalarmult_scalarbytes(): Long
abstract fun crypto_secretbox(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_boxzerobytes(): Long
abstract fun crypto_secretbox_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_easy(c: Pointer!, m: Pointer!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_keybytes(): Long
abstract fun crypto_secretbox_keygen(k: Pointer!): Unit
abstract fun crypto_secretbox_macbytes(): Long
abstract fun crypto_secretbox_messagebytes_max(): Long
abstract fun crypto_secretbox_noncebytes(): Long
abstract fun crypto_secretbox_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_open_easy(m: Pointer!, c: Pointer!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_primitive(): String!
abstract fun crypto_secretbox_xchacha20poly1305_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xchacha20poly1305_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xchacha20poly1305_keybytes(): Long
abstract fun crypto_secretbox_xchacha20poly1305_macbytes(): Long
abstract fun crypto_secretbox_xchacha20poly1305_messagebytes_max(): Long
abstract fun crypto_secretbox_xchacha20poly1305_noncebytes(): Long
abstract fun crypto_secretbox_xchacha20poly1305_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xchacha20poly1305_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xsalsa20poly1305(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xsalsa20poly1305_boxzerobytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_keybytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_keygen(k: ByteArray!): Unit
abstract fun crypto_secretbox_xsalsa20poly1305_macbytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_messagebytes_max(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_noncebytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xsalsa20poly1305_zerobytes(): Long
abstract fun crypto_secretbox_zerobytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_abytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_headerbytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_init_pull(state: Pointer!, : ByteArray!, k: Pointer!): Int
abstract fun crypto_secretstream_xchacha20poly1305_init_push(state: Pointer!, : ByteArray!, k: Pointer!): Int
abstract fun crypto_secretstream_xchacha20poly1305_keybytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_keygen(k: Pointer!): Unit
abstract fun crypto_secretstream_xchacha20poly1305_messagebytes_max(): Long
abstract fun crypto_secretstream_xchacha20poly1305_pull(state: Pointer!, m: ByteArray!, mlen_p: LongLongByReference!, tag_p: ByteByReference!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long): Int
abstract fun crypto_secretstream_xchacha20poly1305_push(state: Pointer!, c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, tag: Byte): Int
abstract fun crypto_secretstream_xchacha20poly1305_rekey(state: Pointer!): Unit
abstract fun crypto_secretstream_xchacha20poly1305_statebytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_tag_final(): Char
abstract fun crypto_secretstream_xchacha20poly1305_tag_message(): Char
abstract fun crypto_secretstream_xchacha20poly1305_tag_push(): Char
abstract fun crypto_secretstream_xchacha20poly1305_tag_rekey(): Char
abstract fun crypto_shorthash(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_shorthash_bytes(): Long
abstract fun crypto_shorthash_keybytes(): Long
abstract fun crypto_shorthash_keygen(k: ByteArray!): Unit
abstract fun crypto_shorthash_primitive(): String!
abstract fun crypto_shorthash_siphash24(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_shorthash_siphash24_bytes(): Long
abstract fun crypto_shorthash_siphash24_keybytes(): Long
abstract fun crypto_shorthash_siphashx24(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_shorthash_siphashx24_bytes(): Long
abstract fun crypto_shorthash_siphashx24_keybytes(): Long
abstract fun crypto_sign(sm: ByteArray!, @Nullable smlen_p: LongLongByReference?, m: ByteArray!, mlen: Long, sk: Pointer!): Int
abstract fun crypto_sign_bytes(): Long
abstract fun crypto_sign_detached(sig: ByteArray!, @Nullable siglen_p: LongLongByReference?, m: ByteArray!, mlen: Long, sk: Pointer!): Int
abstract fun crypto_sign_detached(sig: Pointer!, @Nullable siglen_p: LongLongByReference?, m: Pointer!, mlen: Long, sk: Pointer!): Int
abstract fun crypto_sign_ed25519(sm: ByteArray!, smlen_p: LongLongByReference!, m: ByteArray!, mlen: Long, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_bytes(): Long
abstract fun crypto_sign_ed25519_detached(sig: ByteArray!, siglen_p: LongLongByReference!, m: ByteArray!, mlen: Long, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_keypair(pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_messagebytes_max(): Long
abstract fun crypto_sign_ed25519_open(m: ByteArray!, mlen_p: LongLongByReference!, sm: ByteArray!, smlen: Long, pk: ByteArray!): Int
abstract fun crypto_sign_ed25519_pk_to_curve25519(curve25519_pk: Pointer!, ed25519_pk: Pointer!): Int
abstract fun crypto_sign_ed25519_publickeybytes(): Long
abstract fun crypto_sign_ed25519_secretkeybytes(): Long
abstract fun crypto_sign_ed25519_seed_keypair(pk: ByteArray!, sk: ByteArray!, seed: ByteArray!): Int
abstract fun crypto_sign_ed25519_seedbytes(): Long
abstract fun crypto_sign_ed25519_sk_to_curve25519(curve25519_sk: Pointer!, ed25519_sk: Pointer!): Int
abstract fun crypto_sign_ed25519_sk_to_pk(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_sign_ed25519_sk_to_seed(seed: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_verify_detached(sig: ByteArray!, m: ByteArray!, mlen: Long, pk: ByteArray!): Int
abstract fun crypto_sign_ed25519ph_final_create(state: Pointer!, sig: ByteArray!, siglen_p: LongLongByReference!, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519ph_final_verify(state: Pointer!, sig: ByteArray!, pk: ByteArray!): Int
abstract fun crypto_sign_ed25519ph_init(state: Pointer!): Int
abstract fun crypto_sign_ed25519ph_statebytes(): Long
abstract fun crypto_sign_ed25519ph_update(state: Pointer!, m: ByteArray!, mlen: Long): Int
abstract fun crypto_sign_final_create(state: Pointer!, sig: ByteArray!, siglen_p: LongLongByReference!, sk: ByteArray!): Int
abstract fun crypto_sign_final_verify(state: Pointer!, sig: ByteArray!, pk: ByteArray!): Int
abstract fun crypto_sign_init(state: Pointer!): Int
abstract fun crypto_sign_keypair(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_sign_messagebytes_max(): Long
abstract fun crypto_sign_open(m: ByteArray!, mlen_p: LongLongByReference!, sm: ByteArray!, smlen: Long, pk: Pointer!): Int
abstract fun crypto_sign_primitive(): String!
abstract fun crypto_sign_publickeybytes(): Long
abstract fun crypto_sign_secretkeybytes(): Long
abstract fun crypto_sign_seed_keypair(pk: Pointer!, sk: Pointer!, seed: Pointer!): Int
abstract fun crypto_sign_seedbytes(): Long
abstract fun crypto_sign_statebytes(): Long
abstract fun crypto_sign_update(state: Pointer!, m: ByteArray!, mlen: Long): Int
abstract fun crypto_sign_verify_detached(sig: Pointer!, m: Pointer!, mlen: Long, pk: Pointer!): Int
abstract fun crypto_sign_verify_detached(sig: ByteArray!, m: ByteArray!, mlen: Long, pk: Pointer!): Int
abstract fun crypto_stream(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_ietf(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_ietf_keybytes(): Long
abstract fun crypto_stream_chacha20_ietf_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_chacha20_ietf_messagebytes_max(): Long
abstract fun crypto_stream_chacha20_ietf_noncebytes(): Long
abstract fun crypto_stream_chacha20_ietf_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_ietf_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Int, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_keybytes(): Long
abstract fun crypto_stream_chacha20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_chacha20_messagebytes_max(): Long
abstract fun crypto_stream_chacha20_noncebytes(): Long
abstract fun crypto_stream_chacha20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_stream_keybytes(): Long
abstract fun crypto_stream_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_messagebytes_max(): Long
abstract fun crypto_stream_noncebytes(): Long
abstract fun crypto_stream_primitive(): String!
abstract fun crypto_stream_salsa20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa2012(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa2012_keybytes(): Long
abstract fun crypto_stream_salsa2012_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_salsa2012_messagebytes_max(): Long
abstract fun crypto_stream_salsa2012_noncebytes(): Long
abstract fun crypto_stream_salsa2012_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa208(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa208_keybytes(): Long
abstract fun crypto_stream_salsa208_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_salsa208_messagebytes_max(): Long
abstract fun crypto_stream_salsa208_noncebytes(): Long
abstract fun crypto_stream_salsa208_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa20_keybytes(): Long
abstract fun crypto_stream_salsa20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_salsa20_messagebytes_max(): Long
abstract fun crypto_stream_salsa20_noncebytes(): Long
abstract fun crypto_stream_salsa20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_stream_xchacha20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xchacha20_keybytes(): Long
abstract fun crypto_stream_xchacha20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_xchacha20_messagebytes_max(): Long
abstract fun crypto_stream_xchacha20_noncebytes(): Long
abstract fun crypto_stream_xchacha20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xchacha20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_stream_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xsalsa20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xsalsa20_keybytes(): Long
abstract fun crypto_stream_xsalsa20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_xsalsa20_messagebytes_max(): Long
abstract fun crypto_stream_xsalsa20_noncebytes(): Long
abstract fun crypto_stream_xsalsa20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xsalsa20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_verify_16(x: ByteArray!, y: ByteArray!): Int
abstract fun crypto_verify_16_bytes(): Long
abstract fun crypto_verify_32(x: ByteArray!, y: ByteArray!): Int
abstract fun crypto_verify_32_bytes(): Long
abstract fun crypto_verify_64(x: ByteArray!, y: ByteArray!): Int
abstract fun crypto_verify_64_bytes(): Long
abstract fun implementation_name(): String!
abstract fun random(): Int
abstract fun randombytes(buf: ByteArray!, buf_len: Long): Unit
abstract fun randombytes_buf(buf: Pointer!, size: Long): Unit
abstract fun randombytes_buf_deterministic(buf: ByteArray!, size: Long, seed: ByteArray!): Unit
abstract fun randombytes_close(): Int
abstract fun randombytes_implementation_name(): String!
abstract fun randombytes_random(): Int
abstract fun randombytes_seedbytes(): Long
abstract fun randombytes_set_implementation(impl: Pointer!): Int
abstract fun randombytes_stir(): Unit
abstract fun randombytes_uniform(upper_bound: Int): Int
abstract fun sodium_add(a: Pointer!, b: Pointer!, len: Long): Unit
abstract fun sodium_allocarray(count: Long, size: Long): Pointer!
abstract fun sodium_base642bin(bin: ByteArray!, bin_maxlen: Long, b64: ByteArray!, b64_len: Long, ignore: ByteArray!, bin_len: LongLongByReference!, b64_end: Pointer!, variant: Int): Int
abstract fun sodium_base64_encoded_len(bin_len: Long, variant: Int): Long
abstract fun sodium_compare(b1_: Pointer!, b2_: Pointer!, len: Long): Int
abstract fun sodium_free(ptr: Pointer!): Unit
abstract fun sodium_hex2bin(bin: ByteArray!, bin_maxlen: Long, hex: ByteArray!, hex_len: Long, ignore: ByteArray!, bin_len: LongLongByReference!, hex_end: Pointer!): Int
abstract fun sodium_increment(n: Pointer!, nlen: Long): Unit
abstract fun sodium_init(): Int
abstract fun sodium_is_zero(n: Pointer!, nlen: Long): Int
abstract fun sodium_library_minimal(): Int
abstract fun sodium_library_version_major(): Int
abstract fun sodium_library_version_minor(): Int
abstract fun sodium_malloc(size: Long): Pointer!
abstract fun sodium_memcmp(b1_: Pointer!, b2_: Pointer!, len: Long): Int
abstract fun sodium_memzero(pnt: Pointer!, len: Long): Unit
abstract fun sodium_misuse(): Unit
abstract fun sodium_mlock(addr: Pointer!, len: Long): Int
abstract fun sodium_mprotect_noaccess(ptr: Pointer!): Int
abstract fun sodium_mprotect_readonly(ptr: Pointer!): Int
abstract fun sodium_mprotect_readwrite(ptr: Pointer!): Int
abstract fun sodium_munlock(addr: Pointer!, len: Long): Int
abstract fun sodium_pad(padded_buflen_p: LongLongByReference!, buf: ByteArray!, unpadded_buflen: Long, blocksize: Long, max_buflen: Long): Int
abstract fun sodium_runtime_has_aesni(): Int
abstract fun sodium_runtime_has_avx(): Int
abstract fun sodium_runtime_has_avx2(): Int
abstract fun sodium_runtime_has_avx512f(): Int
abstract fun sodium_runtime_has_neon(): Int
abstract fun sodium_runtime_has_pclmul(): Int
abstract fun sodium_runtime_has_rdrand(): Int
abstract fun sodium_runtime_has_sse2(): Int
abstract fun sodium_runtime_has_sse3(): Int
abstract fun sodium_runtime_has_sse41(): Int
abstract fun sodium_runtime_has_ssse3(): Int
abstract fun sodium_set_misuse_handler(handler: Pointer!): Int
abstract fun sodium_stackzero(len: Long): Unit
abstract fun sodium_unpad(unpadded_buflen_p: LongLongByReference!, buf: ByteArray!, padded_buflen: Long, blocksize: Long): Int
abstract fun sodium_version_string(): String!
abstract fun stir(): Unit
abstract fun uniform(upper_bound: Int): Int
class PasswordHash
Module Contents
PasswordHash()
class Algorithm
static fun checkHash(hash: String!, password: String!): VerificationResult!
static fun checkHash(hash: String!, password: String!, opsLimit: Long, memLimit: Long): VerificationResult!
static fun checkHashForInteractive(hash: String!, password: String!): VerificationResult!
static fun checkHashForSensitive(hash: String!, password: String!): VerificationResult!
static fun hash(password: String!, length: Int, salt: Salt!): Bytes!
static fun hash(password: Bytes!, length: Int, salt: Salt!): Bytes!
static fun hash(password: ByteArray!, length: Int, salt: Salt!): ByteArray!
static fun hash(password: String!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hash(password: Bytes!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hash(password: ByteArray!, length: Int, salt: Salt!, algorithm: Algorithm!): ByteArray!
static fun hash(password: String!, length: Int, salt: Salt!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes!
static fun hash(password: Bytes!, length: Int, salt: Salt!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes!
static fun hash(password: ByteArray!, length: Int, salt: Salt!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray!
static fun hash(password: String!): String!
static fun hash(password: String!, opsLimit: Long, memLimit: Long): String!
static fun hashInteractive(password: String!, length: Int, salt: Salt!): Bytes!
static fun hashInteractive(password: Bytes!, length: Int, salt: Salt!): Bytes!
static fun hashInteractive(password: ByteArray!, length: Int, salt: Salt!): ByteArray!
static fun hashInteractive(password: String!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashInteractive(password: Bytes!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashInteractive(password: ByteArray!, length: Int, salt: Salt!, algorithm: Algorithm!): ByteArray!
static fun hashInteractive(password: String!): String!
static fun hashSensitive(password: String!, length: Int, salt: Salt!): Bytes!
static fun hashSensitive(password: Bytes!, length: Int, salt: Salt!): Bytes!
static fun hashSensitive(password: ByteArray!, length: Int, salt: Salt!): ByteArray!
static fun hashSensitive(password: String!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashSensitive(password: Bytes!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashSensitive(password: ByteArray!, length: Int, salt: Salt!, algorithm: Algorithm!): ByteArray!
static fun hashSensitive(password: String!): String!
static fun interactiveMemLimit(): Long
static fun interactiveOpsLimit(): Long
static fun maxHashLength(): Int
static fun maxMemLimit(): Long
static fun maxOpsLimit(): Long
static fun minHashLength(): Int
static fun minMemLimit(): Long
static fun minOpsLimit(): Long
static fun moderateMemLimit(): Long
static fun moderateOpsLimit(): Long
static fun needsRehash(hash: String!): Boolean
static fun needsRehash(hash: String!, opsLimit: Long, memLimit: Long): Boolean
static fun needsRehashForInteractive(hash: String!): Boolean
static fun needsRehashForSensitive(hash: String!): Boolean
class Salt
static fun sensitiveMemLimit(): Long
static fun sensitiveOpsLimit(): Long
class VerificationResult
static fun verify(hash: String!, password: String!): Boolean
class PublicKey
class SECP256K1
Module Contents
static fun calculateKeyAgreement(privKey: SecretKey!, theirPubKey: PublicKey!): Bytes32!
class KeyPair
class Parameters
class PublicKey
class SecretKey : Destroyable
static fun sign(data: ByteArray!, keyPair: KeyPair!): Signature!
static fun sign(data: Bytes!, keyPair: KeyPair!): Signature!
class Signature
static fun signHashed(hash: ByteArray!, keyPair: KeyPair!): Signature!
static fun signHashed(hash: Bytes32!, keyPair: KeyPair!): Signature!
static fun verify(data: ByteArray!, signature: Signature!, publicKey: PublicKey!): Boolean
static fun verify(data: Bytes!, signature: Signature!, publicKey: PublicKey!): Boolean
static fun verifyHashed(hash: Bytes32!, signature: Signature!, publicKey: PublicKey!): Boolean
static fun verifyHashed(hash: ByteArray!, signature: Signature!, publicKey: PublicKey!): Boolean
class SecretBox
Module Contents
@Nullable static fun decrypt(cipherText: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: Allocated!, key: Key!, nonce: Nonce!): Allocated?
@Nullable static fun decrypt(cipherText: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, password: String!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, password: String!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, password: String!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptInteractive(cipherText: Bytes!, password: String!): Bytes?
@Nullable static fun decryptInteractive(cipherText: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptInteractive(cipherText: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptInteractive(cipherText: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptInteractiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!): Bytes?
@Nullable static fun decryptInteractiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptInteractiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptInteractiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptSensitive(cipherText: Bytes!, password: String!): Bytes?
@Nullable static fun decryptSensitive(cipherText: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptSensitive(cipherText: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptSensitive(cipherText: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptSensitiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!): Bytes?
@Nullable static fun decryptSensitiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptSensitiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptSensitiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
static fun encrypt(message: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: Allocated!, key: Key!, nonce: Nonce!): Allocated!
static fun encrypt(message: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, password: String!): Bytes!
static fun encrypt(message: ByteArray!, password: String!): ByteArray!
static fun encrypt(message: Bytes!, password: String!, algorithm: Algorithm!): Bytes!
static fun encrypt(message: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray!
static fun encrypt(message: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes!
static fun encrypt(message: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray!
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, password: String!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, password: String!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptInteractive(message: Bytes!, password: String!): Bytes!
static fun encryptInteractive(message: ByteArray!, password: String!): ByteArray!
static fun encryptInteractive(message: Bytes!, password: String!, algorithm: Algorithm!): Bytes!
static fun encryptInteractive(message: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray!
static fun encryptInteractiveDetached(message: Bytes!, password: String!): DetachedEncryptionResult!
static fun encryptInteractiveDetached(message: ByteArray!, password: String!): DetachedEncryptionResult!
static fun encryptInteractiveDetached(message: Bytes!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptInteractiveDetached(message: ByteArray!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptSensitive(message: Bytes!, password: String!): Bytes!
static fun encryptSensitive(message: ByteArray!, password: String!): ByteArray!
static fun encryptSensitive(message: Bytes!, password: String!, algorithm: Algorithm!): Bytes!
static fun encryptSensitive(message: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray!
static fun encryptSensitiveDetached(message: Bytes!, password: String!): DetachedEncryptionResult!
static fun encryptSensitiveDetached(message: ByteArray!, password: String!): DetachedEncryptionResult!
static fun encryptSensitiveDetached(message: Bytes!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptSensitiveDetached(message: ByteArray!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
class Key : Destroyable
class Nonce : Destroyable
interface SecretDecryptionStream : Destroyable
interface SecretEncryptionStream : Destroyable
class SecretKey
open class SHA256Hash
class Signature
class Signature
Module Contents
class KeyPair
class PublicKey : Destroyable
class SecretKey : Destroyable
class Seed
static fun sign(message: Bytes!, secretKey: SecretKey!): Bytes!
static fun sign(message: ByteArray!, secretKey: SecretKey!): ByteArray!
static fun signDetached(message: Bytes!, secretKey: SecretKey!): Bytes!
static fun signDetached(message: Allocated!, secretKey: SecretKey!): Allocated!
static fun signDetached(message: ByteArray!, secretKey: SecretKey!): ByteArray!
static fun verify(signed: Bytes!, publicKey: PublicKey!): Bytes!
static fun verify(signed: ByteArray!, publicKey: PublicKey!): ByteArray!
static fun verifyDetached(message: Bytes!, signature: Bytes!, publicKey: PublicKey!): Boolean
static fun verifyDetached(message: Allocated!, signature: Allocated!, publicKey: PublicKey!): Boolean
static fun verifyDetached(message: ByteArray!, signature: ByteArray!, publicKey: PublicKey!): Boolean
class SignatureAndPublicKey
class Sodium
class SodiumException : RuntimeException
class SodiumVersion : Comparable<SodiumVersion!>
class XChaCha20Poly1305
Module Contents
@Nullable static fun decrypt(cipherText: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, key: Key!, nonce: Nonce!): Bytes!
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
static fun encrypt(message: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun isAvailable(): Boolean
static fun isSecretStreamAvailable(): Boolean
class Key : Destroyable
class Nonce
static fun openDecryptionStream(key: Key!, : ByteArray!): SecretDecryptionStream!
static fun openEncryptionStream(key: Key!): SecretEncryptionStream!
package org.apache.tuweni.crypto
Module Contents
class Hash
class InvalidSEC256K1SecretKeyStoreException : RuntimeException
class SECP256K1
Module Contents
static fun calculateKeyAgreement(privKey: SecretKey!, theirPubKey: PublicKey!): Bytes32!
class KeyPair
class Parameters
class PublicKey
class SecretKey : Destroyable
static fun sign(data: ByteArray!, keyPair: KeyPair!): Signature!
static fun sign(data: Bytes!, keyPair: KeyPair!): Signature!
class Signature
static fun signHashed(hash: ByteArray!, keyPair: KeyPair!): Signature!
static fun signHashed(hash: Bytes32!, keyPair: KeyPair!): Signature!
static fun verify(data: ByteArray!, signature: Signature!, publicKey: PublicKey!): Boolean
static fun verify(data: Bytes!, signature: Signature!, publicKey: PublicKey!): Boolean
static fun verifyHashed(hash: Bytes32!, signature: Signature!, publicKey: PublicKey!): Boolean
static fun verifyHashed(hash: ByteArray!, signature: Signature!, publicKey: PublicKey!): Boolean
package org.apache.tuweni.crypto.mikuli
Module Contents
class BLS12381
Module Contents
static fun sign(keyPair: KeyPair!, message: ByteArray!, domain: Int): SignatureAndPublicKey!
static fun sign(keyPair: KeyPair!, message: Bytes!, domain: Int): SignatureAndPublicKey!
static fun verify(publicKey: PublicKey!, signature: Signature!, message: ByteArray!, domain: Int): Boolean
static fun verify(publicKey: PublicKey!, signature: Signature!, message: Bytes!, domain: Int): Boolean
static fun verify(sigAndPubKey: SignatureAndPublicKey!, message: ByteArray!, domain: Int): Boolean
static fun verify(sigAndPubKey: SignatureAndPublicKey!, message: Bytes!, domain: Int): Boolean
class KeyPair
class PublicKey
class SecretKey
class Signature
class SignatureAndPublicKey
package org.apache.tuweni.crypto.sodium
Module Contents
class AES256GCM : AutoCloseable
Module Contents
fun close(): Unit
@Nullable fun decrypt(cipherText: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decrypt(cipherText: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable fun decrypt(cipherText: Bytes!, data: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decrypt(cipherText: ByteArray!, data: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable fun decryptDetached(cipherText: Bytes!, mac: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable fun decryptDetached(cipherText: Bytes!, mac: Bytes!, data: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, data: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
fun encrypt(message: Bytes!, nonce: Nonce!): Bytes!
fun encrypt(message: ByteArray!, nonce: Nonce!): ByteArray!
fun encrypt(message: Bytes!, data: Bytes!, nonce: Nonce!): Bytes!
fun encrypt(message: ByteArray!, data: ByteArray!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
fun encryptDetached(message: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: Bytes!, data: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: ByteArray!, data: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
protected fun finalize(): Unit
static fun forKey(key: Key!): AES256GCM!
static fun isAvailable(): Boolean
class Key : Destroyable
class Nonce
class Allocated : Destroyable
class Auth
class Box : AutoCloseable
Module Contents
fun close(): Unit
@Nullable fun decrypt(cipherText: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decrypt(cipherText: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): ByteArray?
@Nullable fun decryptDetached(cipherText: Bytes!, mac: Bytes!, nonce: Nonce!): Bytes?
@Nullable fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, sender: PublicKey!, receiver: SecretKey!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptSealed(cipherText: Bytes!, sender: PublicKey!, receiver: SecretKey!): Bytes?
@Nullable static fun decryptSealed(cipherText: ByteArray!, sender: PublicKey!, receiver: SecretKey!): ByteArray?
fun encrypt(message: Bytes!, nonce: Nonce!): Bytes!
fun encrypt(message: ByteArray!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): ByteArray!
fun encryptDetached(message: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
fun encryptDetached(message: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, receiver: PublicKey!, sender: SecretKey!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptSealed(message: Bytes!, receiver: PublicKey!): Bytes!
static fun encryptSealed(message: ByteArray!, receiver: PublicKey!): ByteArray!
protected fun finalize(): Unit
static fun forKeys(receiver: PublicKey!, sender: SecretKey!): Box!
class KeyPair
class Nonce
class PublicKey : Destroyable
class SecretKey : Destroyable
class Seed
class Concatenate
interface DetachedEncryptionResult
class DiffieHelman
class GenericHash
class HMACSHA256
class HMACSHA512
class HMACSHA512256
class KeyDerivation
class KeyExchange
interface LibSodium
Module Contents
abstract fun buf(buf: ByteArray!, size: Long): Unit
abstract fun close(): Int
abstract fun crypto_aead_aes256gcm_abytes(): Long
abstract fun crypto_aead_aes256gcm_beforenm(ctx_: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: Pointer!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt_afternm(m: ByteArray!, mlen_p: LongLongByReference!, nsec: Pointer!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt_detached(m: ByteArray!, nsec: Pointer!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_decrypt_detached_afternm(m: ByteArray!, nsec: Pointer!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt_afternm(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_aes256gcm_encrypt_detached_afternm(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: Pointer!, npub: Pointer!, ctx_: Pointer!): Int
abstract fun crypto_aead_aes256gcm_is_available(): Int
abstract fun crypto_aead_aes256gcm_keybytes(): Long
abstract fun crypto_aead_aes256gcm_keygen(k: Pointer!): Unit
abstract fun crypto_aead_aes256gcm_messagebytes_max(): Long
abstract fun crypto_aead_aes256gcm_npubbytes(): Long
abstract fun crypto_aead_aes256gcm_nsecbytes(): Long
abstract fun crypto_aead_aes256gcm_statebytes(): Long
abstract fun crypto_aead_chacha20poly1305_abytes(): Long
abstract fun crypto_aead_chacha20poly1305_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: ByteArray!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_decrypt_detached(m: ByteArray!, nsec: ByteArray!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_abytes(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: ByteArray!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_decrypt_detached(m: ByteArray!, nsec: ByteArray!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: ByteArray!, k: ByteArray!): Int
abstract fun crypto_aead_chacha20poly1305_ietf_keybytes(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_keygen(k: ByteArray!): Unit
abstract fun crypto_aead_chacha20poly1305_ietf_messagebytes_max(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_npubbytes(): Long
abstract fun crypto_aead_chacha20poly1305_ietf_nsecbytes(): Long
abstract fun crypto_aead_chacha20poly1305_keybytes(): Long
abstract fun crypto_aead_chacha20poly1305_keygen(k: ByteArray!): Unit
abstract fun crypto_aead_chacha20poly1305_messagebytes_max(): Long
abstract fun crypto_aead_chacha20poly1305_npubbytes(): Long
abstract fun crypto_aead_chacha20poly1305_nsecbytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_abytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_decrypt(m: ByteArray!, mlen_p: LongLongByReference!, nsec: ByteArray!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_decrypt_detached(m: ByteArray!, nsec: ByteArray!, c: ByteArray!, clen: Long, mac: ByteArray!, ad: ByteArray!, adlen: Long, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_encrypt(c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_encrypt_detached(c: ByteArray!, mac: ByteArray!, maclen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, nsec: ByteArray!, npub: Pointer!, k: Pointer!): Int
abstract fun crypto_aead_xchacha20poly1305_ietf_keybytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_keygen(k: Pointer!): Unit
abstract fun crypto_aead_xchacha20poly1305_ietf_messagebytes_max(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_npubbytes(): Long
abstract fun crypto_aead_xchacha20poly1305_ietf_nsecbytes(): Long
abstract fun crypto_auth(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_bytes(): Long
abstract fun crypto_auth_hmacsha256(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha256_bytes(): Long
abstract fun crypto_auth_hmacsha256_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_auth_hmacsha256_init(state: Pointer!, key: ByteArray!, keylen: Long): Int
abstract fun crypto_auth_hmacsha256_keybytes(): Long
abstract fun crypto_auth_hmacsha256_keygen(k: ByteArray!): Unit
abstract fun crypto_auth_hmacsha256_statebytes(): Long
abstract fun crypto_auth_hmacsha256_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_auth_hmacsha256_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512256(out: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512256_bytes(): Long
abstract fun crypto_auth_hmacsha512256_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_auth_hmacsha512256_init(state: Pointer!, key: ByteArray!, keylen: Long): Int
abstract fun crypto_auth_hmacsha512256_keybytes(): Long
abstract fun crypto_auth_hmacsha512256_keygen(k: ByteArray!): Unit
abstract fun crypto_auth_hmacsha512256_statebytes(): Long
abstract fun crypto_auth_hmacsha512256_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_auth_hmacsha512256_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_hmacsha512_bytes(): Long
abstract fun crypto_auth_hmacsha512_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_auth_hmacsha512_init(state: Pointer!, key: ByteArray!, keylen: Long): Int
abstract fun crypto_auth_hmacsha512_keybytes(): Long
abstract fun crypto_auth_hmacsha512_keygen(k: ByteArray!): Unit
abstract fun crypto_auth_hmacsha512_statebytes(): Long
abstract fun crypto_auth_hmacsha512_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_auth_hmacsha512_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_auth_keybytes(): Long
abstract fun crypto_auth_keygen(k: Pointer!): Unit
abstract fun crypto_auth_primitive(): String!
abstract fun crypto_auth_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: Pointer!): Int
abstract fun crypto_box(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_beforenm(k: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_beforenmbytes(): Long
abstract fun crypto_box_boxzerobytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_beforenm(k: Pointer!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_beforenmbytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_detached_afternm(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_easy_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_keypair(pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_macbytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_messagebytes_max(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_noncebytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_open_detached_afternm(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_open_easy_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_publickeybytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_seal(c: ByteArray!, m: ByteArray!, mlen: Long, pk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_seal_open(m: ByteArray!, c: ByteArray!, clen: Long, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_sealbytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_secretkeybytes(): Long
abstract fun crypto_box_curve25519xchacha20poly1305_seed_keypair(pk: ByteArray!, sk: ByteArray!, seed: ByteArray!): Int
abstract fun crypto_box_curve25519xchacha20poly1305_seedbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_beforenm(k: Pointer!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_beforenmbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_boxzerobytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_keypair(pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_macbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_messagebytes_max(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_noncebytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_open_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_publickeybytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_secretkeybytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_seed_keypair(pk: ByteArray!, sk: ByteArray!, seed: ByteArray!): Int
abstract fun crypto_box_curve25519xsalsa20poly1305_seedbytes(): Long
abstract fun crypto_box_curve25519xsalsa20poly1305_zerobytes(): Long
abstract fun crypto_box_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_detached_afternm(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_easy_afternm(c: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_keypair(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_macbytes(): Long
abstract fun crypto_box_messagebytes_max(): Long
abstract fun crypto_box_noncebytes(): Long
abstract fun crypto_box_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_box_open_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: Pointer!): Int
abstract fun crypto_box_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_open_detached_afternm(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: Pointer!, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_open_easy_afternm(m: ByteArray!, c: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_box_primitive(): String!
abstract fun crypto_box_publickeybytes(): Long
abstract fun crypto_box_seal(c: ByteArray!, m: ByteArray!, mlen: Long, pk: Pointer!): Int
abstract fun crypto_box_seal_open(m: ByteArray!, c: ByteArray!, clen: Long, pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_box_sealbytes(): Long
abstract fun crypto_box_secretkeybytes(): Long
abstract fun crypto_box_seed_keypair(pk: Pointer!, sk: Pointer!, seed: Pointer!): Int
abstract fun crypto_box_seedbytes(): Long
abstract fun crypto_box_zerobytes(): Long
abstract fun crypto_core_ed25519_add(r: ByteArray!, p: ByteArray!, q: ByteArray!): Int
abstract fun crypto_core_ed25519_bytes(): Long
abstract fun crypto_core_ed25519_from_uniform(p: ByteArray!, r: ByteArray!): Int
abstract fun crypto_core_ed25519_is_valid_point(p: ByteArray!): Int
abstract fun crypto_core_ed25519_sub(r: ByteArray!, p: ByteArray!, q: ByteArray!): Int
abstract fun crypto_core_ed25519_uniformbytes(): Long
abstract fun crypto_core_hchacha20(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_hchacha20_constbytes(): Long
abstract fun crypto_core_hchacha20_inputbytes(): Long
abstract fun crypto_core_hchacha20_keybytes(): Long
abstract fun crypto_core_hchacha20_outputbytes(): Long
abstract fun crypto_core_hsalsa20(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_hsalsa20_constbytes(): Long
abstract fun crypto_core_hsalsa20_inputbytes(): Long
abstract fun crypto_core_hsalsa20_keybytes(): Long
abstract fun crypto_core_hsalsa20_outputbytes(): Long
abstract fun crypto_core_salsa20(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_salsa2012(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_salsa2012_constbytes(): Long
abstract fun crypto_core_salsa2012_inputbytes(): Long
abstract fun crypto_core_salsa2012_keybytes(): Long
abstract fun crypto_core_salsa2012_outputbytes(): Long
abstract fun crypto_core_salsa208(out: ByteArray!, in: ByteArray!, k: ByteArray!, c: ByteArray!): Int
abstract fun crypto_core_salsa208_constbytes(): Long
abstract fun crypto_core_salsa208_inputbytes(): Long
abstract fun crypto_core_salsa208_keybytes(): Long
abstract fun crypto_core_salsa208_outputbytes(): Long
abstract fun crypto_core_salsa20_constbytes(): Long
abstract fun crypto_core_salsa20_inputbytes(): Long
abstract fun crypto_core_salsa20_keybytes(): Long
abstract fun crypto_core_salsa20_outputbytes(): Long
abstract fun crypto_generichash(out: Pointer!, outlen: Long, in: Pointer!, inlen: Long, key: Pointer!, keylen: Long): Int
abstract fun crypto_generichash_blake2b(out: ByteArray!, outlen: Long, in: ByteArray!, inlen: Long, key: ByteArray!, keylen: Long): Int
abstract fun crypto_generichash_blake2b_bytes(): Long
abstract fun crypto_generichash_blake2b_bytes_max(): Long
abstract fun crypto_generichash_blake2b_bytes_min(): Long
abstract fun crypto_generichash_blake2b_final(state: Pointer!, out: ByteArray!, outlen: Long): Int
abstract fun crypto_generichash_blake2b_init(state: Pointer!, key: ByteArray!, keylen: Long, outlen: Long): Int
abstract fun crypto_generichash_blake2b_init_salt_personal(state: Pointer!, key: ByteArray!, keylen: Long, outlen: Long, salt: ByteArray!, personal: ByteArray!): Int
abstract fun crypto_generichash_blake2b_keybytes(): Long
abstract fun crypto_generichash_blake2b_keybytes_max(): Long
abstract fun crypto_generichash_blake2b_keybytes_min(): Long
abstract fun crypto_generichash_blake2b_keygen(k: ByteArray!): Unit
abstract fun crypto_generichash_blake2b_personalbytes(): Long
abstract fun crypto_generichash_blake2b_salt_personal(out: ByteArray!, outlen: Long, in: ByteArray!, inlen: Long, key: ByteArray!, keylen: Long, salt: ByteArray!, personal: ByteArray!): Int
abstract fun crypto_generichash_blake2b_saltbytes(): Long
abstract fun crypto_generichash_blake2b_statebytes(): Long
abstract fun crypto_generichash_blake2b_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_generichash_bytes(): Long
abstract fun crypto_generichash_bytes_max(): Long
abstract fun crypto_generichash_bytes_min(): Long
abstract fun crypto_generichash_final(state: Pointer!, out: ByteArray!, outlen: Long): Int
abstract fun crypto_generichash_init(state: Pointer!, key: ByteArray!, keylen: Long, outlen: Long): Int
abstract fun crypto_generichash_keybytes(): Long
abstract fun crypto_generichash_keybytes_max(): Long
abstract fun crypto_generichash_keybytes_min(): Long
abstract fun crypto_generichash_keygen(k: ByteArray!): Unit
abstract fun crypto_generichash_primitive(): String!
abstract fun crypto_generichash_statebytes(): Long
abstract fun crypto_generichash_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash(out: ByteArray!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_bytes(): Long
abstract fun crypto_hash_primitive(): String!
abstract fun crypto_hash_sha256(out: ByteArray!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_sha256(out: Pointer!, in: Pointer!, inlen: Long): Int
abstract fun crypto_hash_sha256_bytes(): Long
abstract fun crypto_hash_sha256_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_hash_sha256_init(state: Pointer!): Int
abstract fun crypto_hash_sha256_statebytes(): Long
abstract fun crypto_hash_sha256_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_sha512(out: ByteArray!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_hash_sha512_bytes(): Long
abstract fun crypto_hash_sha512_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_hash_sha512_init(state: Pointer!): Int
abstract fun crypto_hash_sha512_statebytes(): Long
abstract fun crypto_hash_sha512_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_kdf_blake2b_bytes_max(): Long
abstract fun crypto_kdf_blake2b_bytes_min(): Long
abstract fun crypto_kdf_blake2b_contextbytes(): Long
abstract fun crypto_kdf_blake2b_derive_from_key(subkey: ByteArray!, subkey_len: Long, subkey_id: Long, ctx: ByteArray!, key: Pointer!): Int
abstract fun crypto_kdf_blake2b_keybytes(): Long
abstract fun crypto_kdf_bytes_max(): Long
abstract fun crypto_kdf_bytes_min(): Long
abstract fun crypto_kdf_contextbytes(): Long
abstract fun crypto_kdf_derive_from_key(subkey: ByteArray!, subkey_len: Long, subkey_id: Long, ctx: ByteArray!, key: Pointer!): Int
abstract fun crypto_kdf_keybytes(): Long
abstract fun crypto_kdf_keygen(k: Pointer!): Unit
abstract fun crypto_kdf_primitive(): String!
abstract fun crypto_kx_client_session_keys(rx: Pointer!, tx: Pointer!, client_pk: Pointer!, client_sk: Pointer!, server_pk: Pointer!): Int
abstract fun crypto_kx_keypair(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_kx_primitive(): String!
abstract fun crypto_kx_publickeybytes(): Long
abstract fun crypto_kx_secretkeybytes(): Long
abstract fun crypto_kx_seed_keypair(pk: Pointer!, sk: Pointer!, seed: Pointer!): Int
abstract fun crypto_kx_seedbytes(): Long
abstract fun crypto_kx_server_session_keys(rx: Pointer!, tx: Pointer!, server_pk: Pointer!, server_sk: Pointer!, client_pk: Pointer!): Int
abstract fun crypto_kx_sessionkeybytes(): Long
abstract fun crypto_onetimeauth(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_onetimeauth_bytes(): Long
abstract fun crypto_onetimeauth_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_onetimeauth_init(state: Pointer!, key: ByteArray!): Int
abstract fun crypto_onetimeauth_keybytes(): Long
abstract fun crypto_onetimeauth_keygen(k: ByteArray!): Unit
abstract fun crypto_onetimeauth_poly1305(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_onetimeauth_poly1305_bytes(): Long
abstract fun crypto_onetimeauth_poly1305_final(state: Pointer!, out: ByteArray!): Int
abstract fun crypto_onetimeauth_poly1305_init(state: Pointer!, key: ByteArray!): Int
abstract fun crypto_onetimeauth_poly1305_keybytes(): Long
abstract fun crypto_onetimeauth_poly1305_keygen(k: ByteArray!): Unit
abstract fun crypto_onetimeauth_poly1305_statebytes(): Long
abstract fun crypto_onetimeauth_poly1305_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_onetimeauth_poly1305_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_onetimeauth_primitive(): String!
abstract fun crypto_onetimeauth_statebytes(): Long
abstract fun crypto_onetimeauth_update(state: Pointer!, in: ByteArray!, inlen: Long): Int
abstract fun crypto_onetimeauth_verify(h: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_pwhash(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: Pointer!, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_alg_argon2i13(): Int
abstract fun crypto_pwhash_alg_argon2id13(): Int
abstract fun crypto_pwhash_alg_default(): Int
abstract fun crypto_pwhash_argon2i(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_argon2i_alg_argon2i13(): Int
abstract fun crypto_pwhash_argon2i_bytes_max(): Long
abstract fun crypto_pwhash_argon2i_bytes_min(): Long
abstract fun crypto_pwhash_argon2i_memlimit_interactive(): Long
abstract fun crypto_pwhash_argon2i_memlimit_max(): Long
abstract fun crypto_pwhash_argon2i_memlimit_min(): Long
abstract fun crypto_pwhash_argon2i_memlimit_moderate(): Long
abstract fun crypto_pwhash_argon2i_memlimit_sensitive(): Long
abstract fun crypto_pwhash_argon2i_opslimit_interactive(): Long
abstract fun crypto_pwhash_argon2i_opslimit_max(): Long
abstract fun crypto_pwhash_argon2i_opslimit_min(): Long
abstract fun crypto_pwhash_argon2i_opslimit_moderate(): Long
abstract fun crypto_pwhash_argon2i_opslimit_sensitive(): Long
abstract fun crypto_pwhash_argon2i_passwd_max(): Long
abstract fun crypto_pwhash_argon2i_passwd_min(): Long
abstract fun crypto_pwhash_argon2i_saltbytes(): Long
abstract fun crypto_pwhash_argon2i_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2i_str_needs_rehash(str: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2i_str_verify(str: ByteArray!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_argon2i_strbytes(): Long
abstract fun crypto_pwhash_argon2i_strprefix(): String!
abstract fun crypto_pwhash_argon2id(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_argon2id_alg_argon2id13(): Int
abstract fun crypto_pwhash_argon2id_bytes_max(): Long
abstract fun crypto_pwhash_argon2id_bytes_min(): Long
abstract fun crypto_pwhash_argon2id_memlimit_interactive(): Long
abstract fun crypto_pwhash_argon2id_memlimit_max(): Long
abstract fun crypto_pwhash_argon2id_memlimit_min(): Long
abstract fun crypto_pwhash_argon2id_memlimit_moderate(): Long
abstract fun crypto_pwhash_argon2id_memlimit_sensitive(): Long
abstract fun crypto_pwhash_argon2id_opslimit_interactive(): Long
abstract fun crypto_pwhash_argon2id_opslimit_max(): Long
abstract fun crypto_pwhash_argon2id_opslimit_min(): Long
abstract fun crypto_pwhash_argon2id_opslimit_moderate(): Long
abstract fun crypto_pwhash_argon2id_opslimit_sensitive(): Long
abstract fun crypto_pwhash_argon2id_passwd_max(): Long
abstract fun crypto_pwhash_argon2id_passwd_min(): Long
abstract fun crypto_pwhash_argon2id_saltbytes(): Long
abstract fun crypto_pwhash_argon2id_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2id_str_needs_rehash(str: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_argon2id_str_verify(str: ByteArray!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_argon2id_strbytes(): Long
abstract fun crypto_pwhash_argon2id_strprefix(): String!
abstract fun crypto_pwhash_bytes_max(): Long
abstract fun crypto_pwhash_bytes_min(): Long
abstract fun crypto_pwhash_memlimit_interactive(): Long
abstract fun crypto_pwhash_memlimit_max(): Long
abstract fun crypto_pwhash_memlimit_min(): Long
abstract fun crypto_pwhash_memlimit_moderate(): Long
abstract fun crypto_pwhash_memlimit_sensitive(): Long
abstract fun crypto_pwhash_opslimit_interactive(): Long
abstract fun crypto_pwhash_opslimit_max(): Long
abstract fun crypto_pwhash_opslimit_min(): Long
abstract fun crypto_pwhash_opslimit_moderate(): Long
abstract fun crypto_pwhash_opslimit_sensitive(): Long
abstract fun crypto_pwhash_passwd_max(): Long
abstract fun crypto_pwhash_passwd_min(): Long
abstract fun crypto_pwhash_primitive(): String!
abstract fun crypto_pwhash_saltbytes(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256(out: ByteArray!, outlen: Long, passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_bytes_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_bytes_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_ll(passwd: ByteArray!, passwdlen: Long, salt: ByteArray!, saltlen: Long, N: Long, r: Int, p: Int, buf: ByteArray!, buflen: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_interactive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_interactive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_passwd_max(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_passwd_min(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_saltbytes(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_str_needs_rehash(str: ByteArray!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_str_verify(str: ByteArray!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_scryptsalsa208sha256_strbytes(): Long
abstract fun crypto_pwhash_scryptsalsa208sha256_strprefix(): String!
abstract fun crypto_pwhash_str(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_str_alg(out: ByteArray!, passwd: ByteArray!, passwdlen: Long, opslimit: Long, memlimit: Long, alg: Int): Int
abstract fun crypto_pwhash_str_needs_rehash(str: Pointer!, opslimit: Long, memlimit: Long): Int
abstract fun crypto_pwhash_str_verify(str: Pointer!, passwd: ByteArray!, passwdlen: Long): Int
abstract fun crypto_pwhash_strbytes(): Long
abstract fun crypto_pwhash_strprefix(): String!
abstract fun crypto_scalarmult(q: Pointer!, n: Pointer!, p: Pointer!): Int
abstract fun crypto_scalarmult_base(q: Pointer!, n: Pointer!): Int
abstract fun crypto_scalarmult_bytes(): Long
abstract fun crypto_scalarmult_curve25519(q: ByteArray!, n: ByteArray!, p: ByteArray!): Int
abstract fun crypto_scalarmult_curve25519_base(q: ByteArray!, n: ByteArray!): Int
abstract fun crypto_scalarmult_curve25519_bytes(): Long
abstract fun crypto_scalarmult_curve25519_scalarbytes(): Long
abstract fun crypto_scalarmult_ed25519(q: ByteArray!, n: ByteArray!, p: ByteArray!): Int
abstract fun crypto_scalarmult_ed25519_base(q: ByteArray!, n: ByteArray!): Int
abstract fun crypto_scalarmult_ed25519_bytes(): Long
abstract fun crypto_scalarmult_ed25519_scalarbytes(): Long
abstract fun crypto_scalarmult_primitive(): String!
abstract fun crypto_scalarmult_scalarbytes(): Long
abstract fun crypto_secretbox(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_boxzerobytes(): Long
abstract fun crypto_secretbox_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_easy(c: Pointer!, m: Pointer!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_keybytes(): Long
abstract fun crypto_secretbox_keygen(k: Pointer!): Unit
abstract fun crypto_secretbox_macbytes(): Long
abstract fun crypto_secretbox_messagebytes_max(): Long
abstract fun crypto_secretbox_noncebytes(): Long
abstract fun crypto_secretbox_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_open_easy(m: Pointer!, c: Pointer!, clen: Long, n: Pointer!, k: Pointer!): Int
abstract fun crypto_secretbox_primitive(): String!
abstract fun crypto_secretbox_xchacha20poly1305_detached(c: ByteArray!, mac: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xchacha20poly1305_easy(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xchacha20poly1305_keybytes(): Long
abstract fun crypto_secretbox_xchacha20poly1305_macbytes(): Long
abstract fun crypto_secretbox_xchacha20poly1305_messagebytes_max(): Long
abstract fun crypto_secretbox_xchacha20poly1305_noncebytes(): Long
abstract fun crypto_secretbox_xchacha20poly1305_open_detached(m: ByteArray!, c: ByteArray!, mac: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xchacha20poly1305_open_easy(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xsalsa20poly1305(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xsalsa20poly1305_boxzerobytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_keybytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_keygen(k: ByteArray!): Unit
abstract fun crypto_secretbox_xsalsa20poly1305_macbytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_messagebytes_max(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_noncebytes(): Long
abstract fun crypto_secretbox_xsalsa20poly1305_open(m: ByteArray!, c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_secretbox_xsalsa20poly1305_zerobytes(): Long
abstract fun crypto_secretbox_zerobytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_abytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_headerbytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_init_pull(state: Pointer!, : ByteArray!, k: Pointer!): Int
abstract fun crypto_secretstream_xchacha20poly1305_init_push(state: Pointer!, : ByteArray!, k: Pointer!): Int
abstract fun crypto_secretstream_xchacha20poly1305_keybytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_keygen(k: Pointer!): Unit
abstract fun crypto_secretstream_xchacha20poly1305_messagebytes_max(): Long
abstract fun crypto_secretstream_xchacha20poly1305_pull(state: Pointer!, m: ByteArray!, mlen_p: LongLongByReference!, tag_p: ByteByReference!, c: ByteArray!, clen: Long, ad: ByteArray!, adlen: Long): Int
abstract fun crypto_secretstream_xchacha20poly1305_push(state: Pointer!, c: ByteArray!, clen_p: LongLongByReference!, m: ByteArray!, mlen: Long, ad: ByteArray!, adlen: Long, tag: Byte): Int
abstract fun crypto_secretstream_xchacha20poly1305_rekey(state: Pointer!): Unit
abstract fun crypto_secretstream_xchacha20poly1305_statebytes(): Long
abstract fun crypto_secretstream_xchacha20poly1305_tag_final(): Char
abstract fun crypto_secretstream_xchacha20poly1305_tag_message(): Char
abstract fun crypto_secretstream_xchacha20poly1305_tag_push(): Char
abstract fun crypto_secretstream_xchacha20poly1305_tag_rekey(): Char
abstract fun crypto_shorthash(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_shorthash_bytes(): Long
abstract fun crypto_shorthash_keybytes(): Long
abstract fun crypto_shorthash_keygen(k: ByteArray!): Unit
abstract fun crypto_shorthash_primitive(): String!
abstract fun crypto_shorthash_siphash24(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_shorthash_siphash24_bytes(): Long
abstract fun crypto_shorthash_siphash24_keybytes(): Long
abstract fun crypto_shorthash_siphashx24(out: ByteArray!, in: ByteArray!, inlen: Long, k: ByteArray!): Int
abstract fun crypto_shorthash_siphashx24_bytes(): Long
abstract fun crypto_shorthash_siphashx24_keybytes(): Long
abstract fun crypto_sign(sm: ByteArray!, @Nullable smlen_p: LongLongByReference?, m: ByteArray!, mlen: Long, sk: Pointer!): Int
abstract fun crypto_sign_bytes(): Long
abstract fun crypto_sign_detached(sig: ByteArray!, @Nullable siglen_p: LongLongByReference?, m: ByteArray!, mlen: Long, sk: Pointer!): Int
abstract fun crypto_sign_detached(sig: Pointer!, @Nullable siglen_p: LongLongByReference?, m: Pointer!, mlen: Long, sk: Pointer!): Int
abstract fun crypto_sign_ed25519(sm: ByteArray!, smlen_p: LongLongByReference!, m: ByteArray!, mlen: Long, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_bytes(): Long
abstract fun crypto_sign_ed25519_detached(sig: ByteArray!, siglen_p: LongLongByReference!, m: ByteArray!, mlen: Long, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_keypair(pk: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_messagebytes_max(): Long
abstract fun crypto_sign_ed25519_open(m: ByteArray!, mlen_p: LongLongByReference!, sm: ByteArray!, smlen: Long, pk: ByteArray!): Int
abstract fun crypto_sign_ed25519_pk_to_curve25519(curve25519_pk: Pointer!, ed25519_pk: Pointer!): Int
abstract fun crypto_sign_ed25519_publickeybytes(): Long
abstract fun crypto_sign_ed25519_secretkeybytes(): Long
abstract fun crypto_sign_ed25519_seed_keypair(pk: ByteArray!, sk: ByteArray!, seed: ByteArray!): Int
abstract fun crypto_sign_ed25519_seedbytes(): Long
abstract fun crypto_sign_ed25519_sk_to_curve25519(curve25519_sk: Pointer!, ed25519_sk: Pointer!): Int
abstract fun crypto_sign_ed25519_sk_to_pk(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_sign_ed25519_sk_to_seed(seed: ByteArray!, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519_verify_detached(sig: ByteArray!, m: ByteArray!, mlen: Long, pk: ByteArray!): Int
abstract fun crypto_sign_ed25519ph_final_create(state: Pointer!, sig: ByteArray!, siglen_p: LongLongByReference!, sk: ByteArray!): Int
abstract fun crypto_sign_ed25519ph_final_verify(state: Pointer!, sig: ByteArray!, pk: ByteArray!): Int
abstract fun crypto_sign_ed25519ph_init(state: Pointer!): Int
abstract fun crypto_sign_ed25519ph_statebytes(): Long
abstract fun crypto_sign_ed25519ph_update(state: Pointer!, m: ByteArray!, mlen: Long): Int
abstract fun crypto_sign_final_create(state: Pointer!, sig: ByteArray!, siglen_p: LongLongByReference!, sk: ByteArray!): Int
abstract fun crypto_sign_final_verify(state: Pointer!, sig: ByteArray!, pk: ByteArray!): Int
abstract fun crypto_sign_init(state: Pointer!): Int
abstract fun crypto_sign_keypair(pk: Pointer!, sk: Pointer!): Int
abstract fun crypto_sign_messagebytes_max(): Long
abstract fun crypto_sign_open(m: ByteArray!, mlen_p: LongLongByReference!, sm: ByteArray!, smlen: Long, pk: Pointer!): Int
abstract fun crypto_sign_primitive(): String!
abstract fun crypto_sign_publickeybytes(): Long
abstract fun crypto_sign_secretkeybytes(): Long
abstract fun crypto_sign_seed_keypair(pk: Pointer!, sk: Pointer!, seed: Pointer!): Int
abstract fun crypto_sign_seedbytes(): Long
abstract fun crypto_sign_statebytes(): Long
abstract fun crypto_sign_update(state: Pointer!, m: ByteArray!, mlen: Long): Int
abstract fun crypto_sign_verify_detached(sig: Pointer!, m: Pointer!, mlen: Long, pk: Pointer!): Int
abstract fun crypto_sign_verify_detached(sig: ByteArray!, m: ByteArray!, mlen: Long, pk: Pointer!): Int
abstract fun crypto_stream(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_ietf(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_ietf_keybytes(): Long
abstract fun crypto_stream_chacha20_ietf_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_chacha20_ietf_messagebytes_max(): Long
abstract fun crypto_stream_chacha20_ietf_noncebytes(): Long
abstract fun crypto_stream_chacha20_ietf_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_ietf_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Int, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_keybytes(): Long
abstract fun crypto_stream_chacha20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_chacha20_messagebytes_max(): Long
abstract fun crypto_stream_chacha20_noncebytes(): Long
abstract fun crypto_stream_chacha20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_chacha20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_stream_keybytes(): Long
abstract fun crypto_stream_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_messagebytes_max(): Long
abstract fun crypto_stream_noncebytes(): Long
abstract fun crypto_stream_primitive(): String!
abstract fun crypto_stream_salsa20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa2012(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa2012_keybytes(): Long
abstract fun crypto_stream_salsa2012_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_salsa2012_messagebytes_max(): Long
abstract fun crypto_stream_salsa2012_noncebytes(): Long
abstract fun crypto_stream_salsa2012_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa208(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa208_keybytes(): Long
abstract fun crypto_stream_salsa208_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_salsa208_messagebytes_max(): Long
abstract fun crypto_stream_salsa208_noncebytes(): Long
abstract fun crypto_stream_salsa208_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa20_keybytes(): Long
abstract fun crypto_stream_salsa20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_salsa20_messagebytes_max(): Long
abstract fun crypto_stream_salsa20_noncebytes(): Long
abstract fun crypto_stream_salsa20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_salsa20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_stream_xchacha20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xchacha20_keybytes(): Long
abstract fun crypto_stream_xchacha20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_xchacha20_messagebytes_max(): Long
abstract fun crypto_stream_xchacha20_noncebytes(): Long
abstract fun crypto_stream_xchacha20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xchacha20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_stream_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xsalsa20(c: ByteArray!, clen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xsalsa20_keybytes(): Long
abstract fun crypto_stream_xsalsa20_keygen(k: ByteArray!): Unit
abstract fun crypto_stream_xsalsa20_messagebytes_max(): Long
abstract fun crypto_stream_xsalsa20_noncebytes(): Long
abstract fun crypto_stream_xsalsa20_xor(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, k: ByteArray!): Int
abstract fun crypto_stream_xsalsa20_xor_ic(c: ByteArray!, m: ByteArray!, mlen: Long, n: ByteArray!, ic: Long, k: ByteArray!): Int
abstract fun crypto_verify_16(x: ByteArray!, y: ByteArray!): Int
abstract fun crypto_verify_16_bytes(): Long
abstract fun crypto_verify_32(x: ByteArray!, y: ByteArray!): Int
abstract fun crypto_verify_32_bytes(): Long
abstract fun crypto_verify_64(x: ByteArray!, y: ByteArray!): Int
abstract fun crypto_verify_64_bytes(): Long
abstract fun implementation_name(): String!
abstract fun random(): Int
abstract fun randombytes(buf: ByteArray!, buf_len: Long): Unit
abstract fun randombytes_buf(buf: Pointer!, size: Long): Unit
abstract fun randombytes_buf_deterministic(buf: ByteArray!, size: Long, seed: ByteArray!): Unit
abstract fun randombytes_close(): Int
abstract fun randombytes_implementation_name(): String!
abstract fun randombytes_random(): Int
abstract fun randombytes_seedbytes(): Long
abstract fun randombytes_set_implementation(impl: Pointer!): Int
abstract fun randombytes_stir(): Unit
abstract fun randombytes_uniform(upper_bound: Int): Int
abstract fun sodium_add(a: Pointer!, b: Pointer!, len: Long): Unit
abstract fun sodium_allocarray(count: Long, size: Long): Pointer!
abstract fun sodium_base642bin(bin: ByteArray!, bin_maxlen: Long, b64: ByteArray!, b64_len: Long, ignore: ByteArray!, bin_len: LongLongByReference!, b64_end: Pointer!, variant: Int): Int
abstract fun sodium_base64_encoded_len(bin_len: Long, variant: Int): Long
abstract fun sodium_compare(b1_: Pointer!, b2_: Pointer!, len: Long): Int
abstract fun sodium_free(ptr: Pointer!): Unit
abstract fun sodium_hex2bin(bin: ByteArray!, bin_maxlen: Long, hex: ByteArray!, hex_len: Long, ignore: ByteArray!, bin_len: LongLongByReference!, hex_end: Pointer!): Int
abstract fun sodium_increment(n: Pointer!, nlen: Long): Unit
abstract fun sodium_init(): Int
abstract fun sodium_is_zero(n: Pointer!, nlen: Long): Int
abstract fun sodium_library_minimal(): Int
abstract fun sodium_library_version_major(): Int
abstract fun sodium_library_version_minor(): Int
abstract fun sodium_malloc(size: Long): Pointer!
abstract fun sodium_memcmp(b1_: Pointer!, b2_: Pointer!, len: Long): Int
abstract fun sodium_memzero(pnt: Pointer!, len: Long): Unit
abstract fun sodium_misuse(): Unit
abstract fun sodium_mlock(addr: Pointer!, len: Long): Int
abstract fun sodium_mprotect_noaccess(ptr: Pointer!): Int
abstract fun sodium_mprotect_readonly(ptr: Pointer!): Int
abstract fun sodium_mprotect_readwrite(ptr: Pointer!): Int
abstract fun sodium_munlock(addr: Pointer!, len: Long): Int
abstract fun sodium_pad(padded_buflen_p: LongLongByReference!, buf: ByteArray!, unpadded_buflen: Long, blocksize: Long, max_buflen: Long): Int
abstract fun sodium_runtime_has_aesni(): Int
abstract fun sodium_runtime_has_avx(): Int
abstract fun sodium_runtime_has_avx2(): Int
abstract fun sodium_runtime_has_avx512f(): Int
abstract fun sodium_runtime_has_neon(): Int
abstract fun sodium_runtime_has_pclmul(): Int
abstract fun sodium_runtime_has_rdrand(): Int
abstract fun sodium_runtime_has_sse2(): Int
abstract fun sodium_runtime_has_sse3(): Int
abstract fun sodium_runtime_has_sse41(): Int
abstract fun sodium_runtime_has_ssse3(): Int
abstract fun sodium_set_misuse_handler(handler: Pointer!): Int
abstract fun sodium_stackzero(len: Long): Unit
abstract fun sodium_unpad(unpadded_buflen_p: LongLongByReference!, buf: ByteArray!, padded_buflen: Long, blocksize: Long): Int
abstract fun sodium_version_string(): String!
abstract fun stir(): Unit
abstract fun uniform(upper_bound: Int): Int
class PasswordHash
Module Contents
PasswordHash()
class Algorithm
static fun checkHash(hash: String!, password: String!): VerificationResult!
static fun checkHash(hash: String!, password: String!, opsLimit: Long, memLimit: Long): VerificationResult!
static fun checkHashForInteractive(hash: String!, password: String!): VerificationResult!
static fun checkHashForSensitive(hash: String!, password: String!): VerificationResult!
static fun hash(password: String!, length: Int, salt: Salt!): Bytes!
static fun hash(password: Bytes!, length: Int, salt: Salt!): Bytes!
static fun hash(password: ByteArray!, length: Int, salt: Salt!): ByteArray!
static fun hash(password: String!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hash(password: Bytes!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hash(password: ByteArray!, length: Int, salt: Salt!, algorithm: Algorithm!): ByteArray!
static fun hash(password: String!, length: Int, salt: Salt!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes!
static fun hash(password: Bytes!, length: Int, salt: Salt!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes!
static fun hash(password: ByteArray!, length: Int, salt: Salt!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray!
static fun hash(password: String!): String!
static fun hash(password: String!, opsLimit: Long, memLimit: Long): String!
static fun hashInteractive(password: String!, length: Int, salt: Salt!): Bytes!
static fun hashInteractive(password: Bytes!, length: Int, salt: Salt!): Bytes!
static fun hashInteractive(password: ByteArray!, length: Int, salt: Salt!): ByteArray!
static fun hashInteractive(password: String!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashInteractive(password: Bytes!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashInteractive(password: ByteArray!, length: Int, salt: Salt!, algorithm: Algorithm!): ByteArray!
static fun hashInteractive(password: String!): String!
static fun hashSensitive(password: String!, length: Int, salt: Salt!): Bytes!
static fun hashSensitive(password: Bytes!, length: Int, salt: Salt!): Bytes!
static fun hashSensitive(password: ByteArray!, length: Int, salt: Salt!): ByteArray!
static fun hashSensitive(password: String!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashSensitive(password: Bytes!, length: Int, salt: Salt!, algorithm: Algorithm!): Bytes!
static fun hashSensitive(password: ByteArray!, length: Int, salt: Salt!, algorithm: Algorithm!): ByteArray!
static fun hashSensitive(password: String!): String!
static fun interactiveMemLimit(): Long
static fun interactiveOpsLimit(): Long
static fun maxHashLength(): Int
static fun maxMemLimit(): Long
static fun maxOpsLimit(): Long
static fun minHashLength(): Int
static fun minMemLimit(): Long
static fun minOpsLimit(): Long
static fun moderateMemLimit(): Long
static fun moderateOpsLimit(): Long
static fun needsRehash(hash: String!): Boolean
static fun needsRehash(hash: String!, opsLimit: Long, memLimit: Long): Boolean
static fun needsRehashForInteractive(hash: String!): Boolean
static fun needsRehashForSensitive(hash: String!): Boolean
class Salt
static fun sensitiveMemLimit(): Long
static fun sensitiveOpsLimit(): Long
class VerificationResult
static fun verify(hash: String!, password: String!): Boolean
class SecretBox
Module Contents
@Nullable static fun decrypt(cipherText: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: Allocated!, key: Key!, nonce: Nonce!): Allocated?
@Nullable static fun decrypt(cipherText: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, password: String!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, password: String!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, password: String!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptInteractive(cipherText: Bytes!, password: String!): Bytes?
@Nullable static fun decryptInteractive(cipherText: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptInteractive(cipherText: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptInteractive(cipherText: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptInteractiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!): Bytes?
@Nullable static fun decryptInteractiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptInteractiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptInteractiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptSensitive(cipherText: Bytes!, password: String!): Bytes?
@Nullable static fun decryptSensitive(cipherText: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptSensitive(cipherText: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptSensitive(cipherText: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
@Nullable static fun decryptSensitiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!): Bytes?
@Nullable static fun decryptSensitiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!): ByteArray?
@Nullable static fun decryptSensitiveDetached(cipherText: Bytes!, mac: Bytes!, password: String!, algorithm: Algorithm!): Bytes?
@Nullable static fun decryptSensitiveDetached(cipherText: ByteArray!, mac: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray?
static fun encrypt(message: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: Allocated!, key: Key!, nonce: Nonce!): Allocated!
static fun encrypt(message: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, password: String!): Bytes!
static fun encrypt(message: ByteArray!, password: String!): ByteArray!
static fun encrypt(message: Bytes!, password: String!, algorithm: Algorithm!): Bytes!
static fun encrypt(message: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray!
static fun encrypt(message: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): Bytes!
static fun encrypt(message: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): ByteArray!
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, password: String!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, password: String!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, password: String!, opsLimit: Long, memLimit: Long, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptInteractive(message: Bytes!, password: String!): Bytes!
static fun encryptInteractive(message: ByteArray!, password: String!): ByteArray!
static fun encryptInteractive(message: Bytes!, password: String!, algorithm: Algorithm!): Bytes!
static fun encryptInteractive(message: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray!
static fun encryptInteractiveDetached(message: Bytes!, password: String!): DetachedEncryptionResult!
static fun encryptInteractiveDetached(message: ByteArray!, password: String!): DetachedEncryptionResult!
static fun encryptInteractiveDetached(message: Bytes!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptInteractiveDetached(message: ByteArray!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptSensitive(message: Bytes!, password: String!): Bytes!
static fun encryptSensitive(message: ByteArray!, password: String!): ByteArray!
static fun encryptSensitive(message: Bytes!, password: String!, algorithm: Algorithm!): Bytes!
static fun encryptSensitive(message: ByteArray!, password: String!, algorithm: Algorithm!): ByteArray!
static fun encryptSensitiveDetached(message: Bytes!, password: String!): DetachedEncryptionResult!
static fun encryptSensitiveDetached(message: ByteArray!, password: String!): DetachedEncryptionResult!
static fun encryptSensitiveDetached(message: Bytes!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
static fun encryptSensitiveDetached(message: ByteArray!, password: String!, algorithm: Algorithm!): DetachedEncryptionResult!
class Key : Destroyable
class Nonce : Destroyable
interface SecretDecryptionStream : Destroyable
interface SecretEncryptionStream : Destroyable
open class SHA256Hash
class Signature
Module Contents
class KeyPair
class PublicKey : Destroyable
class SecretKey : Destroyable
class Seed
static fun sign(message: Bytes!, secretKey: SecretKey!): Bytes!
static fun sign(message: ByteArray!, secretKey: SecretKey!): ByteArray!
static fun signDetached(message: Bytes!, secretKey: SecretKey!): Bytes!
static fun signDetached(message: Allocated!, secretKey: SecretKey!): Allocated!
static fun signDetached(message: ByteArray!, secretKey: SecretKey!): ByteArray!
static fun verify(signed: Bytes!, publicKey: PublicKey!): Bytes!
static fun verify(signed: ByteArray!, publicKey: PublicKey!): ByteArray!
static fun verifyDetached(message: Bytes!, signature: Bytes!, publicKey: PublicKey!): Boolean
static fun verifyDetached(message: Allocated!, signature: Allocated!, publicKey: PublicKey!): Boolean
static fun verifyDetached(message: ByteArray!, signature: ByteArray!, publicKey: PublicKey!): Boolean
class Sodium
class SodiumException : RuntimeException
class SodiumVersion : Comparable<SodiumVersion!>
class XChaCha20Poly1305
Module Contents
@Nullable static fun decrypt(cipherText: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decrypt(cipherText: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decrypt(cipherText: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, key: Key!, nonce: Nonce!): Bytes!
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
@Nullable static fun decryptDetached(cipherText: Bytes!, mac: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes?
@Nullable static fun decryptDetached(cipherText: ByteArray!, mac: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray?
static fun encrypt(message: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encrypt(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): Bytes!
static fun encrypt(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): ByteArray!
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun encryptDetached(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
static fun isAvailable(): Boolean
static fun isSecretStreamAvailable(): Boolean
class Key : Destroyable
class Nonce
static fun openDecryptionStream(key: Key!, : ByteArray!): SecretDecryptionStream!
static fun openEncryptionStream(key: Key!): SecretEncryptionStream!