Class Argon2S2KTest

  • All Implemented Interfaces:
    org.bouncycastle.util.test.Test

    public class Argon2S2KTest
    extends org.bouncycastle.util.test.SimpleTest
    • Constructor Detail

      • Argon2S2KTest

        public Argon2S2KTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.bouncycastle.util.test.Test
        Specified by:
        getName in class org.bouncycastle.util.test.SimpleTest
      • performTest

        public void performTest()
                         throws java.lang.Exception
        Specified by:
        performTest in class org.bouncycastle.util.test.SimpleTest
        Throws:
        java.lang.Exception
      • encodingTest

        public void encodingTest()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • testDecryptAES128Message

        public void testDecryptAES128Message()
                                      throws java.io.IOException,
                                             PGPException
        Throws:
        java.io.IOException
        PGPException
      • testDecryptAES192Message

        public void testDecryptAES192Message()
                                      throws java.io.IOException,
                                             PGPException
        Throws:
        java.io.IOException
        PGPException
      • testDecryptAES256Message

        public void testDecryptAES256Message()
                                      throws java.io.IOException,
                                             PGPException
        Throws:
        java.io.IOException
        PGPException
      • testEncryptAndDecryptMessageWithArgon2

        public void testEncryptAndDecryptMessageWithArgon2()
                                                    throws PGPException,
                                                           java.io.IOException
        Throws:
        PGPException
        java.io.IOException
      • encryptMessageSymmetricallyWithArgon2

        public java.lang.String encryptMessageSymmetricallyWithArgon2​(java.lang.String plaintext,
                                                                      java.lang.String password)
                                                               throws PGPException,
                                                                      java.io.IOException
        Throws:
        PGPException
        java.io.IOException