Class KeyBoxTest

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

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

      • KeyBoxTest

        public KeyBoxTest()
    • 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
      • testSuccessfulLoad

        public void testSuccessfulLoad()
                                throws java.lang.Exception
        Test loading a key store and extracting information.
        Throws:
        java.lang.Exception
      • testSanityElGamal

        public void testSanityElGamal()
                               throws java.lang.Exception
        Test load kb with El Gamal keys in it.
        Throws:
        java.lang.Exception
      • testInducedChecksumFailed

        public void testInducedChecksumFailed()
                                       throws java.lang.Exception
        Induce a checksum failure in the first key block.
        Throws:
        java.lang.Exception
      • testBrokenMagic

        public void testBrokenMagic()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNullSource

        public void testNullSource()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNoFirstBlob

        public void testNoFirstBlob()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDoubleFirstBlob

        public void testDoubleFirstBlob()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testKeyBoxWithMD5Sanity

        public void testKeyBoxWithMD5Sanity()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testKeyBoxWithBrokenMD5

        public void testKeyBoxWithBrokenMD5()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • performTest

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