Class NewSignedDataTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.bouncycastle.cms.test.NewSignedDataTest
All Implemented Interfaces:
junit.framework.Test

public class NewSignedDataTest extends junit.framework.TestCase
  • Field Details

    • xtraCounterSig

      public static byte[] xtraCounterSig
  • Constructor Details

    • NewSignedDataTest

      public NewSignedDataTest(String name)
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • suite

      public static junit.framework.Test suite() throws Exception
      Throws:
      Exception
    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class junit.framework.TestCase
      Throws:
      Exception
    • testDetachedVerification

      public void testDetachedVerification() throws Exception
      Throws:
      Exception
    • testEmptyContent

      public void testEmptyContent() throws Exception
      Throws:
      Exception
    • testSHA1AndMD5WithRSAEncapsulatedRepeated

      public void testSHA1AndMD5WithRSAEncapsulatedRepeated() throws Exception
      Throws:
      Exception
    • testSHA1WithRSANoAttributes

      public void testSHA1WithRSANoAttributes() throws Exception
      Throws:
      Exception
    • testSHA1WithRSANoAttributesSimple

      public void testSHA1WithRSANoAttributesSimple() throws Exception
      Throws:
      Exception
    • testSHA1WithRSAAndOtherRevocation

      public void testSHA1WithRSAAndOtherRevocation() throws Exception
      Throws:
      Exception
    • testSHA1WithRSAAndAttributeTableSimple

      public void testSHA1WithRSAAndAttributeTableSimple() throws Exception
      Throws:
      Exception
    • testCMSAlgorithmProtection

      public void testCMSAlgorithmProtection() throws Exception
      Throws:
      Exception
    • testSHA1WithRSAAndAttributeTable

      public void testSHA1WithRSAAndAttributeTable() throws Exception
      Throws:
      Exception
    • testRemoveAttribute

      public void testRemoveAttribute() throws Exception
      Throws:
      Exception
    • testSignerInformationExtension

      public void testSignerInformationExtension() throws Exception
      Throws:
      Exception
    • testRawSHA256MissingNull

      public void testRawSHA256MissingNull() throws Exception
      Throws:
      Exception
    • testLwSHA1WithRSAAndAttributeTable

      public void testLwSHA1WithRSAAndAttributeTable() throws Exception
      Throws:
      Exception
    • testLwSHA3_256WithRSAAndAttributeTable

      public void testLwSHA3_256WithRSAAndAttributeTable() throws Exception
      Throws:
      Exception
    • testSHA1WithRSAEncapsulated

      public void testSHA1WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA1WithRSAEncapsulatedSubjectKeyID

      public void testSHA1WithRSAEncapsulatedSubjectKeyID() throws Exception
      Throws:
      Exception
    • testSHA1WithRSAPSS

      public void testSHA1WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA224WithRSAPSS

      public void testSHA224WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA256WithRSAPSS

      public void testSHA256WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA384WithRSAPSS

      public void testSHA384WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA3_224WithRSAPSS

      public void testSHA3_224WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA3_256WithRSAPSS

      public void testSHA3_256WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA3_384WithRSAPSS

      public void testSHA3_384WithRSAPSS() throws Exception
      Throws:
      Exception
    • testSHA1WithRSADigest

      public void testSHA1WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA224WithRSADigest

      public void testSHA224WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA256WithRSADigest

      public void testSHA256WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA384WithRSADigest

      public void testSHA384WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA512WithRSADigest

      public void testSHA512WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA3_224WithRSADigest

      public void testSHA3_224WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA3_256WithRSADigest

      public void testSHA3_256WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA3_384WithRSADigest

      public void testSHA3_384WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA3_512WithRSADigest

      public void testSHA3_512WithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA512_224ithRSADigest

      public void testSHA512_224ithRSADigest() throws Exception
      Throws:
      Exception
    • testSHA512_256ithRSADigest

      public void testSHA512_256ithRSADigest() throws Exception
      Throws:
      Exception
    • testEd25519

      public void testEd25519() throws Exception
      Throws:
      Exception
    • testEd448

      public void testEd448() throws Exception
      Throws:
      Exception
    • testDetachedEd25519

      public void testDetachedEd25519() throws Exception
      Throws:
      Exception
    • testEdDetached448

      public void testEdDetached448() throws Exception
      Throws:
      Exception
    • testEd25519WithNoAttr

      public void testEd25519WithNoAttr() throws Exception
      Throws:
      Exception
    • testEd448WithNoAttr

      public void testEd448WithNoAttr() throws Exception
      Throws:
      Exception
    • testSHA3_224WithDSAEncapsulated

      public void testSHA3_224WithDSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_256WithDSAEncapsulated

      public void testSHA3_256WithDSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_384WithDSAEncapsulated

      public void testSHA3_384WithDSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_512WithDSAEncapsulated

      public void testSHA3_512WithDSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA224WithRSAEncapsulated

      public void testSHA224WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA256WithRSAEncapsulated

      public void testSHA256WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_224WithRSAEncapsulated

      public void testSHA3_224WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_256WithRSAEncapsulated

      public void testSHA3_256WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_384WithRSAEncapsulated

      public void testSHA3_384WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA3_512WithRSAEncapsulated

      public void testSHA3_512WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testRIPEMD128WithRSAEncapsulated

      public void testRIPEMD128WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testRIPEMD160WithRSAEncapsulated

      public void testRIPEMD160WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testRIPEMD256WithRSAEncapsulated

      public void testRIPEMD256WithRSAEncapsulated() throws Exception
      Throws:
      Exception
    • testECDSAEncapsulated

      public void testECDSAEncapsulated() throws Exception
      Throws:
      Exception
    • testECDSAEncapsulatedSubjectKeyID

      public void testECDSAEncapsulatedSubjectKeyID() throws Exception
      Throws:
      Exception
    • testECDSASHA224Encapsulated

      public void testECDSASHA224Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA256Encapsulated

      public void testECDSASHA256Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA384Encapsulated

      public void testECDSASHA384Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA512Encapsulated

      public void testECDSASHA512Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA3_224Encapsulated

      public void testECDSASHA3_224Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA3_256Encapsulated

      public void testECDSASHA3_256Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA3_384Encapsulated

      public void testECDSASHA3_384Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA3_512Encapsulated

      public void testECDSASHA3_512Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA224Encapsulated

      public void testPLAIN_ECDSASHA224Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA256Encapsulated

      public void testPLAIN_ECDSASHA256Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA384Encapsulated

      public void testPLAIN_ECDSASHA384Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA512Encapsulated

      public void testPLAIN_ECDSASHA512Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA3_224Encapsulated

      public void testPLAIN_ECDSASHA3_224Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA3_256Encapsulated

      public void testPLAIN_ECDSASHA3_256Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA3_384Encapsulated

      public void testPLAIN_ECDSASHA3_384Encapsulated() throws Exception
      Throws:
      Exception
    • testPLAIN_ECDSASHA3_512Encapsulated

      public void testPLAIN_ECDSASHA3_512Encapsulated() throws Exception
      Throws:
      Exception
    • testECDSASHA512EncapsulatedWithKeyFactoryAsEC

      public void testECDSASHA512EncapsulatedWithKeyFactoryAsEC() throws Exception
      Throws:
      Exception
    • testDSAEncapsulated

      public void testDSAEncapsulated() throws Exception
      Throws:
      Exception
    • testDSAEncapsulatedSubjectKeyID

      public void testDSAEncapsulatedSubjectKeyID() throws Exception
      Throws:
      Exception
    • testGOST3411WithGOST3410Encapsulated

      public void testGOST3411WithGOST3410Encapsulated() throws Exception
      Throws:
      Exception
    • testGOST3411WithECGOST3410Encapsulated

      public void testGOST3411WithECGOST3410Encapsulated() throws Exception
      Throws:
      Exception
    • testGostNoAttributesEncapsulated

      public void testGostNoAttributesEncapsulated() throws Exception
      Throws:
      Exception
    • testSHA1WithRSACounterSignature

      public void testSHA1WithRSACounterSignature() throws Exception
      Throws:
      Exception
    • testSHA1WithRSACounterSignatureAndVerifierProvider

      public void testSHA1WithRSACounterSignatureAndVerifierProvider() throws Exception
      Throws:
      Exception
    • testAddDigestAlgorithm

      public void testAddDigestAlgorithm() throws Exception
      Throws:
      Exception
    • testUnsortedAttributes

      public void testUnsortedAttributes() throws Exception
      Throws:
      Exception
    • testNullContentWithSigner

      public void testNullContentWithSigner() throws Exception
      Throws:
      Exception
    • testWithAttributeCertificate

      public void testWithAttributeCertificate() throws Exception
      Throws:
      Exception
    • testCertStoreReplacement

      public void testCertStoreReplacement() throws Exception
      Throws:
      Exception
    • testEncapsulatedCertStoreReplacement

      public void testEncapsulatedCertStoreReplacement() throws Exception
      Throws:
      Exception
    • testCertOrdering1

      public void testCertOrdering1() throws Exception
      Throws:
      Exception
    • testCertOrdering2

      public void testCertOrdering2() throws Exception
      Throws:
      Exception
    • testSignerStoreReplacement

      public void testSignerStoreReplacement() throws Exception
      Throws:
      Exception
    • testEncapsulatedSamples

      public void testEncapsulatedSamples() throws Exception
      Throws:
      Exception
    • testSamples

      public void testSamples() throws Exception
      Throws:
      Exception
    • testNoAttrEncapsulatedSample

      public void testNoAttrEncapsulatedSample() throws Exception
      Throws:
      Exception
    • testCounterSig

      public void testCounterSig() throws Exception
      Throws:
      Exception
    • testCertificateManagement

      public void testCertificateManagement() throws Exception
      Throws:
      Exception
    • testMixed

      public void testMixed() throws Exception
      Throws:
      Exception
    • testMSPKCS7

      public void testMSPKCS7() throws Exception
      Throws:
      Exception
    • testForMultipleCounterSignatures

      public void testForMultipleCounterSignatures() throws Exception
      Throws:
      Exception