-
- All Implemented Interfaces:
-
com.goterl.lazysodium.interfaces.AEAD.Lazy,com.goterl.lazysodium.interfaces.AEAD.Native,com.goterl.lazysodium.interfaces.Auth.Lazy,com.goterl.lazysodium.interfaces.Auth.Native,com.goterl.lazysodium.interfaces.Base,com.goterl.lazysodium.interfaces.Box.Lazy,com.goterl.lazysodium.interfaces.Box.Native,com.goterl.lazysodium.interfaces.DiffieHellman.Lazy,com.goterl.lazysodium.interfaces.DiffieHellman.Native,com.goterl.lazysodium.interfaces.GenericHash.Lazy,com.goterl.lazysodium.interfaces.GenericHash.Native,com.goterl.lazysodium.interfaces.Hash.Lazy,com.goterl.lazysodium.interfaces.Hash.Native,com.goterl.lazysodium.interfaces.Helpers.Lazy,com.goterl.lazysodium.interfaces.Helpers.Native,com.goterl.lazysodium.interfaces.KeyDerivation.Lazy,com.goterl.lazysodium.interfaces.KeyDerivation.Native,com.goterl.lazysodium.interfaces.KeyExchange.Lazy,com.goterl.lazysodium.interfaces.KeyExchange.Native,com.goterl.lazysodium.interfaces.Padding.Lazy,com.goterl.lazysodium.interfaces.Padding.Native,com.goterl.lazysodium.interfaces.PwHash.Lazy,com.goterl.lazysodium.interfaces.PwHash.Native,com.goterl.lazysodium.interfaces.Random,com.goterl.lazysodium.interfaces.Ristretto255.Lazy,com.goterl.lazysodium.interfaces.Ristretto255.Native,com.goterl.lazysodium.interfaces.Scrypt.Lazy,com.goterl.lazysodium.interfaces.Scrypt.Native,com.goterl.lazysodium.interfaces.SecretBox.Lazy,com.goterl.lazysodium.interfaces.SecretBox.Native,com.goterl.lazysodium.interfaces.SecretStream.Lazy,com.goterl.lazysodium.interfaces.SecretStream.Native,com.goterl.lazysodium.interfaces.SecureMemory.Lazy,com.goterl.lazysodium.interfaces.SecureMemory.Native,com.goterl.lazysodium.interfaces.ShortHash.Lazy,com.goterl.lazysodium.interfaces.ShortHash.Native,com.goterl.lazysodium.interfaces.Sign.Lazy,com.goterl.lazysodium.interfaces.Sign.Native,com.goterl.lazysodium.interfaces.Stream.Lazy,com.goterl.lazysodium.interfaces.Stream.Native,com.goterl.lazysodium.interfaces.StreamJava.Lazy,com.goterl.lazysodium.interfaces.StreamJava.Native
public class LazySodiumJava extends LazySodium implements Scrypt.Native, Scrypt.Lazy, StreamJava.Native, StreamJava.Lazy
-
-
Field Summary
Fields Modifier and Type Field Description private final SodiumJavasodium
-
Constructor Summary
Constructors Constructor Description LazySodiumJava(SodiumJava sodium)LazySodiumJava(SodiumJava sodium, Charset charset)LazySodiumJava(SodiumJava sodium, MessageEncoder messageEncoder)LazySodiumJava(SodiumJava sodium, Charset charset, MessageEncoder messageEncoder)
-
Method Summary
Modifier and Type Method Description SodiumJavagetSodium()booleancryptoPwHashScryptSalsa208Sha256(Array<byte> out, int outLen, Array<byte> password, int passwordLen, Array<byte> salt, long opsLimit, long memLimit)booleancryptoPwHashScryptSalsa208Sha256Str(Array<byte> out, Array<byte> password, int passwordLen, long opsLimit, long memLimit)booleancryptoPwHashScryptSalsa208Sha256StrVerify(Array<byte> str, Array<byte> password, int passwordLen)booleancryptoPwHashScryptSalsa208Sha256Ll(Array<byte> password, int passwordLen, Array<byte> salt, int saltLen, long N, long r, long p, Array<byte> buf, int bufLen)booleancryptoPwHashScryptSalsa208Sha256StrNeedsRehash(Array<byte> hash, long opsLimit, long memLimit)Checks whether the Scrypt hash needs a rehash. StringcryptoPwHashScryptSalsa208Sha256(String password, int hashLen, Array<byte> salt, long opsLimit, long memLimit)Hash a password using a salt. StringcryptoPwHashScryptSalsa208Sha256Str(String password, long opsLimit, long memLimit)The most minimal way of hashing a given passwordusing Scrypt. booleancryptoPwHashScryptSalsa208Sha256StrVerify(String hash, String password)Verifies a string that was hashedusing Scrypt. voidcryptoStreamSalsa2012Keygen(Array<byte> key)booleancryptoStreamSalsa2012(Array<byte> c, int cLen, Array<byte> nonce, Array<byte> key)booleancryptoStreamSalsa2012Xor(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, Array<byte> key)voidcryptoStreamSalsa208Keygen(Array<byte> key)booleancryptoStreamSalsa208(Array<byte> c, int cLen, Array<byte> nonce, Array<byte> key)booleancryptoStreamSalsa208Xor(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, Array<byte> key)voidcryptoStreamXChaCha20Keygen(Array<byte> key)booleancryptoStreamXChaCha20(Array<byte> c, int cLen, Array<byte> nonce, Array<byte> key)booleancryptoStreamXChaCha20Xor(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, Array<byte> key)booleancryptoStreamXChaCha20Ic(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, long ic, Array<byte> key)KeycryptoStreamKeygen(StreamJava.Method method)Array<byte>cryptoStream(Array<byte> nonce, Key key, StreamJava.Method method)StringcryptoStreamXor(String message, Array<byte> nonce, Key key, StreamJava.Method method)StringcryptoStreamXorDecrypt(String cipher, Array<byte> nonce, Key key, StreamJava.Method method)StringcryptoStreamXorIc(String message, Array<byte> nonce, long ic, Key key, StreamJava.Method method)StringcryptoStreamXorIcDecrypt(String cipher, Array<byte> nonce, long ic, Key key, StreamJava.Method method)-
Methods inherited from class com.goterl.lazysodium.LazySodium
bytes, convertKeyPairEd25519ToCurve25519, convertPublicKeyEd25519ToCurve25519, convertSecretKeyEd25519ToCurve25519, cryptoAeadAES256GCMDecrypt, cryptoAeadAES256GCMDecrypt, cryptoAeadAES256GCMDecryptDetached, cryptoAeadAES256GCMDecryptDetached, cryptoAeadAES256GCMEncrypt, cryptoAeadAES256GCMEncrypt, cryptoAeadAES256GCMEncryptDetached, cryptoAeadAES256GCMEncryptDetached, cryptoAeadAES256GCMIsAvailable, cryptoAeadAES256GCMKeygen, cryptoAeadChaCha20Poly1305Decrypt, cryptoAeadChaCha20Poly1305Decrypt, cryptoAeadChaCha20Poly1305DecryptDetached, cryptoAeadChaCha20Poly1305DecryptDetached, cryptoAeadChaCha20Poly1305Encrypt, cryptoAeadChaCha20Poly1305Encrypt, cryptoAeadChaCha20Poly1305EncryptDetached, cryptoAeadChaCha20Poly1305EncryptDetached, cryptoAeadChaCha20Poly1305IetfDecrypt, cryptoAeadChaCha20Poly1305IetfDecrypt, cryptoAeadChaCha20Poly1305IetfDecryptDetached, cryptoAeadChaCha20Poly1305IetfDecryptDetached, cryptoAeadChaCha20Poly1305IetfEncrypt, cryptoAeadChaCha20Poly1305IetfEncrypt, cryptoAeadChaCha20Poly1305IetfEncryptDetached, cryptoAeadChaCha20Poly1305IetfEncryptDetached, cryptoAeadChaCha20Poly1305IetfKeygen, cryptoAeadChaCha20Poly1305Keygen, cryptoAeadXChaCha20Poly1305IetfDecrypt, cryptoAeadXChaCha20Poly1305IetfDecrypt, cryptoAeadXChaCha20Poly1305IetfDecryptDetached, cryptoAeadXChaCha20Poly1305IetfDecryptDetached, cryptoAeadXChaCha20Poly1305IetfEncrypt, cryptoAeadXChaCha20Poly1305IetfEncrypt, cryptoAeadXChaCha20Poly1305IetfEncryptDetached, cryptoAeadXChaCha20Poly1305IetfEncryptDetached, cryptoAeadXChaCha20Poly1305IetfKeygen, cryptoAuth, cryptoAuth, cryptoAuthHMACSha, cryptoAuthHMACSha256, cryptoAuthHMACSha256Final, cryptoAuthHMACSha256Init, cryptoAuthHMACSha256Keygen, cryptoAuthHMACSha256Update, cryptoAuthHMACSha256Verify, cryptoAuthHMACSha512, cryptoAuthHMACSha512256, cryptoAuthHMACSha512256Final, cryptoAuthHMACSha512256Init, cryptoAuthHMACSha512256Keygen, cryptoAuthHMACSha512256Update, cryptoAuthHMACSha512256Verify, cryptoAuthHMACSha512Final, cryptoAuthHMACSha512Init, cryptoAuthHMACSha512Keygen, cryptoAuthHMACSha512Update, cryptoAuthHMACSha512Verify, cryptoAuthHMACShaFinal, cryptoAuthHMACShaFinal, cryptoAuthHMACShaFinal, cryptoAuthHMACShaInit, cryptoAuthHMACShaInit, cryptoAuthHMACShaInit, cryptoAuthHMACShaKeygen, cryptoAuthHMACShaUpdate, cryptoAuthHMACShaUpdate, cryptoAuthHMACShaUpdate, cryptoAuthHMACShaVerify, cryptoAuthKeygen, cryptoAuthKeygen, cryptoAuthVerify, cryptoAuthVerify, cryptoBoxBeforeNm, cryptoBoxBeforeNm, cryptoBoxBeforeNm, cryptoBoxCurve25519XChaCha20Poly1305BeforeNm, cryptoBoxCurve25519XChaCha20Poly1305Detached, cryptoBoxCurve25519XChaCha20Poly1305DetachedAfterNm, cryptoBoxCurve25519XChaCha20Poly1305Easy, cryptoBoxCurve25519XChaCha20Poly1305EasyAfterNm, cryptoBoxCurve25519XChaCha20Poly1305Keypair, cryptoBoxCurve25519XChaCha20Poly1305OpenDetached, cryptoBoxCurve25519XChaCha20Poly1305OpenDetachedAfterNm, cryptoBoxCurve25519XChaCha20Poly1305OpenEasy, cryptoBoxCurve25519XChaCha20Poly1305OpenEasyAfterNm, cryptoBoxCurve25519XChaCha20Poly1305Seal, cryptoBoxCurve25519XChaCha20Poly1305SealOpen, cryptoBoxCurve25519XChaCha20Poly1305SeedKeypair, cryptoBoxDetached, cryptoBoxDetachedAfterNm, cryptoBoxDetachedAfterNm, cryptoBoxEasy, cryptoBoxEasy, cryptoBoxEasyAfterNm, cryptoBoxEasyAfterNm, cryptoBoxKeypair, cryptoBoxKeypair, cryptoBoxOpenDetached, cryptoBoxOpenDetachedAfterNm, cryptoBoxOpenDetachedAfterNm, cryptoBoxOpenEasy, cryptoBoxOpenEasy, cryptoBoxOpenEasyAfterNm, cryptoBoxOpenEasyAfterNm, cryptoBoxSeal, cryptoBoxSealEasy, cryptoBoxSealOpen, cryptoBoxSealOpenEasy, cryptoBoxSeedKeypair, cryptoBoxSeedKeypair, cryptoCoreRistretto255Add, cryptoCoreRistretto255Add, cryptoCoreRistretto255FromHash, cryptoCoreRistretto255FromHash, cryptoCoreRistretto255FromHash, cryptoCoreRistretto255IsValidPoint, cryptoCoreRistretto255IsValidPoint, cryptoCoreRistretto255Random, cryptoCoreRistretto255Random, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarAdd, cryptoCoreRistretto255ScalarComplement, cryptoCoreRistretto255ScalarComplement, cryptoCoreRistretto255ScalarComplement, cryptoCoreRistretto255ScalarComplement, cryptoCoreRistretto255ScalarInvert, cryptoCoreRistretto255ScalarInvert, cryptoCoreRistretto255ScalarInvert, cryptoCoreRistretto255ScalarInvert, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarMul, cryptoCoreRistretto255ScalarNegate, cryptoCoreRistretto255ScalarNegate, cryptoCoreRistretto255ScalarNegate, cryptoCoreRistretto255ScalarNegate, cryptoCoreRistretto255ScalarRandom, cryptoCoreRistretto255ScalarRandom, cryptoCoreRistretto255ScalarReduce, cryptoCoreRistretto255ScalarReduce, cryptoCoreRistretto255ScalarReduce, cryptoCoreRistretto255ScalarReduce, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255ScalarSub, cryptoCoreRistretto255Sub, cryptoCoreRistretto255Sub, cryptoGenericHash, cryptoGenericHash, cryptoGenericHash, cryptoGenericHash, cryptoGenericHashFinal, cryptoGenericHashFinal, cryptoGenericHashInit, cryptoGenericHashInit, cryptoGenericHashInit, cryptoGenericHashKeygen, cryptoGenericHashKeygen, cryptoGenericHashKeygen, cryptoGenericHashUpdate, cryptoGenericHashUpdate, cryptoHashSha256, cryptoHashSha256, cryptoHashSha256Final, cryptoHashSha256Final, cryptoHashSha256Init, cryptoHashSha256Update, cryptoHashSha256Update, cryptoHashSha512, cryptoHashSha512, cryptoHashSha512Final, cryptoHashSha512Final, cryptoHashSha512Init, cryptoHashSha512Update, cryptoHashSha512Update, cryptoKdfDeriveFromKey, cryptoKdfDeriveFromKey, cryptoKdfKeygen, cryptoKdfKeygen, cryptoKxClientSessionKeys, cryptoKxClientSessionKeys, cryptoKxClientSessionKeys, cryptoKxClientSessionKeys, cryptoKxKeypair, cryptoKxKeypair, cryptoKxKeypair, cryptoKxSeedKeypair, cryptoKxServerSessionKeys, cryptoKxServerSessionKeys, cryptoKxServerSessionKeys, cryptoKxServerSessionKeys, cryptoPwHash, cryptoPwHash, cryptoPwHashStr, cryptoPwHashStr, cryptoPwHashStrNeedsRehash, cryptoPwHashStrRemoveNulls, cryptoPwHashStrVerify, cryptoPwHashStrVerify, cryptoPwHashString, cryptoPwHashStringNeedsRehash, cryptoPwHashStringVerify, cryptoScalarMult, cryptoScalarMult, cryptoScalarMultBase, cryptoScalarMultBase, cryptoScalarmultRistretto255, cryptoScalarmultRistretto255, cryptoScalarmultRistretto255, cryptoScalarmultRistretto255, cryptoScalarmultRistretto255Base, cryptoScalarmultRistretto255Base, cryptoScalarmultRistretto255Base, cryptoScalarmultRistretto255Base, cryptoSecretBoxDetached, cryptoSecretBoxDetached, cryptoSecretBoxEasy, cryptoSecretBoxEasy, cryptoSecretBoxKeygen, cryptoSecretBoxKeygen, cryptoSecretBoxOpenDetached, cryptoSecretBoxOpenDetached, cryptoSecretBoxOpenEasy, cryptoSecretBoxOpenEasy, cryptoSecretBoxXChaCha20Poly1305Detached, cryptoSecretBoxXChaCha20Poly1305Easy, cryptoSecretBoxXChaCha20Poly1305Keygen, cryptoSecretBoxXChaCha20Poly1305OpenDetached, cryptoSecretBoxXChaCha20Poly1305OpenEasy, cryptoSecretStreamInitPull, cryptoSecretStreamInitPull, cryptoSecretStreamInitPush, cryptoSecretStreamInitPush, cryptoSecretStreamKeygen, cryptoSecretStreamKeygen, cryptoSecretStreamPull, cryptoSecretStreamPull, cryptoSecretStreamPull, cryptoSecretStreamPush, cryptoSecretStreamPush, cryptoSecretStreamPush, cryptoSecretStreamPush, cryptoSecretStreamRekey, cryptoShortHash, cryptoShortHash, cryptoShortHashHex, cryptoShortHashKeygen, cryptoShortHashKeygen, cryptoShortHashStr, cryptoSign, cryptoSign, cryptoSign, cryptoSignDetached, cryptoSignDetached, cryptoSignEd25519SkToPk, cryptoSignEd25519SkToSeed, cryptoSignEd25519SkToSeed, cryptoSignFinalCreate, cryptoSignFinalVerify, cryptoSignInit, cryptoSignKeypair, cryptoSignKeypair, cryptoSignOpen, cryptoSignOpen, cryptoSignSecretKeyPair, cryptoSignSeedKeypair, cryptoSignSeedKeypair, cryptoSignUpdate, cryptoSignVerifyDetached, cryptoSignVerifyDetached, cryptoStream, cryptoStream, cryptoStreamChaCha20, cryptoStreamChaCha20Ietf, cryptoStreamChaCha20IetfKeygen, cryptoStreamChaCha20IetfXor, cryptoStreamChaCha20IetfXorIc, cryptoStreamChaCha20Keygen, cryptoStreamChaCha20Xor, cryptoStreamChaCha20XorIc, cryptoStreamChacha20IetfXorIc, cryptoStreamChacha20XorIc, cryptoStreamKeygen, cryptoStreamSalsa20, cryptoStreamSalsa20Keygen, cryptoStreamSalsa20Xor, cryptoStreamSalsa20XorIc, cryptoStreamXSalsa20, cryptoStreamXSalsa20Keygen, cryptoStreamXSalsa20Xor, cryptoStreamXSalsa20XorIc, cryptoStreamXor, cryptoStreamXorDecrypt, cryptoStreamXorIc, cryptoStreamXorIcDecrypt, decodeFromString, decrypt, decrypt, decryptDetached, decryptDetached, encodeToString, encrypt, encrypt, encryptDetached, encryptDetached, getSodium, keygen, main, nonce, randomBytesBuf, randomBytesBuf, randomBytesDeterministic, randomBytesDeterministic, randomBytesRandom, randomBytesUniform, removeNulls, res, sodiumAllocArray, sodiumBin2Hex, sodiumFree, sodiumHex2Bin, sodiumInit, sodiumMLock, sodiumMProtectNoAccess, sodiumMProtectReadOnly, sodiumMProtectReadWrite, sodiumMUnlock, sodiumMalloc, sodiumMemZero, sodiumPad, sodiumUnpad, str, str, successful, toBin, toBinary, toHex, toHexStr, wrongLen, wrongLen, wrongLen -
Methods inherited from class com.goterl.lazysodium.interfaces.Base
wrongLen, wrongLen, wrongLen -
Methods inherited from class com.goterl.lazysodium.interfaces.AEAD.Native
cryptoAeadAES256GCMDecrypt, cryptoAeadAES256GCMDecrypt, cryptoAeadAES256GCMDecryptDetached, cryptoAeadAES256GCMDecryptDetached, cryptoAeadAES256GCMEncrypt, cryptoAeadAES256GCMEncrypt, cryptoAeadAES256GCMEncryptDetached, cryptoAeadAES256GCMEncryptDetached, cryptoAeadChaCha20Poly1305Decrypt, cryptoAeadChaCha20Poly1305Decrypt, cryptoAeadChaCha20Poly1305DecryptDetached, cryptoAeadChaCha20Poly1305DecryptDetached, cryptoAeadChaCha20Poly1305Encrypt, cryptoAeadChaCha20Poly1305Encrypt, cryptoAeadChaCha20Poly1305EncryptDetached, cryptoAeadChaCha20Poly1305EncryptDetached, cryptoAeadChaCha20Poly1305IetfDecrypt, cryptoAeadChaCha20Poly1305IetfDecrypt, cryptoAeadChaCha20Poly1305IetfDecryptDetached, cryptoAeadChaCha20Poly1305IetfDecryptDetached, cryptoAeadChaCha20Poly1305IetfEncrypt, cryptoAeadChaCha20Poly1305IetfEncrypt, cryptoAeadChaCha20Poly1305IetfEncryptDetached, cryptoAeadChaCha20Poly1305IetfEncryptDetached, cryptoAeadXChaCha20Poly1305IetfDecrypt, cryptoAeadXChaCha20Poly1305IetfDecrypt, cryptoAeadXChaCha20Poly1305IetfDecryptDetached, cryptoAeadXChaCha20Poly1305IetfDecryptDetached, cryptoAeadXChaCha20Poly1305IetfEncrypt, cryptoAeadXChaCha20Poly1305IetfEncrypt, cryptoAeadXChaCha20Poly1305IetfEncryptDetached, cryptoAeadXChaCha20Poly1305IetfEncryptDetached, cryptoAeadXChaCha20Poly1305IetfKeygen -
Methods inherited from class com.goterl.lazysodium.interfaces.AEAD.Lazy
decrypt, decrypt, decryptDetached, decryptDetached, encrypt, encrypt, encryptDetached, encryptDetached, keygen -
Methods inherited from class com.goterl.lazysodium.interfaces.GenericHash.Native
cryptoGenericHash, cryptoGenericHash, cryptoGenericHashInit, cryptoGenericHashUpdate -
Methods inherited from class com.goterl.lazysodium.interfaces.GenericHash.Lazy
cryptoGenericHashInit -
Methods inherited from class com.goterl.lazysodium.interfaces.ShortHash.Lazy
cryptoShortHash -
Methods inherited from class com.goterl.lazysodium.interfaces.Auth.Native
cryptoAuthHMACSha256, cryptoAuthHMACSha256Final, cryptoAuthHMACSha256Init, cryptoAuthHMACSha256Update, cryptoAuthHMACSha256Verify, cryptoAuthHMACSha512, cryptoAuthHMACSha512256, cryptoAuthHMACSha512256Final, cryptoAuthHMACSha512256Init, cryptoAuthHMACSha512256Update, cryptoAuthHMACSha512256Verify, cryptoAuthHMACSha512Final, cryptoAuthHMACSha512Init, cryptoAuthHMACSha512Update, cryptoAuthHMACSha512Verify -
Methods inherited from class com.goterl.lazysodium.interfaces.Auth.Lazy
cryptoAuthHMACSha, cryptoAuthHMACShaFinal, cryptoAuthHMACShaFinal, cryptoAuthHMACShaFinal, cryptoAuthHMACShaInit, cryptoAuthHMACShaInit, cryptoAuthHMACShaInit, cryptoAuthHMACShaKeygen, cryptoAuthHMACShaUpdate, cryptoAuthHMACShaUpdate, cryptoAuthHMACShaUpdate, cryptoAuthHMACShaVerify -
Methods inherited from class com.goterl.lazysodium.interfaces.SecretStream.Native
cryptoSecretStreamInitPull, cryptoSecretStreamInitPush, cryptoSecretStreamPull, cryptoSecretStreamPull, cryptoSecretStreamPush, cryptoSecretStreamPush, cryptoSecretStreamPush, cryptoSecretStreamRekey -
Methods inherited from class com.goterl.lazysodium.interfaces.SecretStream.Lazy
cryptoSecretStreamPull, cryptoSecretStreamPush -
Methods inherited from class com.goterl.lazysodium.interfaces.Stream.Native
cryptoStreamChaCha20, cryptoStreamChaCha20Ietf, cryptoStreamChaCha20IetfXor, cryptoStreamChaCha20IetfXorIc, cryptoStreamChaCha20Xor, cryptoStreamChaCha20XorIc, cryptoStreamChacha20IetfXorIc, cryptoStreamChacha20XorIc, cryptoStreamSalsa20, cryptoStreamSalsa20Xor, cryptoStreamSalsa20XorIc, cryptoStreamXSalsa20, cryptoStreamXSalsa20Xor, cryptoStreamXSalsa20XorIc -
Methods inherited from class com.goterl.lazysodium.interfaces.Stream.Lazy
cryptoStream, cryptoStream, cryptoStreamKeygen, cryptoStreamXor, cryptoStreamXorDecrypt, cryptoStreamXorIc, cryptoStreamXorIcDecrypt -
Methods inherited from class com.goterl.lazysodium.interfaces.Padding.Native
sodiumUnpad -
Methods inherited from class com.goterl.lazysodium.interfaces.PwHash.Native
cryptoPwHash, cryptoPwHashStr -
Methods inherited from class com.goterl.lazysodium.interfaces.PwHash.Lazy
cryptoPwHash, cryptoPwHashStr, cryptoPwHashStrRemoveNulls, cryptoPwHashString -
Methods inherited from class com.goterl.lazysodium.interfaces.Hash.Native
cryptoHashSha256Update, cryptoHashSha512Update -
Methods inherited from class com.goterl.lazysodium.interfaces.Sign.Native
cryptoSign, cryptoSignDetached, cryptoSignEd25519SkToPk, cryptoSignOpen -
Methods inherited from class com.goterl.lazysodium.interfaces.Box.Native
cryptoBoxCurve25519XChaCha20Poly1305Detached, cryptoBoxCurve25519XChaCha20Poly1305DetachedAfterNm, cryptoBoxCurve25519XChaCha20Poly1305Easy, cryptoBoxCurve25519XChaCha20Poly1305EasyAfterNm, cryptoBoxCurve25519XChaCha20Poly1305OpenDetached, cryptoBoxCurve25519XChaCha20Poly1305OpenDetachedAfterNm, cryptoBoxCurve25519XChaCha20Poly1305OpenEasy, cryptoBoxCurve25519XChaCha20Poly1305OpenEasyAfterNm, cryptoBoxCurve25519XChaCha20Poly1305SealOpen, cryptoBoxDetached, cryptoBoxDetachedAfterNm, cryptoBoxEasy, cryptoBoxEasyAfterNm, cryptoBoxOpenDetached, cryptoBoxOpenDetachedAfterNm, cryptoBoxOpenEasy, cryptoBoxOpenEasyAfterNm, cryptoBoxSealOpen -
Methods inherited from class com.goterl.lazysodium.interfaces.Box.Lazy
cryptoBoxEasyAfterNm, cryptoBoxOpenDetachedAfterNm, cryptoBoxOpenEasyAfterNm -
Methods inherited from class com.goterl.lazysodium.interfaces.SecretBox.Native
cryptoSecretBoxDetached, cryptoSecretBoxEasy, cryptoSecretBoxOpenDetached, cryptoSecretBoxOpenEasy, cryptoSecretBoxXChaCha20Poly1305Detached, cryptoSecretBoxXChaCha20Poly1305Easy, cryptoSecretBoxXChaCha20Poly1305OpenDetached, cryptoSecretBoxXChaCha20Poly1305OpenEasy -
Methods inherited from class com.goterl.lazysodium.interfaces.KeyExchange.Native
cryptoKxClientSessionKeys, cryptoKxServerSessionKeys -
Methods inherited from class com.goterl.lazysodium.interfaces.KeyExchange.Lazy
cryptoKxClientSessionKeys, cryptoKxClientSessionKeys, cryptoKxClientSessionKeys, cryptoKxServerSessionKeys, cryptoKxServerSessionKeys, cryptoKxServerSessionKeys -
Methods inherited from class com.goterl.lazysodium.interfaces.Scrypt.Native
cryptoPwHashScryptSalsa208Sha256, cryptoPwHashScryptSalsa208Sha256Ll, cryptoPwHashScryptSalsa208Sha256Str, cryptoPwHashScryptSalsa208Sha256StrVerify -
Methods inherited from class com.goterl.lazysodium.interfaces.Scrypt.Lazy
cryptoPwHashScryptSalsa208Sha256, cryptoPwHashScryptSalsa208Sha256Str -
Methods inherited from class com.goterl.lazysodium.interfaces.StreamJava.Native
cryptoStreamSalsa2012, cryptoStreamSalsa2012Xor, cryptoStreamSalsa208, cryptoStreamSalsa208Xor, cryptoStreamXChaCha20, cryptoStreamXChaCha20Ic, cryptoStreamXChaCha20Xor -
Methods inherited from class com.goterl.lazysodium.interfaces.StreamJava.Lazy
cryptoStream, cryptoStreamXor, cryptoStreamXorDecrypt, cryptoStreamXorIc, cryptoStreamXorIcDecrypt -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LazySodiumJava
LazySodiumJava(SodiumJava sodium)
-
LazySodiumJava
LazySodiumJava(SodiumJava sodium, Charset charset)
-
LazySodiumJava
LazySodiumJava(SodiumJava sodium, MessageEncoder messageEncoder)
-
LazySodiumJava
LazySodiumJava(SodiumJava sodium, Charset charset, MessageEncoder messageEncoder)
-
-
Method Detail
-
getSodium
SodiumJava getSodium()
-
cryptoPwHashScryptSalsa208Sha256
boolean cryptoPwHashScryptSalsa208Sha256(Array<byte> out, int outLen, Array<byte> password, int passwordLen, Array<byte> salt, long opsLimit, long memLimit)
-
cryptoPwHashScryptSalsa208Sha256Str
boolean cryptoPwHashScryptSalsa208Sha256Str(Array<byte> out, Array<byte> password, int passwordLen, long opsLimit, long memLimit)
-
cryptoPwHashScryptSalsa208Sha256StrVerify
boolean cryptoPwHashScryptSalsa208Sha256StrVerify(Array<byte> str, Array<byte> password, int passwordLen)
-
cryptoPwHashScryptSalsa208Sha256Ll
boolean cryptoPwHashScryptSalsa208Sha256Ll(Array<byte> password, int passwordLen, Array<byte> salt, int saltLen, long N, long r, long p, Array<byte> buf, int bufLen)
-
cryptoPwHashScryptSalsa208Sha256StrNeedsRehash
boolean cryptoPwHashScryptSalsa208Sha256StrNeedsRehash(Array<byte> hash, long opsLimit, long memLimit)
Checks whether the Scrypt hash needs a rehash.
- Parameters:
hash- The Scrypt hash.opsLimit- The operations limit used.memLimit- The memory limit used.
-
cryptoPwHashScryptSalsa208Sha256
String cryptoPwHashScryptSalsa208Sha256(String password, int hashLen, Array<byte> salt, long opsLimit, long memLimit)
Hash a password using a salt.
- Parameters:
password- The password string to hash.hashLen- The length of the resulting hash.salt- The salt to use.opsLimit- The number of cycles to perform whilst hashing.memLimit- The amount of memory to use.
-
cryptoPwHashScryptSalsa208Sha256Str
String cryptoPwHashScryptSalsa208Sha256Str(String password, long opsLimit, long memLimit)
The most minimal way of hashing a given passwordusing Scrypt.
- Parameters:
password- The password string to hash.opsLimit- The number of cycles to perform whilst hashing.memLimit- The amount of memory to use.
-
cryptoPwHashScryptSalsa208Sha256StrVerify
boolean cryptoPwHashScryptSalsa208Sha256StrVerify(String hash, String password)
Verifies a string that was hashedusing Scrypt. This automatically addsa null byte at the end if there isn't one already.
- Parameters:
hash- The hash with or without a null terminating byte.password- The password
-
cryptoStreamSalsa2012Keygen
void cryptoStreamSalsa2012Keygen(Array<byte> key)
-
cryptoStreamSalsa2012
boolean cryptoStreamSalsa2012(Array<byte> c, int cLen, Array<byte> nonce, Array<byte> key)
-
cryptoStreamSalsa2012Xor
boolean cryptoStreamSalsa2012Xor(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, Array<byte> key)
-
cryptoStreamSalsa208Keygen
void cryptoStreamSalsa208Keygen(Array<byte> key)
-
cryptoStreamSalsa208
boolean cryptoStreamSalsa208(Array<byte> c, int cLen, Array<byte> nonce, Array<byte> key)
-
cryptoStreamSalsa208Xor
boolean cryptoStreamSalsa208Xor(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, Array<byte> key)
-
cryptoStreamXChaCha20Keygen
void cryptoStreamXChaCha20Keygen(Array<byte> key)
-
cryptoStreamXChaCha20
boolean cryptoStreamXChaCha20(Array<byte> c, int cLen, Array<byte> nonce, Array<byte> key)
-
cryptoStreamXChaCha20Xor
boolean cryptoStreamXChaCha20Xor(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, Array<byte> key)
-
cryptoStreamXChaCha20Ic
boolean cryptoStreamXChaCha20Ic(Array<byte> cipher, Array<byte> message, int messageLen, Array<byte> nonce, long ic, Array<byte> key)
-
cryptoStreamKeygen
Key cryptoStreamKeygen(StreamJava.Method method)
-
cryptoStream
Array<byte> cryptoStream(Array<byte> nonce, Key key, StreamJava.Method method)
-
cryptoStreamXor
String cryptoStreamXor(String message, Array<byte> nonce, Key key, StreamJava.Method method)
-
cryptoStreamXorDecrypt
String cryptoStreamXorDecrypt(String cipher, Array<byte> nonce, Key key, StreamJava.Method method)
-
cryptoStreamXorIc
String cryptoStreamXorIc(String message, Array<byte> nonce, long ic, Key key, StreamJava.Method method)
-
cryptoStreamXorIcDecrypt
String cryptoStreamXorIcDecrypt(String cipher, Array<byte> nonce, long ic, Key key, StreamJava.Method method)
-
-
-
-