public interface Sodium
| Modifier and Type | Interface and Description |
|---|---|
static class |
Sodium.Init |
static class |
Sodium.Util |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkValid(int status,
String description) |
int |
crypto_box_beforenm(long shared,
long publicKey,
long secretKey) |
int |
crypto_box_curve25519xsalsa20poly1305_keypair(long publicKey,
long privateKey) |
int |
crypto_box_easy_afternm(long c,
long m,
long mlen,
long n,
long sharedkey) |
int |
crypto_box_easy(long c,
long m,
long mlen,
long n,
long pk,
long sk) |
void |
crypto_box_keypair(long publicKey,
long secretKey) |
int |
crypto_box_open_easy_afternm(long c,
long m,
long mlen,
long n,
long sharedkey) |
int |
crypto_box_open_easy(long m,
long c,
long clen,
long n,
long pk,
long sk) |
int |
crypto_box_seal_open(long message,
long c,
int length,
long publicKey,
long privateKey) |
int |
crypto_box_seal(long ct,
long message,
int length,
long publicKey) |
void |
crypto_box_seed_keypair(long publicKey,
long secretKey,
long seed) |
int |
crypto_generichash_final(long state,
long out,
long outlen) |
int |
crypto_generichash_init(long state,
long key,
int keySize,
int out) |
int |
crypto_generichash_update(long state,
long in,
long inlen) |
int |
crypto_generichash(long buffer,
int out,
long message,
int msgLen,
long key,
int keySize) |
int |
crypto_hash_sha256_final(long state,
long out) |
int |
crypto_hash_sha256_init(long state) |
int |
crypto_hash_sha256_update(long state,
long in,
long inlen) |
int |
crypto_hash_sha256(long buffer,
long message,
int sizeof) |
int |
crypto_hash_sha512_final(long state,
long out) |
int |
crypto_hash_sha512_init(long state) |
int |
crypto_hash_sha512_update(long state,
long in,
long inlen) |
int |
crypto_hash_sha512(long buffer,
long message,
int sizeof) |
int |
crypto_scalarmult_curve25519(long result,
long intValue,
long point) |
int |
crypto_sign_ed25519_detached(long signature,
long sigLen,
long message,
int msgLen,
long secretKey) |
int |
crypto_sign_ed25519_open(long buffer,
jnr.ffi.byref.LongLongByReference bufferLen,
long sigAndMsg,
int sigAndMsgLen,
long publicKey) |
int |
crypto_sign_ed25519_open(long buffer,
long bufferLen,
long sigAndMsg,
int sigAndMsgLen,
long publicKey) |
int |
crypto_sign_ed25519_seed_keypair(long publicKey,
long secretKey,
long seed) |
int |
crypto_sign_ed25519_sk_to_pk(long pk,
long sk) |
int |
crypto_sign_ed25519_sk_to_seed(long seed,
long sk) |
int |
crypto_sign_ed25519_verify_detached(long signature,
long message,
long messageLen,
long publicKey) |
int |
crypto_sign_ed25519(long signature,
jnr.ffi.byref.LongLongByReference sigLen,
long message,
int msgLen,
long secretKey) |
int |
crypto_sign_final_create(long state,
long sig,
long siglen,
long sk) |
int |
crypto_sign_final_verify(long state,
long sig,
long pk) |
int |
crypto_sign_init(long state) |
int |
crypto_sign_keypair(long pl,
long sk) |
int |
crypto_sign_open(long m,
long mlen,
long sm,
long smlen,
long pk) |
int |
crypto_sign_seed_keypair(long pk,
long sk,
long seed) |
int |
crypto_sign_update(long state,
long m,
long mlen) |
int |
crypto_sign(long sm,
long smlen,
long m,
long mlen,
long sk) |
void |
randombytes_buf_deterministic(long buffer,
int size,
long seed) |
void |
randombytes_buf(long buffer,
int size) |
void |
randombytes(long buffer,
int size) |
void |
sodium_increment(long buffer,
int size) |
int |
sodium_init() |
void |
sodium_memzero(long address,
long size) |
String |
sodium_version_string() |
static final String STANDARD_GROUP_ELEMENT
static final net.openhft.chronicle.bytes.BytesStore<?,?> SGE_BYTES
static final int ED25519_PUBLICKEY_BYTES
static final int ED25519_PRIVATEKEY_BYTES
static final int ED25519_SECRETKEY_BYTES
static final Sodium SODIUM
static final int CRYPTO_BOX_CURVE25519XSALSA20POLY1305_PUBLICKEYBYTES
static final int CRYPTO_BOX_CURVE25519XSALSA20POLY1305_SECRETKEYBYTES
static final int SIZEOF_CRYPTO_HASH_BLAKE2B_STATE
static final int SIZEOF_CRYPTO_HASH_SHA256_STATE
static final int SIZEOF_CRYPTO_HASH_SHA512_STATE
static final int CRYPTO_BOX_CURVE25519XSALSA20POLY1305_ZEROBYTES
static final int CRYPTO_BOX_CURVE25519XSALSA20POLY1305_BOXZEROBYTES
static final int CRYPTO_BOX_CURVE25519XSALSA20POLY1305_MACBYTES
static final int CRYPTO_BOX_SEALBYTES
static final int CRYPTO_SCALARMULT_CURVE25519_SCALARBYTES
static final int CRYPTO_BOX_PUBLICKEYBYTES
static final int CRYPTO_BOX_SECRETKEYBYTES
static final int CRYPTO_BOX_MACBYTES
static final int CRYPTO_BOX_NONCEBYTES
static final int CRYPTO_BOX_SEEDBYTES
static final int RANDOMBYTES_SEEDBYTES
static final int CRYPTO_BOX_BEFORENMBYTES
static final int CRYPTO_SIGN_BYTES
static final int CRYPTO_SIGN_SEEDBYTES
static final int CRYPTO_SIGN_PUBLICKEYBYTES
static final int CRYPTO_SIGN_SECRETKEYBYTES
static final int SIZEOF_CRYPTO_SIGN_STATE
static void checkValid(int status,
String description)
throws IllegalStateException
IllegalStateExceptionint sodium_init()
String sodium_version_string()
void sodium_memzero(long address,
long size)
void sodium_increment(long buffer,
int size)
void randombytes(long buffer,
int size)
void randombytes_buf(long buffer,
int size)
void randombytes_buf_deterministic(long buffer,
int size,
long seed)
int crypto_box_curve25519xsalsa20poly1305_keypair(long publicKey,
long privateKey)
int crypto_sign_ed25519_seed_keypair(long publicKey,
long secretKey,
long seed)
int crypto_sign_ed25519(long signature,
jnr.ffi.byref.LongLongByReference sigLen,
long message,
int msgLen,
long secretKey)
int crypto_sign_ed25519_detached(long signature,
long sigLen,
long message,
int msgLen,
long secretKey)
int crypto_scalarmult_curve25519(long result,
long intValue,
long point)
int crypto_generichash(long buffer,
int out,
long message,
int msgLen,
long key,
int keySize)
int crypto_generichash_init(long state,
long key,
int keySize,
int out)
int crypto_generichash_update(long state,
long in,
long inlen)
int crypto_generichash_final(long state,
long out,
long outlen)
int crypto_hash_sha256(long buffer,
long message,
int sizeof)
int crypto_hash_sha256_init(long state)
int crypto_hash_sha256_update(long state,
long in,
long inlen)
int crypto_hash_sha256_final(long state,
long out)
int crypto_hash_sha512(long buffer,
long message,
int sizeof)
int crypto_hash_sha512_init(long state)
int crypto_hash_sha512_update(long state,
long in,
long inlen)
int crypto_hash_sha512_final(long state,
long out)
int crypto_sign_ed25519_open(long buffer,
jnr.ffi.byref.LongLongByReference bufferLen,
long sigAndMsg,
int sigAndMsgLen,
long publicKey)
int crypto_sign_ed25519_open(long buffer,
long bufferLen,
long sigAndMsg,
int sigAndMsgLen,
long publicKey)
int crypto_sign_ed25519_verify_detached(long signature,
long message,
long messageLen,
long publicKey)
int crypto_box_seal(long ct,
long message,
int length,
long publicKey)
int crypto_box_seal_open(long message,
long c,
int length,
long publicKey,
long privateKey)
void crypto_box_keypair(long publicKey,
long secretKey)
void crypto_box_seed_keypair(long publicKey,
long secretKey,
long seed)
int crypto_box_beforenm(long shared,
long publicKey,
long secretKey)
int crypto_box_easy(long c,
long m,
long mlen,
long n,
long pk,
long sk)
int crypto_box_easy_afternm(long c,
long m,
long mlen,
long n,
long sharedkey)
int crypto_box_open_easy(long m,
long c,
long clen,
long n,
long pk,
long sk)
int crypto_box_open_easy_afternm(long c,
long m,
long mlen,
long n,
long sharedkey)
int crypto_sign_keypair(long pl,
long sk)
int crypto_sign_seed_keypair(long pk,
long sk,
long seed)
int crypto_sign(long sm,
long smlen,
long m,
long mlen,
long sk)
int crypto_sign_open(long m,
long mlen,
long sm,
long smlen,
long pk)
int crypto_sign_init(long state)
int crypto_sign_update(long state,
long m,
long mlen)
int crypto_sign_final_create(long state,
long sig,
long siglen,
long sk)
int crypto_sign_final_verify(long state,
long sig,
long pk)
int crypto_sign_ed25519_sk_to_seed(long seed,
long sk)
int crypto_sign_ed25519_sk_to_pk(long pk,
long sk)
Copyright © 2023. All rights reserved.