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
SodiumLibraryException
public void testDeriveKeyVerify() throws SodiumLibraryException
SodiumLibraryException
public void testDeriveKeyScrypt() throws SodiumLibraryException
SodiumLibraryException
public void testKeyPair() throws SodiumLibraryException
SodiumLibraryException
public void testPublicKeyFromPrivateKey() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoSecretBoxEasy() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoSecretBoxEasyEcryptDecrypt() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoSecretBoxOpenEasy() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoSecretBoxDetached() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoSecretBoxDetached2() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoBoxEasy() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoBoxEasy2() throws SodiumLibraryException
SodiumLibraryException
public void testCryptoBoxSeal2() throws SodiumLibraryException
SodiumLibraryException
public void testCrytoBoxSeal() throws SodiumLibraryException
SodiumLibraryException
public void testEncryptDecryptOwnKeyPair() throws SodiumLibraryException
SodiumLibraryException
- public void testCryptoAuth() throws SodiumLibraryException
SodiumLibraryException
public void testPasswordHash() throws SodiumLibraryException
SodiumLibraryException
public void testEncryptPrivateKey() throws SodiumLibraryException
SodiumLibraryException
public void doneTesting()