Package org.bouncycastle.openpgp.test
Class Argon2S2KTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.openpgp.test.Argon2S2KTest
- All Implemented Interfaces:
org.bouncycastle.util.test.Test
public class Argon2S2KTest
extends org.bouncycastle.util.test.SimpleTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encryptMessageSymmetricallyWithArgon2
(String plaintext, String password) getName()
static void
void
void
void
void
void
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
-
Constructor Details
-
Argon2S2KTest
public Argon2S2KTest()
-
-
Method Details
-
main
-
getName
- Specified by:
getName
in interfaceorg.bouncycastle.util.test.Test
- Specified by:
getName
in classorg.bouncycastle.util.test.SimpleTest
-
performTest
- Specified by:
performTest
in classorg.bouncycastle.util.test.SimpleTest
- Throws:
Exception
-
encodingTest
- Throws:
IOException
-
testDecryptAES128Message
- Throws:
IOException
PGPException
-
testDecryptAES192Message
- Throws:
IOException
PGPException
-
testDecryptAES256Message
- Throws:
IOException
PGPException
-
testEncryptAndDecryptMessageWithArgon2
- Throws:
PGPException
IOException
-
encryptMessageSymmetricallyWithArgon2
public String encryptMessageSymmetricallyWithArgon2(String plaintext, String password) throws PGPException, IOException - Throws:
PGPException
IOException
-