Package org.bouncycastle.util.test

Examples of org.bouncycastle.util.test.TestResult


        return new SimpleTestResult(true, getName() + ": test " + id + " Okay");
    }
       
    public TestResult perform()
    {
        TestResult  result = testSig(1, pub1, prv1, slt1a, msg1a, sig1a);

        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(2, pub1, prv1, slt1b, msg1b, sig1b);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(3, pub2, prv2, slt2a, msg2a, sig2a);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(4, pub2, prv2, slt2b, msg2b, sig2b);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(5, pub4, prv4, slt4a, msg4a, sig4a);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(6, pub4, prv4, slt4b, msg4b, sig4b);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(7, pub8, prv8, slt8a, msg8a, sig8a);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(8, pub8, prv8, slt8b, msg8b, sig8b);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(9, pub9, prv9, slt9a, msg9a, sig9a);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = testSig(10, pub9, prv9, slt9b, msg9b, sig9b);
        if (!result.isSuccessful())
        {
            return result;
        }
       
        //
View Full Code Here


    public static void main(
        String[]    args)
    {
        Test        test = new PSSTest();
        TestResult  result = test.perform();

        System.out.println(result);
    }
View Full Code Here

    public static void main(
        String[]    args)
    {
        DESTest    test = new DESTest();
        TestResult result = test.perform();

        System.out.println(result);
    }
View Full Code Here

    public static void main(
        String[]    args)
    {
        for (int i = 0; i != tests.length; i++)
        {
            TestResult  result = tests[i].perform();
            System.out.println(result);
        }
    }
View Full Code Here

    public static void main(
        String[]    args)
    {
        MD5DigestTest   test = new MD5DigestTest();
        TestResult      result = test.perform();

        System.out.println(result);
    }
View Full Code Here

    public static void main(
        String[] args)
    {
        PKCS12Test    test = new PKCS12Test();
        TestResult      result = test.perform();

        System.out.println(result);
    }
View Full Code Here

        }
    }

    public TestResult perform()
    {
        TestResult  res = unsignedRequest();
       
        if (!res.isSuccessful())
        {
            return res;
        }
       
        res = signedRequest();
        if (!res.isSuccessful())
        {
            return res;
        }
       
        return response();
View Full Code Here

    public static void main(
        String[] args)
    {
        OCSPTest    test = new OCSPTest();
        TestResult      result = test.perform();

        System.out.println(result);
    }
View Full Code Here

        }
    }
   
    public TestResult perform()
    {
        TestResult  res = compressionTest();
       
        if (!res.isSuccessful())
        {
            return res;
        }
       
        res = envelopedTest();
        if (!res.isSuccessful())
        {
            return res;
        }
       
        return signedTest();
View Full Code Here

    public static void main(
        String[] args)
    {
        CMSTest    test = new CMSTest();
        TestResult result = test.perform();

        System.out.println(result);
    }
View Full Code Here

TOP

Related Classes of org.bouncycastle.util.test.TestResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.