Class SignatureTest


  • public class SignatureTest
    extends java.lang.Object
    • Constructor Detail

      • SignatureTest

        public SignatureTest()
    • Method Detail

      • testVerifySHA256withRSA_key_1024

        public void testVerifySHA256withRSA_key_1024()
                                              throws java.lang.Exception
        Test signature verification using SHA256withRSA algorithm with 1024-bit RSA key
        Throws:
        java.lang.Exception
      • testInvalidVerifySHA256withRSA_key_1024

        public void testInvalidVerifySHA256withRSA_key_1024()
                                                     throws java.lang.Exception
        Test invalid signature verification using SHA256withRSA algorithm with 1024-bit RSA key
        Throws:
        java.lang.Exception
      • testMalformedVerifySHA256withRSA_key_1024

        public void testMalformedVerifySHA256withRSA_key_1024()
                                                       throws java.lang.Exception
        Test malformed signature verification using SHA256withRSA algorithm with 1024-bit RSA key
        Throws:
        java.lang.Exception
      • testVerifySHA256withRSA_key_2048

        public void testVerifySHA256withRSA_key_2048()
                                              throws java.lang.Exception
        Test signature verification using SHA256withRSA algorithm with 2048-bit RSA key
        Throws:
        java.lang.Exception
      • testInvalidVerifySHA256withRSA_key_2048

        public void testInvalidVerifySHA256withRSA_key_2048()
                                                     throws java.lang.Exception
        Test invalid signature verification using SHA256withRSA algorithm with 2048-bit RSA key
        Throws:
        java.lang.Exception
      • testMalformedVerifySHA256withRSA_key_2048

        public void testMalformedVerifySHA256withRSA_key_2048()
                                                       throws java.lang.Exception
        Test signature verification using SHA256withRSA algorithm with 2048-bit RSA key
        Throws:
        java.lang.Exception
      • testVerifySHA256withECDSA_key_192

        public void testVerifySHA256withECDSA_key_192()
                                               throws java.lang.Exception
        Test signature verification using SHA256withECDSA algorithm with 192-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testInvalidVerifySHA256withECDSA_key_192

        public void testInvalidVerifySHA256withECDSA_key_192()
                                                      throws java.lang.Exception
        Test invalid signature verification using SHA256withECDSA algorithm with 192-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testMalformedVerifySHA256withECDSA_key_192

        public void testMalformedVerifySHA256withECDSA_key_192()
                                                        throws java.lang.Exception
        Test malformed signature verification using SHA256withRSA algorithm with 2048-bit RSA key
        Throws:
        java.lang.Exception
      • testVerifySHA256withECDSA_key_224

        public void testVerifySHA256withECDSA_key_224()
                                               throws java.lang.Exception
        Test signature verification using SHA256withECDSA algorithm with 224-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testInvalidVerifySHA256withECDSA_key_224

        public void testInvalidVerifySHA256withECDSA_key_224()
                                                      throws java.lang.Exception
        Test invalid signature verification using SHA256withECDSA algorithm with 224-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testMalformedVerifySHA256withECDSA_key_224

        public void testMalformedVerifySHA256withECDSA_key_224()
                                                        throws java.lang.Exception
        Test malformed signature verification using SHA256withECDSA algorithm with 224-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testVerifySHA256withECDSA_key_256

        public void testVerifySHA256withECDSA_key_256()
                                               throws java.lang.Exception
        Test signature verification using SHA256withECDSA algorithm with 256-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testInvalidVerifySHA256withECDSA_key_256

        public void testInvalidVerifySHA256withECDSA_key_256()
                                                      throws java.lang.Exception
        Test invalid signature verification using SHA256withECDSA algorithm with 256-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testMalformedVerifySHA256withECDSA_key_256

        public void testMalformedVerifySHA256withECDSA_key_256()
                                                        throws java.lang.Exception
        Test invalid signature verification using SHA256withECDSA algorithm with 256-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testSignSHA256withRSA_key_1024

        public void testSignSHA256withRSA_key_1024()
                                            throws java.lang.Exception
        Test signature creation using SHA256withRSA algorithm with 1024-bit RSA key
        Throws:
        java.lang.Exception
      • testSignSHA256withRSA_key_2048

        public void testSignSHA256withRSA_key_2048()
                                            throws java.lang.Exception
        Test signature creation using SHA256withRSA algorithm with 2048-bit RSA key
        Throws:
        java.lang.Exception
      • testSignSHA256withECDSA_key_192

        public void testSignSHA256withECDSA_key_192()
                                             throws java.lang.Exception
        Test signature creation using SHA256withECDSA algorithm with 192-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testSignSHA256withECDSA_key_224

        public void testSignSHA256withECDSA_key_224()
                                             throws java.lang.Exception
        Test signature creation using SHA256withECDSA algorithm with 224-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • testSignSHA256withECDSA_key_256

        public void testSignSHA256withECDSA_key_256()
                                             throws java.lang.Exception
        Test signature creation using SHA256withECDSA algorithm with 256-bit Elliptic Curve key
        Throws:
        java.lang.Exception
      • tearDown

        public void tearDown()