Package io.aether.nativeLib
Class HydrogenLib
java.lang.Object
io.aether.nativeLib.HydrogenLib
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic inthydro_hash_final(HydrogenLib.hydro_hash_state state, byte[] out) static inthydro_hash_hash(byte[] out, byte[] in_, byte[] ctx, byte[] key) static inthydro_hash_init(HydrogenLib.hydro_hash_state state, byte[] ctx, byte[] key) static voidhydro_hash_keygen(byte[] key) static inthydro_hash_update(HydrogenLib.hydro_hash_state state, byte[] in_) static inthydro_kdf_derive_from_key(byte[] subkey, long subkey_id, byte[] ctx, byte[] key) static voidhydro_kdf_keygen(byte[] key) static voidstatic voidhydro_kx_keygen_deterministic(HydrogenLib.hydro_kx_keypair keyPair, byte[] seed) static inthydro_kx_kk_1(HydrogenLib.hydro_kx_state state, byte[] packet1, byte[] peer_static_pk, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_kk_2(HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2, byte[] packet1, byte[] peer_static_pk, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_kk_3(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_n_1(HydrogenLib.hydro_kx_session_keypair keypair, byte[] packet1, byte[] psk, byte[] peer_static_pk) static inthydro_kx_n_2(HydrogenLib.hydro_kx_session_keypair kp, byte[] packet1, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_nk_1(HydrogenLib.hydro_kx_state state, byte[] packet1, byte[] psk, byte[] peer_static_pk) static inthydro_kx_nk_2(HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2, byte[] packet1, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_nk_3(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2) static inthydro_kx_xx_1(HydrogenLib.hydro_kx_state state, byte[] packet1, byte[] psk) static inthydro_kx_xx_2(HydrogenLib.hydro_kx_state state, byte[] packet2, byte[] packet1, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_xx_3(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] packet3, byte[] peer_static_pk, byte[] packet2, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) static inthydro_kx_xx_4(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] peer_static_pk, byte[] packet3, byte[] psk) static inthydro_pwhash_create(byte[] stored, byte[] passwd, byte[] master_key, long opslimit, int memlimit, byte threads) static inthydro_pwhash_derive_static_key(byte[] static_key, byte[] stored, byte[] passwd, byte[] ctx, byte[] master_key, long opslimit_max, int memlimit_max, byte threads_max) static inthydro_pwhash_deterministic(byte[] h, byte[] passwd, byte[] ctx, byte[] master_key, long opslimit, int memlimit, byte threads) static voidhydro_pwhash_keygen(byte[] master_key) static inthydro_pwhash_reencrypt(byte[] stored, byte[] master_key, byte[] new_master_key) static inthydro_pwhash_upgrade(byte[] stored, byte[] master_key, long opslimit, int memlimit, byte threads) static inthydro_pwhash_verify(byte[] stored, byte[] passwd, byte[] master_key, long opslimit_max, int memlimit_max, byte threads_max) static inthydro_secretbox_decrypt(byte[] m_, byte[] c, long msg_id, byte[] ctx, byte[] key) static inthydro_secretbox_encrypt(byte[] c, byte[] m_, long msg_id, byte[] ctx, byte[] key) static voidhydro_secretbox_keygen(byte[] key) static inthydro_secretbox_probe_create(byte[] probe, byte[] c, byte[] ctx, byte[] key) static inthydro_secretbox_probe_verify(byte[] probe, byte[] c, byte[] ctx, byte[] key) static inthydro_sign_create(byte[] csig, byte[] m_, byte[] ctx, byte[] sk) static inthydro_sign_final_create(HydrogenLib.hydro_sign_state state, byte[] csig, byte[] sk) static inthydro_sign_final_verify(HydrogenLib.hydro_sign_state state, byte[] csig, byte[] pk) static inthydro_sign_init(HydrogenLib.hydro_sign_state state, byte[] ctx) static voidstatic voidhydro_sign_keygen_deterministic(HydrogenLib.hydro_sign_keypair kp, byte[] seed) static inthydro_sign_update(HydrogenLib.hydro_sign_state state, byte[] m_) static inthydro_sign_verify(byte[] csig, byte[] m_, byte[] ctx, byte[] pk)
-
Field Details
-
hydro_secretbox_CONTEXTBYTES
public static final int hydro_secretbox_CONTEXTBYTES- See Also:
-
hydro_secretbox_HEADERBYTES
public static final int hydro_secretbox_HEADERBYTES- See Also:
-
hydro_secretbox_KEYBYTES
public static final int hydro_secretbox_KEYBYTES- See Also:
-
hydro_secretbox_PROBEBYTES
public static final int hydro_secretbox_PROBEBYTES- See Also:
-
hydro_kx_SESSIONKEYBYTES
public static final int hydro_kx_SESSIONKEYBYTES- See Also:
-
hydro_kx_PUBLICKEYBYTES
public static final int hydro_kx_PUBLICKEYBYTES- See Also:
-
hydro_kx_SECRETKEYBYTES
public static final int hydro_kx_SECRETKEYBYTES- See Also:
-
hydro_kx_PSKBYTES
public static final int hydro_kx_PSKBYTES- See Also:
-
hydro_kx_SEEDBYTES
public static final int hydro_kx_SEEDBYTES- See Also:
-
hydro_kx_N_PACKET1BYTES
public static final int hydro_kx_N_PACKET1BYTES- See Also:
-
hydro_kx_KK_PACKET1BYTES
public static final int hydro_kx_KK_PACKET1BYTES- See Also:
-
hydro_kx_KK_PACKET2BYTES
public static final int hydro_kx_KK_PACKET2BYTES- See Also:
-
hydro_hash_BYTES
public static final int hydro_hash_BYTES- See Also:
-
hydro_hash_BYTES_MAX
public static final int hydro_hash_BYTES_MAX- See Also:
-
hydro_hash_BYTES_MIN
public static final int hydro_hash_BYTES_MIN- See Also:
-
hydro_hash_CONTEXTBYTES
public static final int hydro_hash_CONTEXTBYTES- See Also:
-
hydro_hash_KEYBYTES
public static final int hydro_hash_KEYBYTES- See Also:
-
hydro_sign_BYTES
public static final int hydro_sign_BYTES- See Also:
-
hydro_sign_CONTEXTBYTES
public static final int hydro_sign_CONTEXTBYTES- See Also:
-
hydro_sign_PUBLICKEYBYTES
public static final int hydro_sign_PUBLICKEYBYTES- See Also:
-
hydro_sign_SECRETKEYBYTES
public static final int hydro_sign_SECRETKEYBYTES- See Also:
-
hydro_sign_SEEDBYTES
public static final int hydro_sign_SEEDBYTES- See Also:
-
hydro_kdf_CONTEXTBYTES
public static final int hydro_kdf_CONTEXTBYTES- See Also:
-
hydro_kdf_KEYBYTES
public static final int hydro_kdf_KEYBYTES- See Also:
-
hydro_kdf_BYTES_MAX
public static final int hydro_kdf_BYTES_MAX- See Also:
-
hydro_kdf_BYTES_MIN
public static final int hydro_kdf_BYTES_MIN- See Also:
-
hydro_kx_XX_PACKET1BYTES
public static final int hydro_kx_XX_PACKET1BYTES- See Also:
-
hydro_kx_XX_PACKET2BYTES
public static final int hydro_kx_XX_PACKET2BYTES- See Also:
-
hydro_kx_XX_PACKET3BYTES
public static final int hydro_kx_XX_PACKET3BYTES- See Also:
-
hydro_kx_NK_PACKET1BYTES
public static final int hydro_kx_NK_PACKET1BYTES- See Also:
-
hydro_kx_NK_PACKET2BYTES
public static final int hydro_kx_NK_PACKET2BYTES- See Also:
-
hydro_pwhash_CONTEXTBYTES
public static final int hydro_pwhash_CONTEXTBYTES- See Also:
-
hydro_pwhash_MASTERKEYBYTES
public static final int hydro_pwhash_MASTERKEYBYTES- See Also:
-
hydro_pwhash_STOREDBYTES
public static final int hydro_pwhash_STOREDBYTES- See Also:
-
-
Constructor Details
-
HydrogenLib
public HydrogenLib()
-
-
Method Details
-
hydro_secretbox_probe_create
public static int hydro_secretbox_probe_create(byte[] probe, byte[] c, byte[] ctx, byte[] key) -
hydro_secretbox_probe_verify
public static int hydro_secretbox_probe_verify(byte[] probe, byte[] c, byte[] ctx, byte[] key) -
hydro_hash_keygen
public static void hydro_hash_keygen(byte[] key) -
hydro_hash_init
-
hydro_hash_update
-
hydro_hash_final
-
hydro_hash_hash
public static int hydro_hash_hash(byte[] out, byte[] in_, byte[] ctx, byte[] key) -
hydro_kx_keygen
-
hydro_kx_keygen_deterministic
-
hydro_kx_n_1
public static int hydro_kx_n_1(HydrogenLib.hydro_kx_session_keypair keypair, byte[] packet1, byte[] psk, byte[] peer_static_pk) -
hydro_kx_kk_1
public static int hydro_kx_kk_1(HydrogenLib.hydro_kx_state state, byte[] packet1, byte[] peer_static_pk, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_n_2
public static int hydro_kx_n_2(HydrogenLib.hydro_kx_session_keypair kp, byte[] packet1, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_kk_2
public static int hydro_kx_kk_2(HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2, byte[] packet1, byte[] peer_static_pk, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_kk_3
public static int hydro_kx_kk_3(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_xx_1
-
hydro_kx_xx_2
public static int hydro_kx_xx_2(HydrogenLib.hydro_kx_state state, byte[] packet2, byte[] packet1, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_xx_3
public static int hydro_kx_xx_3(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] packet3, byte[] peer_static_pk, byte[] packet2, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_xx_4
public static int hydro_kx_xx_4(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] peer_static_pk, byte[] packet3, byte[] psk) -
hydro_kx_nk_1
public static int hydro_kx_nk_1(HydrogenLib.hydro_kx_state state, byte[] packet1, byte[] psk, byte[] peer_static_pk) -
hydro_kx_nk_2
public static int hydro_kx_nk_2(HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2, byte[] packet1, byte[] psk, HydrogenLib.hydro_kx_keypair static_kp) -
hydro_kx_nk_3
public static int hydro_kx_nk_3(HydrogenLib.hydro_kx_state state, HydrogenLib.hydro_kx_session_keypair kp, byte[] packet2) -
hydro_pwhash_keygen
public static void hydro_pwhash_keygen(byte[] master_key) -
hydro_pwhash_deterministic
public static int hydro_pwhash_deterministic(byte[] h, byte[] passwd, byte[] ctx, byte[] master_key, long opslimit, int memlimit, byte threads) -
hydro_pwhash_create
public static int hydro_pwhash_create(byte[] stored, byte[] passwd, byte[] master_key, long opslimit, int memlimit, byte threads) -
hydro_pwhash_verify
public static int hydro_pwhash_verify(byte[] stored, byte[] passwd, byte[] master_key, long opslimit_max, int memlimit_max, byte threads_max) -
hydro_pwhash_derive_static_key
public static int hydro_pwhash_derive_static_key(byte[] static_key, byte[] stored, byte[] passwd, byte[] ctx, byte[] master_key, long opslimit_max, int memlimit_max, byte threads_max) -
hydro_pwhash_reencrypt
public static int hydro_pwhash_reencrypt(byte[] stored, byte[] master_key, byte[] new_master_key) -
hydro_pwhash_upgrade
public static int hydro_pwhash_upgrade(byte[] stored, byte[] master_key, long opslimit, int memlimit, byte threads) -
hydro_secretbox_keygen
public static void hydro_secretbox_keygen(byte[] key) -
hydro_secretbox_encrypt
public static int hydro_secretbox_encrypt(byte[] c, byte[] m_, long msg_id, byte[] ctx, byte[] key) -
hydro_secretbox_decrypt
public static int hydro_secretbox_decrypt(byte[] m_, byte[] c, long msg_id, byte[] ctx, byte[] key) -
hydro_kdf_keygen
public static void hydro_kdf_keygen(byte[] key) -
hydro_kdf_derive_from_key
public static int hydro_kdf_derive_from_key(byte[] subkey, long subkey_id, byte[] ctx, byte[] key) -
hydro_sign_keygen
-
hydro_sign_keygen_deterministic
-
hydro_sign_init
-
hydro_sign_update
-
hydro_sign_final_create
public static int hydro_sign_final_create(HydrogenLib.hydro_sign_state state, byte[] csig, byte[] sk) -
hydro_sign_final_verify
public static int hydro_sign_final_verify(HydrogenLib.hydro_sign_state state, byte[] csig, byte[] pk) -
hydro_sign_create
public static int hydro_sign_create(byte[] csig, byte[] m_, byte[] ctx, byte[] sk) -
hydro_sign_verify
public static int hydro_sign_verify(byte[] csig, byte[] m_, byte[] ctx, byte[] pk)
-