tuweni / org.apache.tuweni.crypto.sodium

Package org.apache.tuweni.crypto.sodium

Types

AES256GCM

Authenticated Encryption with Additional Data using AES-GCM.

class AES256GCM : AutoCloseable

Allocated

Allocated objects track allocation of memory using Sodium.

class Allocated : Destroyable

Auth

Secret-key authentication.

class Auth

Box

Public-key authenticated encryption.

class Box : AutoCloseable

Concatenate

Concatenate elements allocated to Sodium memory.

class Concatenate

DetachedEncryptionResult

The result from a detached encryption.

interface DetachedEncryptionResult

DiffieHelman

Sodium provides an API to perform scalar multiplication of elliptic curve points.

class DiffieHelman

GenericHash

Generic hashing utility (BLAKE2b).

class GenericHash

HMACSHA256

Message authentication code support for HMAC-SHA-256.

class HMACSHA256

HMACSHA512

Message authentication code support for HMAC-SHA-512.

class HMACSHA512

HMACSHA512256

Message authentication code support for HMAC-SHA-512-256.

class HMACSHA512256

KeyDerivation

Key derivation.

class KeyDerivation

KeyExchange

Key exchange.

class KeyExchange

LibSodium

interface LibSodium

PasswordHash

The Argon2 memory-hard hashing function.

class PasswordHash

SecretBox

Secret-key authenticated encryption.

class SecretBox

SecretDecryptionStream

Used to decrypt a sequence of messages, or a single message split into arbitrary chunks.

interface SecretDecryptionStream : Destroyable

SecretEncryptionStream

Used to encrypt a sequence of messages, or a single message split into arbitrary chunks.

interface SecretEncryptionStream : Destroyable

SHA256Hash

SHA-256 hashing. The SHA-256 and SHA-512 functions are provided for interoperability with other applications. If you are looking for a generic hash function and not specifically SHA-2, using crypto_generichash() (BLAKE2b) might be a better choice.

open class SHA256Hash

SHA512Hash

SHA-512 hashing. The SHA-256 and SHA-512 functions are provided for interoperability with other applications. If you are looking for a generic hash function and not specifically SHA-2, using crypto_generichash() (BLAKE2b) might be a better choice.

open class SHA512Hash

Signature

Public-key signatures.

class Signature

Sodium

Access to the sodium native library.

class Sodium

SodiumVersion

Details of a sodium native library version.

class SodiumVersion : Comparable<SodiumVersion!>

XChaCha20Poly1305

Authenticated Encryption with Additional Data using XChaCha20-Poly1305.

class XChaCha20Poly1305

Exceptions

SodiumException

An exception that is thrown when an error occurs using the native sodium library.

class SodiumException : RuntimeException