public class TestSodiumLibrary
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
| Constructor and Description |
|---|
TestSodiumLibrary() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
binary2Hex(byte[] data) |
void |
doneTesting() |
byte[] |
hex2Binary(java.lang.String hex) |
void |
initSodium() |
void |
testCryptoAuth() |
void |
testCryptoBoxEasy() |
void |
testCryptoBoxEasy2() |
void |
testCryptoBoxSeal2() |
void |
testCryptoSecretBoxDetached() |
void |
testCryptoSecretBoxDetached2() |
void |
testCryptoSecretBoxEasy() |
void |
testCryptoSecretBoxEasyEcryptDecrypt() |
void |
testCryptoSecretBoxOpenEasy() |
void |
testCrytoBoxSeal() |
void |
testDeriveKeyArgon2() |
void |
testDeriveKeyScrypt() |
void |
testDeriveKeyVerify() |
void |
testEncryptDecryptOwnKeyPair()
Test encrypt with own public key and decrypt with own private key
|
void |
testEncryptPrivateKey() |
void |
testKeyPair() |
void |
testLibSodiumVersion() |
void |
testPasswordHash() |
void |
testPublicKeyFromPrivateKey() |
void |
testRandomBytes() |
public void initSodium()
public java.lang.String binary2Hex(byte[] data)
public byte[] hex2Binary(java.lang.String hex)
public void testLibSodiumVersion()
public void testRandomBytes()
public void testDeriveKeyArgon2()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testDeriveKeyVerify()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testDeriveKeyScrypt()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testKeyPair()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testPublicKeyFromPrivateKey()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoSecretBoxEasy()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoSecretBoxEasyEcryptDecrypt()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoSecretBoxOpenEasy()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoSecretBoxDetached()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoSecretBoxDetached2()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoBoxEasy()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoBoxEasy2()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCryptoBoxSeal2()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testCrytoBoxSeal()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testEncryptDecryptOwnKeyPair()
throws SodiumLibraryException
SodiumLibraryException - public void testCryptoAuth()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testPasswordHash()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void testEncryptPrivateKey()
throws SodiumLibraryException
SodiumLibraryExceptionpublic void doneTesting()