summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/UnitTests.csproj1305
-rw-r--r--crypto/test/crypto.test.csproj27
-rw-r--r--crypto/test/lib/nunit.core.dllbin139264 -> 0 bytes
-rw-r--r--crypto/test/lib/nunit.core.interfaces.dllbin61440 -> 0 bytes
-rw-r--r--crypto/test/lib/nunit.framework.dllbin139264 -> 0 bytes
-rw-r--r--crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs5
-rw-r--r--crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/AdmissionsUnitTest.cs5
-rw-r--r--crypto/test/src/asn1/test/AllTests.cs2
-rw-r--r--crypto/test/src/asn1/test/AttributeTableUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/BiometricDataUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/BitStringTest.cs4
-rw-r--r--crypto/test/src/asn1/test/CMSTest.cs4
-rw-r--r--crypto/test/src/asn1/test/CertHashUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/CertificateTest.cs4
-rw-r--r--crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/ContentHintsUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/CscaMasterListTest.cs4
-rw-r--r--crypto/test/src/asn1/test/DERApplicationSpecificTest.cs4
-rw-r--r--crypto/test/src/asn1/test/DERUTF8StringTest.cs4
-rw-r--r--crypto/test/src/asn1/test/DataGroupHashUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs4
-rw-r--r--crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs6
-rw-r--r--crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs5
-rw-r--r--crypto/test/src/asn1/test/GeneralNameTest.cs5
-rw-r--r--crypto/test/src/asn1/test/GeneralizedTimeTest.cs7
-rw-r--r--crypto/test/src/asn1/test/GenerationTest.cs5
-rw-r--r--crypto/test/src/asn1/test/InputStreamTest.cs5
-rw-r--r--crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs4
-rw-r--r--crypto/test/src/asn1/test/IssuingDistributionPointTest.cs6
-rw-r--r--crypto/test/src/asn1/test/KeyUsageTest.cs6
-rw-r--r--crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs6
-rw-r--r--crypto/test/src/asn1/test/MiscTest.cs5
-rw-r--r--crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs6
-rw-r--r--crypto/test/src/asn1/test/MonetaryValueUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/NetscapeCertTypeTest.cs2
-rw-r--r--crypto/test/src/asn1/test/OCSPTest.cs2
-rw-r--r--crypto/test/src/asn1/test/OIDTest.cs6
-rw-r--r--crypto/test/src/asn1/test/OtherCertIDUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/PKCS10Test.cs2
-rw-r--r--crypto/test/src/asn1/test/PKCS12Test.cs2
-rw-r--r--crypto/test/src/asn1/test/PKIFailureInfoTest.cs2
-rw-r--r--crypto/test/src/asn1/test/ParsingTest.cs2
-rw-r--r--crypto/test/src/asn1/test/PersonalDataUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/QCStatementUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/ReasonFlagsTest.cs2
-rw-r--r--crypto/test/src/asn1/test/RegressionTest.cs2
-rw-r--r--crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/RestrictionUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/SMIMETest.cs2
-rw-r--r--crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/SetTest.cs2
-rw-r--r--crypto/test/src/asn1/test/SignerLocationUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/StringTest.cs2
-rw-r--r--crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs2
-rw-r--r--crypto/test/src/asn1/test/TagTest.cs2
-rw-r--r--crypto/test/src/asn1/test/TargetInformationTest.cs2
-rw-r--r--crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs2
-rw-r--r--crypto/test/src/asn1/test/UTCTimeTest.cs2
-rw-r--r--crypto/test/src/asn1/test/X509ExtensionsTest.cs2
-rw-r--r--crypto/test/src/asn1/test/X509NameTest.cs2
-rw-r--r--crypto/test/src/asn1/test/X9Test.cs2
-rw-r--r--crypto/test/src/cms/test/AllTests.cs2
-rw-r--r--crypto/test/src/cms/test/AuthenticatedDataTest.cs2
-rw-r--r--crypto/test/src/cms/test/CMSTestUtil.cs4
-rw-r--r--crypto/test/src/cms/test/EnvelopedDataStreamTest.cs6
-rw-r--r--crypto/test/src/cms/test/EnvelopedDataTest.cs3
-rw-r--r--crypto/test/src/crypto/agreement/test/AllTests.cs2
-rw-r--r--crypto/test/src/crypto/agreement/test/JPakeParticipantTest.cs2
-rw-r--r--crypto/test/src/crypto/agreement/test/JPakePrimeOrderGroupTest.cs2
-rw-r--r--crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs2
-rw-r--r--crypto/test/src/crypto/io/test/AllTests.cs2
-rw-r--r--crypto/test/src/crypto/prng/test/CtrDrbgTest.cs2
-rw-r--r--crypto/test/src/crypto/prng/test/HMacDrbgTest.cs2
-rw-r--r--crypto/test/src/crypto/prng/test/HashDrbgTest.cs2
-rw-r--r--crypto/test/src/crypto/prng/test/X931Test.cs2
-rw-r--r--crypto/test/src/crypto/test/AESFastTest.cs2
-rw-r--r--crypto/test/src/crypto/test/AESLightTest.cs2
-rw-r--r--crypto/test/src/crypto/test/AESTest.cs2
-rw-r--r--crypto/test/src/crypto/test/AESWrapTest.cs2
-rw-r--r--crypto/test/src/crypto/test/AllTests.cs4
-rw-r--r--crypto/test/src/crypto/test/BCryptTest.cs2
-rw-r--r--crypto/test/src/crypto/test/BlowfishTest.cs2
-rw-r--r--crypto/test/src/crypto/test/CAST6Test.cs2
-rw-r--r--crypto/test/src/crypto/test/CCMTest.cs2
-rw-r--r--crypto/test/src/crypto/test/CMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/CTSTest.cs2
-rw-r--r--crypto/test/src/crypto/test/CamelliaLightTest.cs2
-rw-r--r--crypto/test/src/crypto/test/CamelliaTest.cs2
-rw-r--r--crypto/test/src/crypto/test/Cast5Test.cs2
-rw-r--r--crypto/test/src/crypto/test/ChaChaTest.cs2
-rw-r--r--crypto/test/src/crypto/test/DESTest.cs2
-rw-r--r--crypto/test/src/crypto/test/DESedeTest.cs2
-rw-r--r--crypto/test/src/crypto/test/DHKEKGeneratorTest.cs2
-rw-r--r--crypto/test/src/crypto/test/DHTest.cs2
-rw-r--r--crypto/test/src/crypto/test/DSATest.cs2
-rw-r--r--crypto/test/src/crypto/test/DSTU7564Test.cs2
-rw-r--r--crypto/test/src/crypto/test/DSTU7624Test.cs2
-rw-r--r--crypto/test/src/crypto/test/DeterministicDSATest.cs2
-rw-r--r--crypto/test/src/crypto/test/DigestRandomNumberTest.cs2
-rw-r--r--crypto/test/src/crypto/test/EAXTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ECDHKEKGeneratorTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ECGOST3410Test.cs2
-rw-r--r--crypto/test/src/crypto/test/ECIESTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ECNRTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ECTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ElGamalTest.cs2
-rw-r--r--crypto/test/src/crypto/test/EqualsHashCodeTest.cs2
-rw-r--r--crypto/test/src/crypto/test/GCMTest.cs2
-rw-r--r--crypto/test/src/crypto/test/GMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/GOST28147MacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/GOST28147Test.cs2
-rw-r--r--crypto/test/src/crypto/test/GOST3410Test.cs2
-rw-r--r--crypto/test/src/crypto/test/GOST3411DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/HCFamilyTest.cs2
-rw-r--r--crypto/test/src/crypto/test/HCFamilyVecTest.cs2
-rw-r--r--crypto/test/src/crypto/test/HKDFGeneratorTest.cs2
-rw-r--r--crypto/test/src/crypto/test/IDEATest.cs2
-rw-r--r--crypto/test/src/crypto/test/ISAACTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ISO9796Test.cs2
-rw-r--r--crypto/test/src/crypto/test/ISO9797Alg3MacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/KDF1GeneratorTest.cs2
-rw-r--r--crypto/test/src/crypto/test/KDF2GeneratorTest.cs2
-rw-r--r--crypto/test/src/crypto/test/KeccakDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/MD2DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/MD4DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/MD5DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/MD5HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/MGF1GeneratorTest.cs2
-rw-r--r--crypto/test/src/crypto/test/MacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ModeTest.cs2
-rw-r--r--crypto/test/src/crypto/test/NaccacheSternTest.cs2
-rw-r--r--crypto/test/src/crypto/test/NoekeonTest.cs2
-rw-r--r--crypto/test/src/crypto/test/NonMemoableDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/NullTest.cs2
-rw-r--r--crypto/test/src/crypto/test/OAEPTest.cs2
-rw-r--r--crypto/test/src/crypto/test/OCBTest.cs2
-rw-r--r--crypto/test/src/crypto/test/OpenBsdBCryptTest.cs2
-rw-r--r--crypto/test/src/crypto/test/PSSBlindTest.cs2
-rw-r--r--crypto/test/src/crypto/test/PSSTest.cs2
-rw-r--r--crypto/test/src/crypto/test/PaddingTest.cs2
-rw-r--r--crypto/test/src/crypto/test/Pkcs12Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Pkcs5Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Poly1305Test.cs2
-rw-r--r--crypto/test/src/crypto/test/RC2Test.cs2
-rw-r--r--crypto/test/src/crypto/test/RC2WrapTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RC4Test.cs2
-rw-r--r--crypto/test/src/crypto/test/RC5Test.cs2
-rw-r--r--crypto/test/src/crypto/test/RC6Test.cs2
-rw-r--r--crypto/test/src/crypto/test/RFC3211WrapTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RSABlindedTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RegressionTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RijndaelTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD128DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD128HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD160DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD160HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD256DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD320DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RsaTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SCryptTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SEEDTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA1DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA1HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA224DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA224HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA256DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA256HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA384DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA384HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA3DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA512DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA512HMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA512t224DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA512t256DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SM3DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SRP6Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Salsa20Test.cs2
-rw-r--r--crypto/test/src/crypto/test/SerpentTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ShakeDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/ShortenedDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SipHashTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SkeinDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SkeinMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SkipjackTest.cs2
-rw-r--r--crypto/test/src/crypto/test/StreamCipherResetTest.cs2
-rw-r--r--crypto/test/src/crypto/test/TEATest.cs2
-rw-r--r--crypto/test/src/crypto/test/Threefish1024Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Threefish256Test.cs2
-rw-r--r--crypto/test/src/crypto/test/Threefish512Test.cs2
-rw-r--r--crypto/test/src/crypto/test/TigerDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/TnepresTest.cs2
-rw-r--r--crypto/test/src/crypto/test/TwofishTest.cs2
-rw-r--r--crypto/test/src/crypto/test/VMPCKSA3Test.cs2
-rw-r--r--crypto/test/src/crypto/test/VMPCMacTest.cs2
-rw-r--r--crypto/test/src/crypto/test/VMPCTest.cs2
-rw-r--r--crypto/test/src/crypto/test/WhirlpoolDigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/X931SignerTest.cs2
-rw-r--r--crypto/test/src/crypto/test/XSalsa20Test.cs2
-rw-r--r--crypto/test/src/crypto/test/XTEATest.cs2
-rw-r--r--crypto/test/src/crypto/tls/test/DtlsTestCase.cs8
-rw-r--r--crypto/test/src/crypto/tls/test/MockDatagramAssociation.cs6
-rw-r--r--crypto/test/src/crypto/tls/test/NetworkStream.cs9
-rw-r--r--crypto/test/src/crypto/tls/test/PipedStream.cs21
-rw-r--r--crypto/test/src/crypto/tls/test/PskTlsClientTest.cs8
-rw-r--r--crypto/test/src/crypto/tls/test/TlsClientTest.cs4
-rw-r--r--crypto/test/src/crypto/tls/test/TlsServerTest.cs6
-rw-r--r--crypto/test/src/crypto/tls/test/TlsTestCase.cs2
-rw-r--r--crypto/test/src/crypto/tls/test/TlsTestServerImpl.cs2
-rw-r--r--crypto/test/src/crypto/tls/test/TlsTestUtilities.cs2
-rw-r--r--crypto/test/src/math/ec/test/AllTests.cs2
-rw-r--r--crypto/test/src/math/ec/test/ECPointPerformanceTest.cs2
-rw-r--r--crypto/test/src/math/ec/test/F2mProofer.cs2
-rw-r--r--crypto/test/src/math/test/AllTests.cs2
-rw-r--r--crypto/test/src/ocsp/test/AllTests.cs2
-rw-r--r--crypto/test/src/ocsp/test/OCSPTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPArmoredTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPCompressionTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPDSATest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPPBETest.cs46
-rw-r--r--crypto/test/src/openpgp/test/PGPPacketTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PGPRSATest.cs58
-rw-r--r--crypto/test/src/openpgp/test/PGPSignatureTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpECDHTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpECDsaTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpECMessageTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpKeyRingTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpMarkerTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpParsingTest.cs2
-rw-r--r--crypto/test/src/openpgp/test/PgpUnicodeTest.cs5
-rw-r--r--crypto/test/src/openpgp/test/RegressionTest.cs2
-rw-r--r--crypto/test/src/openssl/test/AllTests.cs2
-rw-r--r--crypto/test/src/openssl/test/ReaderTest.cs6
-rw-r--r--crypto/test/src/openssl/test/WriterTest.cs2
-rw-r--r--crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs2
-rw-r--r--crypto/test/src/pkcs/test/PKCS10Test.cs2
-rw-r--r--crypto/test/src/pkcs/test/PKCS12StoreTest.cs2
-rw-r--r--crypto/test/src/security/test/TestMacUtil.cs7
-rw-r--r--crypto/test/src/security/test/TestParameterUtil.cs4
-rw-r--r--crypto/test/src/security/test/TestSignerUtil.cs2
-rw-r--r--crypto/test/src/test/AESSICTest.cs2
-rw-r--r--crypto/test/src/test/AESTest.cs2
-rw-r--r--crypto/test/src/test/AttrCertSelectorTest.cs2
-rw-r--r--crypto/test/src/test/AttrCertTest.cs2
-rw-r--r--crypto/test/src/test/BlockCipherTest.cs6
-rw-r--r--crypto/test/src/test/CMacTest.cs2
-rw-r--r--crypto/test/src/test/CRL5Test.cs2
-rw-r--r--crypto/test/src/test/CamelliaTest.cs2
-rw-r--r--crypto/test/src/test/CertPathBuilderTest.cs2
-rw-r--r--crypto/test/src/test/CertPathTest.cs2
-rw-r--r--crypto/test/src/test/CertPathValidatorTest.cs2
-rw-r--r--crypto/test/src/test/CertTest.cs2
-rw-r--r--crypto/test/src/test/CipherStreamTest.cs2
-rw-r--r--crypto/test/src/test/DESedeTest.cs2
-rw-r--r--crypto/test/src/test/DHTest.cs2
-rw-r--r--crypto/test/src/test/DSATest.cs2
-rw-r--r--crypto/test/src/test/DigestTest.cs2
-rw-r--r--crypto/test/src/test/ECDSA5Test.cs2
-rw-r--r--crypto/test/src/test/ECEncodingTest.cs2
-rw-r--r--crypto/test/src/test/ECNRTest.cs2
-rw-r--r--crypto/test/src/test/ElGamalTest.cs2
-rw-r--r--crypto/test/src/test/EncryptedPrivateKeyInfoTest.cs2
-rw-r--r--crypto/test/src/test/FIPSDESTest.cs2
-rw-r--r--crypto/test/src/test/GOST28147Test.cs2
-rw-r--r--crypto/test/src/test/GOST3410Test.cs2
-rw-r--r--crypto/test/src/test/HMacTest.cs2
-rw-r--r--crypto/test/src/test/IESTest.cs2
-rw-r--r--crypto/test/src/test/MacTest.cs2
-rw-r--r--crypto/test/src/test/MqvTest.cs2
-rw-r--r--crypto/test/src/test/NamedCurveTest.cs2
-rw-r--r--crypto/test/src/test/NistCertPathTest.cs2
-rw-r--r--crypto/test/src/test/NoekeonTest.cs2
-rw-r--r--crypto/test/src/test/PBETest.cs2
-rw-r--r--crypto/test/src/test/PKCS10CertRequestTest.cs2
-rw-r--r--crypto/test/src/test/PSSTest.cs2
-rw-r--r--crypto/test/src/test/PkixNameConstraintsTest.cs2
-rw-r--r--crypto/test/src/test/PkixPolicyMappingTest.cs2
-rw-r--r--crypto/test/src/test/PkixTest.cs2
-rw-r--r--crypto/test/src/test/RSATest.cs2
-rw-r--r--crypto/test/src/test/RegressionTest.cs2
-rw-r--r--crypto/test/src/test/SEEDTest.cs2
-rw-r--r--crypto/test/src/test/SigTest.cs2
-rw-r--r--crypto/test/src/test/WrapTest.cs2
-rw-r--r--crypto/test/src/test/X509CertificatePairTest.cs2
-rw-r--r--crypto/test/src/test/X509StoreTest.cs2
-rw-r--r--crypto/test/src/tsp/test/AllTests.cs2
-rw-r--r--crypto/test/src/util/io/pem/test/AllTests.cs2
-rw-r--r--crypto/test/src/util/test/PortableExtensions.cs22
-rw-r--r--crypto/test/src/util/test/SimpleTest.cs18
-rw-r--r--crypto/test/src/x509/test/TestCertificateGen.cs2
300 files changed, 545 insertions, 1672 deletions
diff --git a/crypto/test/UnitTests.csproj b/crypto/test/UnitTests.csproj
deleted file mode 100644

index 67d3e1b91..000000000 --- a/crypto/test/UnitTests.csproj +++ /dev/null
@@ -1,1305 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>9.0.21022</ProductVersion> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{D4EB669D-7C88-48C0-A480-C5CC73A7369B}</ProjectGuid> - <OutputType>Library</OutputType> - <RootNamespace>UnitTests</RootNamespace> - <AssemblyName>UnitTests</AssemblyName> - <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>false</Optimize> - <OutputPath>bin\Debug</OutputPath> - <DefineConstants>DEBUG;SEPARATE_UNIT_TESTS</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <ConsolePause>false</ConsolePause> - <NoWarn>219</NoWarn> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>full</DebugType> - <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <ConsolePause>false</ConsolePause> - <NoWarn>219</NoWarn> - </PropertyGroup> - <ItemGroup> - <Reference Include="System" /> - <Reference Include="nunit.framework"> - <HintPath>lib\nunit.framework.dll</HintPath> - </Reference> - <Reference Include="nunit.core.interfaces"> - <HintPath>lib\nunit.core.interfaces.dll</HintPath> - </Reference> - <Reference Include="nunit.core"> - <HintPath>lib\nunit.core.dll</HintPath> - </Reference> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <ItemGroup> - <ProjectReference Include="..\BouncyCastle.csproj"> - <Project>{4C235092-820C-4DEB-9074-D356FB797D8B}</Project> - <Name>BouncyCastle</Name> - </ProjectReference> - </ItemGroup> - <ItemGroup> - <Compile Include="src\asn1\test\ASN1SequenceParserTest.cs" /> - <Compile Include="src\asn1\test\ASN1UnitTest.cs" /> - <Compile Include="src\asn1\test\AdditionalInformationSyntaxUnitTest.cs" /> - <Compile Include="src\asn1\test\AdmissionSyntaxUnitTest.cs" /> - <Compile Include="src\asn1\test\AdmissionsUnitTest.cs" /> - <Compile Include="src\asn1\test\AllTests.cs" /> - <Compile Include="src\asn1\test\AttributeTableUnitTest.cs" /> - <Compile Include="src\asn1\test\BiometricDataUnitTest.cs" /> - <Compile Include="src\asn1\test\BitStringConstantTester.cs" /> - <Compile Include="src\asn1\test\BitStringTest.cs" /> - <Compile Include="src\asn1\test\CMSTest.cs" /> - <Compile Include="src\asn1\test\CertHashUnitTest.cs" /> - <Compile Include="src\asn1\test\CertificateTest.cs" /> - <Compile Include="src\asn1\test\CommitmentTypeIndicationUnitTest.cs" /> - <Compile Include="src\asn1\test\CommitmentTypeQualifierUnitTest.cs" /> - <Compile Include="src\asn1\test\ContentHintsUnitTest.cs" /> - <Compile Include="src\asn1\test\CscaMasterListTest.cs" /> - <Compile Include="src\asn1\test\DERApplicationSpecificTest.cs" /> - <Compile Include="src\asn1\test\DERUTF8StringTest.cs" /> - <Compile Include="src\asn1\test\DataGroupHashUnitTest.cs" /> - <Compile Include="src\asn1\test\DeclarationOfMajorityUnitTest.cs" /> - <Compile Include="src\asn1\test\EncryptedPrivateKeyInfoTest.cs" /> - <Compile Include="src\asn1\test\EnumeratedTest.cs" /> - <Compile Include="src\asn1\test\EqualsAndHashCodeTest.cs" /> - <Compile Include="src\asn1\test\EssCertIDv2UnitTest.cs" /> - <Compile Include="src\asn1\test\GeneralNameTest.cs" /> - <Compile Include="src\asn1\test\GeneralizedTimeTest.cs" /> - <Compile Include="src\asn1\test\GenerationTest.cs" /> - <Compile Include="src\asn1\test\InputStreamTest.cs" /> - <Compile Include="src\asn1\test\Iso4217CurrencyCodeUnitTest.cs" /> - <Compile Include="src\asn1\test\IssuingDistributionPointTest.cs" /> - <Compile Include="src\asn1\test\KeyUsageTest.cs" /> - <Compile Include="src\asn1\test\LDSSecurityObjectUnitTest.cs" /> - <Compile Include="src\asn1\test\MiscTest.cs" /> - <Compile Include="src\asn1\test\MonetaryLimitUnitTest.cs" /> - <Compile Include="src\asn1\test\MonetaryValueUnitTest.cs" /> - <Compile Include="src\asn1\test\NameOrPseudonymUnitTest.cs" /> - <Compile Include="src\asn1\test\NamingAuthorityUnitTest.cs" /> - <Compile Include="src\asn1\test\NetscapeCertTypeTest.cs" /> - <Compile Include="src\asn1\test\OCSPTest.cs" /> - <Compile Include="src\asn1\test\OIDTest.cs" /> - <Compile Include="src\asn1\test\OctetStringTest.cs" /> - <Compile Include="src\asn1\test\OtherCertIDUnitTest.cs" /> - <Compile Include="src\asn1\test\OtherSigningCertificateUnitTest.cs" /> - <Compile Include="src\asn1\test\PKCS10Test.cs" /> - <Compile Include="src\asn1\test\PKCS12Test.cs" /> - <Compile Include="src\asn1\test\PKIFailureInfoTest.cs" /> - <Compile Include="src\asn1\test\ParseTest.cs" /> - <Compile Include="src\asn1\test\ParsingTest.cs" /> - <Compile Include="src\asn1\test\PersonalDataUnitTest.cs" /> - <Compile Include="src\asn1\test\ProcurationSyntaxUnitTest.cs" /> - <Compile Include="src\asn1\test\ProfessionInfoUnitTest.cs" /> - <Compile Include="src\asn1\test\QCStatementUnitTest.cs" /> - <Compile Include="src\asn1\test\ReasonFlagsTest.cs" /> - <Compile Include="src\asn1\test\RegressionTest.cs" /> - <Compile Include="src\asn1\test\RequestedCertificateUnitTest.cs" /> - <Compile Include="src\asn1\test\RestrictionUnitTest.cs" /> - <Compile Include="src\asn1\test\SMIMETest.cs" /> - <Compile Include="src\asn1\test\SemanticsInformationUnitTest.cs" /> - <Compile Include="src\asn1\test\SetTest.cs" /> - <Compile Include="src\asn1\test\SignerLocationUnitTest.cs" /> - <Compile Include="src\asn1\test\StringTest.cs" /> - <Compile Include="src\asn1\test\SubjectKeyIdentifierTest.cs" /> - <Compile Include="src\asn1\test\TagTest.cs" /> - <Compile Include="src\asn1\test\TargetInformationTest.cs" /> - <Compile Include="src\asn1\test\TimeTest.cs" /> - <Compile Include="src\asn1\test\TypeOfBiometricDataUnitTest.cs" /> - <Compile Include="src\asn1\test\UTCTimeTest.cs" /> - <Compile Include="src\asn1\test\X509ExtensionsTest.cs" /> - <Compile Include="src\asn1\test\X509NameTest.cs" /> - <Compile Include="src\asn1\test\X9Test.cs" /> - <Compile Include="src\cms\test\AllTests.cs" /> - <Compile Include="src\cms\test\AuthenticatedDataStreamTest.cs" /> - <Compile Include="src\cms\test\AuthenticatedDataTest.cs" /> - <Compile Include="src\cms\test\CMSSampleMessages.cs" /> - <Compile Include="src\cms\test\CMSTestUtil.cs" /> - <Compile Include="src\cms\test\CompressedDataStreamTest.cs" /> - <Compile Include="src\cms\test\CompressedDataTest.cs" /> - <Compile Include="src\cms\test\EnvelopedDataStreamTest.cs" /> - <Compile Include="src\cms\test\EnvelopedDataTest.cs" /> - <Compile Include="src\cms\test\MiscDataStreamTest.cs" /> - <Compile Include="src\cms\test\Rfc4134Test.cs" /> - <Compile Include="src\cms\test\SignedDataStreamTest.cs" /> - <Compile Include="src\cms\test\SignedDataTest.cs" /> - <Compile Include="src\crypto\examples\DESExample.cs" /> - <Compile Include="src\crypto\io\test\AllTests.cs" /> - <Compile Include="src\crypto\io\test\CipherStreamTest.cs" /> - <Compile Include="src\crypto\agreement\test\AllTests.cs" /> - <Compile Include="src\crypto\agreement\test\JPakeParticipantTest.cs" /> - <Compile Include="src\crypto\agreement\test\JPakePrimeOrderGroupTest.cs" /> - <Compile Include="src\crypto\agreement\test\JPakeUtilitiesTest.cs" /> - <Compile Include="src\crypto\prng\test\CtrDrbgTest.cs" /> - <Compile Include="src\crypto\prng\test\DrbgTestVector.cs" /> - <Compile Include="src\crypto\prng\test\HashDrbgTest.cs" /> - <Compile Include="src\crypto\prng\test\HMacDrbgTest.cs" /> - <Compile Include="src\crypto\prng\test\TestEntropySourceProvider.cs" /> - <Compile Include="src\crypto\prng\test\X931Test.cs" /> - <Compile Include="src\crypto\prng\test\X931TestVector.cs" /> - <Compile Include="src\crypto\test\AeadTestUtilities.cs" /> - <Compile Include="src\crypto\test\AESFastTest.cs" /> - <Compile Include="src\crypto\test\AESLightTest.cs" /> - <Compile Include="src\crypto\test\AESTest.cs" /> - <Compile Include="src\crypto\test\AESWrapTest.cs" /> - <Compile Include="src\crypto\test\AllTests.cs" /> - <Compile Include="src\crypto\test\BCryptTest.cs" /> - <Compile Include="src\crypto\test\BlockCipherMonteCarloTest.cs" /> - <Compile Include="src\crypto\test\BlockCipherVectorTest.cs" /> - <Compile Include="src\crypto\test\BlowfishTest.cs" /> - <Compile Include="src\crypto\test\CAST6Test.cs" /> - <Compile Include="src\crypto\test\CCMTest.cs" /> - <Compile Include="src\crypto\test\ChaChaTest.cs" /> - <Compile Include="src\crypto\test\CMacTest.cs" /> - <Compile Include="src\crypto\test\CTSTest.cs" /> - <Compile Include="src\crypto\test\CamelliaLightTest.cs" /> - <Compile Include="src\crypto\test\CamelliaTest.cs" /> - <Compile Include="src\crypto\test\Cast5Test.cs" /> - <Compile Include="src\crypto\test\CipherTest.cs" /> - <Compile Include="src\crypto\test\DESTest.cs" /> - <Compile Include="src\crypto\test\DESedeTest.cs" /> - <Compile Include="src\crypto\test\DeterministicDSATest.cs" /> - <Compile Include="src\crypto\test\DHKEKGeneratorTest.cs" /> - <Compile Include="src\crypto\test\DHTest.cs" /> - <Compile Include="src\crypto\test\DSATest.cs" /> - <Compile Include="src\crypto\test\DSTU7564Test.cs" /> - <Compile Include="src\crypto\test\DSTU7624Test.cs" /> - <Compile Include="src\crypto\test\DigestRandomNumberTest.cs" /> - <Compile Include="src\crypto\test\DigestTest.cs" /> - <Compile Include="src\crypto\test\EAXTest.cs" /> - <Compile Include="src\crypto\test\ECDHKEKGeneratorTest.cs" /> - <Compile Include="src\crypto\test\ECGOST3410Test.cs" /> - <Compile Include="src\crypto\test\ECIESTest.cs" /> - <Compile Include="src\crypto\test\ECNRTest.cs" /> - <Compile Include="src\crypto\test\ECTest.cs" /> - <Compile Include="src\crypto\test\ElGamalTest.cs" /> - <Compile Include="src\crypto\test\EqualsHashCodeTest.cs" /> - <Compile Include="src\crypto\test\GCMTest.cs" /> - <Compile Include="src\crypto\test\GMacTest.cs" /> - <Compile Include="src\crypto\test\GOST28147MacTest.cs" /> - <Compile Include="src\crypto\test\GOST28147Test.cs" /> - <Compile Include="src\crypto\test\GOST3410Test.cs" /> - <Compile Include="src\crypto\test\GOST3411DigestTest.cs" /> - <Compile Include="src\crypto\test\GOST3411_2012_256DigestTest.cs" /> - <Compile Include="src\crypto\test\GOST3411_2012_512DigestTest.cs" /> - <Compile Include="src\crypto\test\GcmReorderTest.cs" /> - <Compile Include="src\crypto\test\HCFamilyTest.cs" /> - <Compile Include="src\crypto\test\HCFamilyVecTest.cs" /> - <Compile Include="src\crypto\test\HKDFGeneratorTest.cs" /> - <Compile Include="src\crypto\test\IDEATest.cs" /> - <Compile Include="src\crypto\test\ISAACTest.cs" /> - <Compile Include="src\crypto\test\ISO9796Test.cs" /> - <Compile Include="src\crypto\test\ISO9797Alg3MacTest.cs" /> - <Compile Include="src\crypto\test\KDF1GeneratorTest.cs" /> - <Compile Include="src\crypto\test\KDF2GeneratorTest.cs" /> - <Compile Include="src\crypto\test\KeccakDigestTest.cs" /> - <Compile Include="src\crypto\test\MD2DigestTest.cs" /> - <Compile Include="src\crypto\test\MD4DigestTest.cs" /> - <Compile Include="src\crypto\test\MD5DigestTest.cs" /> - <Compile Include="src\crypto\test\MD5HMacTest.cs" /> - <Compile Include="src\crypto\test\MGF1GeneratorTest.cs" /> - <Compile Include="src\crypto\test\MacTest.cs" /> - <Compile Include="src\crypto\test\ModeTest.cs" /> - <Compile Include="src\crypto\test\NaccacheSternTest.cs" /> - <Compile Include="src\crypto\test\NoekeonTest.cs" /> - <Compile Include="src\crypto\test\NonMemoableDigestTest.cs" /> - <Compile Include="src\crypto\test\NullTest.cs" /> - <Compile Include="src\crypto\test\OAEPTest.cs" /> - <Compile Include="src\crypto\test\OCBTest.cs" /> - <Compile Include="src\crypto\test\OpenBsdBCryptTest.cs" /> - <Compile Include="src\crypto\test\PSSBlindTest.cs" /> - <Compile Include="src\crypto\test\PSSTest.cs" /> - <Compile Include="src\crypto\test\PaddingTest.cs" /> - <Compile Include="src\crypto\test\Pkcs12Test.cs" /> - <Compile Include="src\crypto\test\Pkcs5Test.cs" /> - <Compile Include="src\crypto\test\Poly1305Test.cs" /> - <Compile Include="src\crypto\test\RC2Test.cs" /> - <Compile Include="src\crypto\test\RC2WrapTest.cs" /> - <Compile Include="src\crypto\test\RC4Test.cs" /> - <Compile Include="src\crypto\test\RC5Test.cs" /> - <Compile Include="src\crypto\test\RC6Test.cs" /> - <Compile Include="src\crypto\test\RFC3211WrapTest.cs" /> - <Compile Include="src\crypto\test\RSABlindedTest.cs" /> - <Compile Include="src\crypto\test\RegressionTest.cs" /> - <Compile Include="src\crypto\test\RijndaelTest.cs" /> - <Compile Include="src\crypto\test\RipeMD128DigestTest.cs" /> - <Compile Include="src\crypto\test\RipeMD128HMacTest.cs" /> - <Compile Include="src\crypto\test\RipeMD160DigestTest.cs" /> - <Compile Include="src\crypto\test\RipeMD160HMacTest.cs" /> - <Compile Include="src\crypto\test\RipeMD256DigestTest.cs" /> - <Compile Include="src\crypto\test\RipeMD320DigestTest.cs" /> - <Compile Include="src\crypto\test\RsaTest.cs" /> - <Compile Include="src\crypto\test\SCryptTest.cs" /> - <Compile Include="src\crypto\test\SEEDTest.cs" /> - <Compile Include="src\crypto\test\SHA1DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA1HMacTest.cs" /> - <Compile Include="src\crypto\test\SHA224DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA224HMacTest.cs" /> - <Compile Include="src\crypto\test\SHA256DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA256HMacTest.cs" /> - <Compile Include="src\crypto\test\SHA384DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA384HMacTest.cs" /> - <Compile Include="src\crypto\test\SHA3DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA512DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA512HMacTest.cs" /> - <Compile Include="src\crypto\test\SHA512t224DigestTest.cs" /> - <Compile Include="src\crypto\test\SHA512t256DigestTest.cs" /> - <Compile Include="src\crypto\test\SM2EngineTest.cs" /> - <Compile Include="src\crypto\test\SM2KeyExchangeTest.cs" /> - <Compile Include="src\crypto\test\SM2SignerTest.cs" /> - <Compile Include="src\crypto\test\SM3DigestTest.cs" /> - <Compile Include="src\crypto\test\SkeinDigestTest.cs" /> - <Compile Include="src\crypto\test\SkeinMacTest.cs" /> - <Compile Include="src\crypto\test\StreamCipherResetTest.cs" /> - <Compile Include="src\crypto\test\Threefish1024Test.cs" /> - <Compile Include="src\crypto\test\Threefish256Test.cs" /> - <Compile Include="src\crypto\test\Threefish512Test.cs" /> - <Compile Include="src\crypto\test\SRP6Test.cs" /> - <Compile Include="src\crypto\test\Salsa20Test.cs" /> - <Compile Include="src\crypto\test\SerpentTest.cs" /> - <Compile Include="src\crypto\test\ShakeDigestTest.cs" /> - <Compile Include="src\crypto\test\ShortenedDigestTest.cs" /> - <Compile Include="src\crypto\test\SipHashTest.cs" /> - <Compile Include="src\crypto\test\SkipjackTest.cs" /> - <Compile Include="src\crypto\test\StreamCipherVectorTest.cs" /> - <Compile Include="src\crypto\test\TEATest.cs" /> - <Compile Include="src\crypto\test\TigerDigestTest.cs" /> - <Compile Include="src\crypto\test\TnepresTest.cs" /> - <Compile Include="src\crypto\test\TwofishTest.cs" /> - <Compile Include="src\crypto\test\VMPCKSA3Test.cs" /> - <Compile Include="src\crypto\test\VMPCMacTest.cs" /> - <Compile Include="src\crypto\test\VMPCTest.cs" /> - <Compile Include="src\crypto\test\WhirlpoolDigestTest.cs" /> - <Compile Include="src\crypto\test\X931SignerTest.cs" /> - <Compile Include="src\crypto\test\XSalsa20Test.cs" /> - <Compile Include="src\crypto\test\XTEATest.cs" /> - <Compile Include="src\crypto\tls\test\ByteQueueStreamTest.cs" /> - <Compile Include="src\crypto\tls\test\DtlsProtocolTest.cs" /> - <Compile Include="src\crypto\tls\test\DtlsTestCase.cs" /> - <Compile Include="src\crypto\tls\test\DtlsTestClientProtocol.cs" /> - <Compile Include="src\crypto\tls\test\DtlsTestServerProtocol.cs" /> - <Compile Include="src\crypto\tls\test\DtlsTestSuite.cs" /> - <Compile Include="src\crypto\tls\test\LoggingDatagramTransport.cs" /> - <Compile Include="src\crypto\tls\test\MockDatagramAssociation.cs" /> - <Compile Include="src\crypto\tls\test\MockDtlsClient.cs" /> - <Compile Include="src\crypto\tls\test\MockDtlsServer.cs" /> - <Compile Include="src\crypto\tls\test\MockPskTlsClient.cs" /> - <Compile Include="src\crypto\tls\test\MockPskTlsServer.cs" /> - <Compile Include="src\crypto\tls\test\MockSrpTlsClient.cs" /> - <Compile Include="src\crypto\tls\test\MockSrpTlsServer.cs" /> - <Compile Include="src\crypto\tls\test\MockTlsClient.cs" /> - <Compile Include="src\crypto\tls\test\MockTlsServer.cs" /> - <Compile Include="src\crypto\tls\test\NetworkStream.cs" /> - <Compile Include="src\crypto\tls\test\PipedStream.cs" /> - <Compile Include="src\crypto\tls\test\PskTlsClientTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsClientTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsProtocolTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsProtocolNonBlockingTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsPskProtocolTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsServerTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsSrpProtocolTest.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestCase.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestClientImpl.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestClientProtocol.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestConfig.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestServerImpl.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestServerProtocol.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestSuite.cs" /> - <Compile Include="src\crypto\tls\test\TlsTestUtilities.cs" /> - <Compile Include="src\crypto\tls\test\UnreliableDatagramTransport.cs" /> - <Compile Include="src\math\ec\custom\sec\test\SecP256R1FieldTest.cs" /> - <Compile Include="src\math\ec\custom\sec\test\SecP384R1FieldTest.cs" /> - <Compile Include="src\math\ec\test\AllTests.cs" /> - <Compile Include="src\math\ec\test\ECAlgorithmsTest.cs" /> - <Compile Include="src\math\ec\test\ECPointPerformanceTest.cs" /> - <Compile Include="src\math\ec\test\ECPointTest.cs" /> - <Compile Include="src\math\ec\test\F2mProofer.cs" /> - <Compile Include="src\math\ec\test\TnafTest.cs" /> - <Compile Include="src\math\test\AllTests.cs" /> - <Compile Include="src\math\test\BigIntegerTest.cs" /> - <Compile Include="src\math\test\PrimesTest.cs" /> - <Compile Include="src\ocsp\test\AllTests.cs" /> - <Compile Include="src\ocsp\test\OCSPTest.cs" /> - <Compile Include="src\ocsp\test\OCSPTestUtil.cs" /> - <Compile Include="src\openpgp\examples\ByteArrayHandler.cs" /> - <Compile Include="src\openpgp\examples\ClearSignedFileProcessor.cs" /> - <Compile Include="src\openpgp\examples\DetachedSignatureProcessor.cs" /> - <Compile Include="src\openpgp\examples\DirectKeySignature.cs" /> - <Compile Include="src\openpgp\examples\DsaElGamalKeyRingGenerator.cs" /> - <Compile Include="src\openpgp\examples\KeyBasedFileProcessor.cs" /> - <Compile Include="src\openpgp\examples\KeyBasedLargeFileProcessor.cs" /> - <Compile Include="src\openpgp\examples\PbeFileProcessor.cs" /> - <Compile Include="src\openpgp\examples\PgpExampleUtilities.cs" /> - <Compile Include="src\openpgp\examples\PublicKeyRingDump.cs" /> - <Compile Include="src\openpgp\examples\RsaKeyRingGenerator.cs" /> - <Compile Include="src\openpgp\examples\SignedFileProcessor.cs" /> - <Compile Include="src\openpgp\examples\test\AllTests.cs" /> - <Compile Include="src\openpgp\test\DSA2Test.cs" /> - <Compile Include="src\openpgp\test\PGPArmoredTest.cs" /> - <Compile Include="src\openpgp\test\PGPClearSignedSignatureTest.cs" /> - <Compile Include="src\openpgp\test\PGPCompressionTest.cs" /> - <Compile Include="src\openpgp\test\PGPDSAElGamalTest.cs" /> - <Compile Include="src\openpgp\test\PGPDSATest.cs" /> - <Compile Include="src\openpgp\test\PGPNoPrivateKeyTest.cs" /> - <Compile Include="src\openpgp\test\PGPPBETest.cs" /> - <Compile Include="src\openpgp\test\PGPPacketTest.cs" /> - <Compile Include="src\openpgp\test\PGPRSATest.cs" /> - <Compile Include="src\openpgp\test\PGPSignatureTest.cs" /> - <Compile Include="src\openpgp\test\PgpECDHTest.cs" /> - <Compile Include="src\openpgp\test\PgpECDsaTest.cs" /> - <Compile Include="src\openpgp\test\PgpECMessageTest.cs" /> - <Compile Include="src\openpgp\test\PgpKeyRingTest.cs" /> - <Compile Include="src\openpgp\test\PgpMarkerTest.cs" /> - <Compile Include="src\openpgp\test\PgpParsingTest.cs" /> - <Compile Include="src\openpgp\test\PgpUnicodeTest.cs" /> - <Compile Include="src\openpgp\test\RegressionTest.cs" /> - <Compile Include="src\openssl\test\AllTests.cs" /> - <Compile Include="src\openssl\test\ReaderTest.cs" /> - <Compile Include="src\openssl\test\WriterTest.cs" /> - <Compile Include="src\pkcs\examples\PKCS12Example.cs" /> - <Compile Include="src\pkcs\test\EncryptedPrivateKeyInfoTest.cs" /> - <Compile Include="src\pkcs\test\PKCS10Test.cs" /> - <Compile Include="src\pkcs\test\PKCS12StoreTest.cs" /> - <Compile Include="src\security\test\SecureRandomTest.cs" /> - <Compile Include="src\security\test\TestDigestUtil.cs" /> - <Compile Include="src\security\test\TestDotNetUtil.cs" /> - <Compile Include="src\security\test\TestEncodings.cs" /> - <Compile Include="src\security\test\TestParameterUtil.cs" /> - <Compile Include="src\security\test\TestSignerUtil.cs" /> - <Compile Include="src\test\AESSICTest.cs" /> - <Compile Include="src\test\AESTest.cs" /> - <Compile Include="src\test\AttrCertSelectorTest.cs" /> - <Compile Include="src\test\AttrCertTest.cs" /> - <Compile Include="src\test\BaseBlockCipherTest.cs" /> - <Compile Include="src\test\BlockCipherTest.cs" /> - <Compile Include="src\test\CMacTest.cs" /> - <Compile Include="src\test\CRL5Test.cs" /> - <Compile Include="src\test\CamelliaTest.cs" /> - <Compile Include="src\test\CertPathBuilderTest.cs" /> - <Compile Include="src\test\CertPathTest.cs" /> - <Compile Include="src\test\CertPathValidatorTest.cs" /> - <Compile Include="src\test\CertTest.cs" /> - <Compile Include="src\test\CipherStreamTest.cs" /> - <Compile Include="src\test\DESedeTest.cs" /> - <Compile Include="src\test\DHTest.cs" /> - <Compile Include="src\test\DSATest.cs" /> - <Compile Include="src\test\DigestTest.cs" /> - <Compile Include="src\test\ECDSA5Test.cs" /> - <Compile Include="src\test\ECEncodingTest.cs" /> - <Compile Include="src\test\ECNRTest.cs" /> - <Compile Include="src\test\ElGamalTest.cs" /> - <Compile Include="src\test\EncryptedPrivateKeyInfoTest.cs" /> - <Compile Include="src\test\FIPSDESTest.cs" /> - <Compile Include="src\test\GOST28147Test.cs" /> - <Compile Include="src\test\GOST3410Test.cs" /> - <Compile Include="src\test\HMacTest.cs" /> - <Compile Include="src\test\IESTest.cs" /> - <Compile Include="src\test\MacTest.cs" /> - <Compile Include="src\test\MqvTest.cs" /> - <Compile Include="src\test\NamedCurveTest.cs" /> - <Compile Include="src\test\NistCertPathTest.cs" /> - <Compile Include="src\test\NoekeonTest.cs" /> - <Compile Include="src\test\PBETest.cs" /> - <Compile Include="src\test\PEMData.cs" /> - <Compile Include="src\test\PKCS10CertRequestTest.cs" /> - <Compile Include="src\test\PSSTest.cs" /> - <Compile Include="src\test\PkixNameConstraintsTest.cs" /> - <Compile Include="src\test\PkixPolicyMappingTest.cs" /> - <Compile Include="src\test\PkixTest.cs" /> - <Compile Include="src\test\RSATest.cs" /> - <Compile Include="src\test\RegressionTest.cs" /> - <Compile Include="src\test\SEEDTest.cs" /> - <Compile Include="src\test\SigTest.cs" /> - <Compile Include="src\test\TestUtilities.cs" /> - <Compile Include="src\test\WrapTest.cs" /> - <Compile Include="src\test\X509CertificatePairTest.cs" /> - <Compile Include="src\test\X509StoreTest.cs" /> - <Compile Include="src\test\nist\NistCertPathTest.cs" /> - <Compile Include="src\test\rsa3\RSA3CertTest.cs" /> - <Compile Include="src\tsp\test\AllTests.cs" /> - <Compile Include="src\tsp\test\GenTimeAccuracyTest.cs" /> - <Compile Include="src\tsp\test\ParseTest.cs" /> - <Compile Include="src\tsp\test\TSPTest.cs" /> - <Compile Include="src\tsp\test\TSPTestUtil.cs" /> - <Compile Include="src\tsp\test\TimeStampTokenInfoTest.cs" /> - <Compile Include="src\util\io\pem\test\AllTests.cs" /> - <Compile Include="src\util\net\test\IPAddressTest.cs" /> - <Compile Include="src\util\test\FixedSecureRandom.cs" /> - <Compile Include="src\util\test\ITest.cs" /> - <Compile Include="src\util\test\ITestResult.cs" /> - <Compile Include="src\util\test\NumberParsing.cs" /> - <Compile Include="src\util\test\SimpleTest.cs" /> - <Compile Include="src\util\test\SimpleTestResult.cs" /> - <Compile Include="src\util\test\TestFailedException.cs" /> - <Compile Include="src\util\test\TestRandomBigInteger.cs" /> - <Compile Include="src\util\test\UncloseableStream.cs" /> - <Compile Include="src\x509\test\TestCertificateGen.cs" /> - </ItemGroup> - <ItemGroup> - <EmbeddedResource Include="data\cert_chain.data" /> - <EmbeddedResource Include="data\cert_chain_nl.data" /> - <EmbeddedResource Include="data\qvRooCa3.crt" /> - <EmbeddedResource Include="data\suvaEE.crt" /> - <EmbeddedResource Include="data\suvaEmail1.crt" /> - <EmbeddedResource Include="data\suvaRoot1.crt" /> - <EmbeddedResource Include="data\ThawteSGCCA.cer" /> - <EmbeddedResource Include="data\ThawteSGCCA.crl" /> - <EmbeddedResource Include="data\crypto\SHA3TestVectors.txt" /> - <EmbeddedResource Include="data\crypto\SHAKETestVectors.txt" /> - <EmbeddedResource Include="data\PKITS\README.txt" /> - <EmbeddedResource Include="data\PKITS\certs\AllCertificatesNoPoliciesTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\AllCertificatesSamePoliciesTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\AllCertificatesSamePoliciesTest13EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\AllCertificatesanyPolicyTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\AnyPolicyTest14EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BadCRLIssuerNameCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BadCRLSignatureCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BadSignedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BadnotAfterDateCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BadnotBeforeDateCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BasicSelfIssuedCRLSigningKeyCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BasicSelfIssuedCRLSigningKeyCRLCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BasicSelfIssuedNewKeyCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BasicSelfIssuedNewKeyOldWithNewCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BasicSelfIssuedOldKeyCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\BasicSelfIssuedOldKeyNewWithOldCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\CPSPointerQualifierTest20EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DSACACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DSAParametersInheritedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest12EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\DifferentPoliciesTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\GeneralizedTimeCRLnextUpdateCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\GoodCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\GoodsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\GoodsubCAPanyPolicyMapping1to2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidBadCRLIssuerNameTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidBadCRLSignatureTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidBasicSelfIssuedCRLSigningKeyTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidBasicSelfIssuedCRLSigningKeyTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidBasicSelfIssuedNewWithOldTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidBasicSelfIssuedOldWithNewTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidCASignatureTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidCAnotAfterDateTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidCAnotBeforeDateTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNSnameConstraintsTest31EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNSnameConstraintsTest33EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNSnameConstraintsTest38EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNandRFC822nameConstraintsTest28EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNandRFC822nameConstraintsTest29EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest12EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest13EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest15EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest16EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest17EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest20EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDNnameConstraintsTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidDSASignatureTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidEESignatureTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidEEnotAfterDateTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidEEnotBeforeDateTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidIDPwithindirectCRLTest23EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidIDPwithindirectCRLTest26EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidLongSerialNumberTest18EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidMappingFromanyPolicyTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidMappingToanyPolicyTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidMissingCRLTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidMissingbasicConstraintsTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidNameChainingOrderTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidNameChainingTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidNegativeSerialNumberTest15EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidOldCRLnextUpdateTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidPolicyMappingTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidPolicyMappingTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidPolicyMappingTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidRFC822nameConstraintsTest22EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidRFC822nameConstraintsTest24EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidRFC822nameConstraintsTest26EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidRevokedCATest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidRevokedEETest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedinhibitAnyPolicyTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedinhibitAnyPolicyTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedinhibitPolicyMappingTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedinhibitPolicyMappingTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedinhibitPolicyMappingTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedinhibitPolicyMappingTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedpathLenConstraintTest16EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedrequireExplicitPolicyTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSelfIssuedrequireExplicitPolicyTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSeparateCertificateandCRLKeysTest20EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidSeparateCertificateandCRLKeysTest21EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidURInameConstraintsTest35EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidURInameConstraintsTest37EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidUnknownCRLEntryExtensionTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidUnknownCRLExtensionTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidUnknownCRLExtensionTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidUnknownCriticalCertificateExtensionTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidWrongCRLTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcAFalseTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcAFalseTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcRLIssuerTest27EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcRLIssuerTest31EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcRLIssuerTest32EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcRLIssuerTest34EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidcRLIssuerTest35EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddeltaCRLIndicatorNoBaseTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddeltaCRLTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddeltaCRLTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddeltaCRLTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddeltaCRLTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddeltaCRLTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddistributionPointTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddistributionPointTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddistributionPointTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddistributionPointTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvaliddistributionPointTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitAnyPolicyTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitAnyPolicyTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitAnyPolicyTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitAnyPolicyTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitPolicyMappingTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitPolicyMappingTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitPolicyMappingTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidinhibitPolicyMappingTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidkeyUsageCriticalcRLSignFalseTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidkeyUsageCriticalkeyCertSignFalseTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidkeyUsageNotCriticalcRLSignFalseTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidkeyUsageNotCriticalkeyCertSignFalseTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlyContainsAttributeCertsTest14EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlyContainsCACertsTest12EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlyContainsUserCertsTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlySomeReasonsTest15EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlySomeReasonsTest16EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlySomeReasonsTest17EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlySomeReasonsTest20EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidonlySomeReasonsTest21EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidpathLenConstraintTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidpathLenConstraintTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidpathLenConstraintTest12EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidpathLenConstraintTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidpathLenConstraintTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidpathLenConstraintTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\Invalidpre2000CRLnextUpdateTest12EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\Invalidpre2000UTCEEnotAfterDateTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidrequireExplicitPolicyTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\InvalidrequireExplicitPolicyTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\LongSerialNumberCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\Mapping1to2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\MappingFromanyPolicyCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\MappingToanyPolicyCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\MissingbasicConstraintsCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\NameOrderingCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\NegativeSerialNumberCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\NoCRLCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\NoPoliciesCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\NoissuingDistributionPointCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\OldCRLnextUpdateCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\OverlappingPoliciesTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\P12Mapping1to3CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\P12Mapping1to3subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\P12Mapping1to3subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\P1Mapping1to234CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\P1Mapping1to234subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\P1anyPolicyMapping1to2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PanyPolicyMapping1to2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP1234CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP1234subCAP123Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP1234subsubCAP123P12Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP123CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP123subCAP12Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP123subsubCAP12P1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP123subsubCAP12P2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP123subsubsubCAP12P2P1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP12CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP12subCAP1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP12subsubCAP1P2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP2subCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP2subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\PoliciesP3CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\RFC3280MandatoryAttributeTypesCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\RFC3280OptionalAttributeTypesCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\RevokedsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\RolloverfromPrintableStringtoUTF8StringCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\SeparateCertificateandCRLKeysCA2CRLSigningCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\SeparateCertificateandCRLKeysCA2CertificateSigningCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\SeparateCertificateandCRLKeysCRLSigningCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\SeparateCertificateandCRLKeysCertificateSigningCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\TrustAnchorRootCertificate.crt" /> - <EmbeddedResource Include="data\PKITS\certs\TwoCRLsCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UIDCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UTF8StringCaseInsensitiveMatchCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UTF8StringEncodedNamesCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UnknownCRLEntryExtensionCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UnknownCRLExtensionCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UserNoticeQualifierTest15EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UserNoticeQualifierTest16EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UserNoticeQualifierTest17EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UserNoticeQualifierTest18EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\UserNoticeQualifierTest19EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidBasicSelfIssuedCRLSigningKeyTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidBasicSelfIssuedNewWithOldTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidBasicSelfIssuedNewWithOldTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidBasicSelfIssuedOldWithNewTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidCertificatePathTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNSnameConstraintsTest30EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNSnameConstraintsTest32EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNandRFC822nameConstraintsTest27EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest14EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest18EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest19EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDNnameConstraintsTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDSAParameterInheritanceTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidDSASignaturesTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidGeneralizedTimeCRLnextUpdateTest13EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidGeneralizedTimenotAfterDateTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidGeneralizedTimenotBeforeDateTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidIDPwithindirectCRLTest22EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidIDPwithindirectCRLTest24EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidIDPwithindirectCRLTest25EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidLongSerialNumberTest16EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidLongSerialNumberTest17EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidNameChainingCapitalizationTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidNameChainingWhitespaceTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidNameChainingWhitespaceTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidNameUIDsTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidNegativeSerialNumberTest14EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidNoissuingDistributionPointTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest12EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest13EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest14EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidPolicyMappingTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidRFC3280MandatoryAttributeTypesTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidRFC3280OptionalAttributeTypesTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidRFC822nameConstraintsTest21EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidRFC822nameConstraintsTest23EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidRFC822nameConstraintsTest25EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidRolloverfromPrintableStringtoUTF8StringTest10EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSelfIssuedinhibitAnyPolicyTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSelfIssuedinhibitAnyPolicyTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSelfIssuedinhibitPolicyMappingTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSelfIssuedpathLenConstraintTest15EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSelfIssuedpathLenConstraintTest17EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSelfIssuedrequireExplicitPolicyTest6EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidSeparateCertificateandCRLKeysTest19EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidTwoCRLsTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidURInameConstraintsTest34EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidURInameConstraintsTest36EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidUTF8StringCaseInsensitiveMatchTest11EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidUTF8StringEncodedNamesTest9EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidUnknownNotCriticalCertificateExtensionTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidbasicConstraintsNotCriticalTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidcRLIssuerTest28EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidcRLIssuerTest29EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidcRLIssuerTest30EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidcRLIssuerTest33EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddeltaCRLTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddeltaCRLTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddeltaCRLTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddeltaCRLTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddistributionPointTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddistributionPointTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddistributionPointTest5EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValiddistributionPointTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidinhibitAnyPolicyTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidinhibitPolicyMappingTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidinhibitPolicyMappingTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidkeyUsageNotCriticalTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidonlyContainsCACertsTest13EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidonlySomeReasonsTest18EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidonlySomeReasonsTest19EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidpathLenConstraintTest13EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidpathLenConstraintTest14EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidpathLenConstraintTest7EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidpathLenConstraintTest8EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\Validpre2000UTCnotBeforeDateTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidrequireExplicitPolicyTest1EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidrequireExplicitPolicyTest2EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\ValidrequireExplicitPolicyTest4EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\WrongCRLCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\anyPolicyCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\basicConstraintsCriticalcAFalseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\basicConstraintsNotCriticalCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\basicConstraintsNotCriticalcAFalseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\deltaCRLCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\deltaCRLCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\deltaCRLCA3Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\deltaCRLIndicatorNoBaseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\distributionPoint1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\distributionPoint2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA3Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA3cRLIssuerCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA4Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA4cRLIssuerCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA5Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\indirectCRLCA6Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy0CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1SelfIssuedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1SelfIssuedsubCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1subCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1subCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1subCAIAP5Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy1subsubCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy5CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy5subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicy5subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitAnyPolicyTest3EE.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping0CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping0subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P12CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P12subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P12subCAIPM5Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P12subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P12subsubCAIPM5Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P1SelfIssuedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P1SelfIssuedsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P1subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping1P1subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping5CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping5subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping5subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\inhibitPolicyMapping5subsubsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\keyUsageCriticalcRLSignFalseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\keyUsageCriticalkeyCertSignFalseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\keyUsageNotCriticalCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\keyUsageNotCriticalcRLSignFalseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\keyUsageNotCriticalkeyCertSignFalseCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN1SelfIssuedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN1subCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN1subCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN1subCA3Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN3CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN3subCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN3subCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN4CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDN5CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDNS1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsDNS2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsRFC822CA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsRFC822CA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsRFC822CA3Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsURI1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\nameConstraintsURI2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlyContainsAttributeCertsCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlyContainsCACertsCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlyContainsUserCertsCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlySomeReasonsCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlySomeReasonsCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlySomeReasonsCA3Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\onlySomeReasonsCA4Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint0CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint0SelfIssuedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint0subCA2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint0subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint1CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint1SelfIssuedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint1SelfIssuedsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint1subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subCA0Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subCA1Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subCA4Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subsubCA00Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subsubCA11Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subsubCA41Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subsubsubCA11XCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pathLenConstraint6subsubsubCA41XCert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\pre2000CRLnextUpdateCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy0CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy0subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy0subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy0subsubsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy10CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy10subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy10subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy10subsubsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy2CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy2SelfIssuedCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy2SelfIssuedsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy2subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy4CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy4subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy4subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy4subsubsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy5CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy5subCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy5subsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy5subsubsubCACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy7CACert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy7subCARE2Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy7subsubCARE2RE4Cert.crt" /> - <EmbeddedResource Include="data\PKITS\certs\requireExplicitPolicy7subsubsubCARE2RE4Cert.crt" /> - <EmbeddedResource Include="data\PKITS\crls\BadCRLIssuerNameCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BadCRLSignatureCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BadSignedCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BadnotAfterDateCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BadnotBeforeDateCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BasicSelfIssuedCRLSigningKeyCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BasicSelfIssuedCRLSigningKeyCRLCertCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BasicSelfIssuedNewKeyCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BasicSelfIssuedOldKeyCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\BasicSelfIssuedOldKeySelfIssuedCertCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\DSACACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\DSAParametersInheritedCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\GeneralizedTimeCRLnextUpdateCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\GoodCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\GoodsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\GoodsubCAPanyPolicyMapping1to2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\LongSerialNumberCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\Mapping1to2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\MappingFromanyPolicyCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\MappingToanyPolicyCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\MissingbasicConstraintsCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\NameOrderCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\NegativeSerialNumberCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\NoPoliciesCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\NoissuingDistributionPointCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\OldCRLnextUpdateCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\P12Mapping1to3CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\P12Mapping1to3subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\P12Mapping1to3subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\P1Mapping1to234CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\P1Mapping1to234subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\P1anyPolicyMapping1to2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PanyPolicyMapping1to2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP1234CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP1234subCAP123CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP1234subsubCAP123P12CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP123CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP123subCAP12CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP123subsubCAP12P1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP123subsubCAP2P2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP123subsubsubCAP12P2P1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP12CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP12subCAP1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP12subsubCAP1P2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP2subCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP2subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\PoliciesP3CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\RFC3280MandatoryAttributeTypesCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\RFC3280OptionalAttributeTypesCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\RevokedsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\RolloverfromPrintableStringtoUTF8StringCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\SeparateCertificateandCRLKeysCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\SeparateCertificateandCRLKeysCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\TrustAnchorRootCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\TwoCRLsCABadCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\TwoCRLsCAGoodCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\UIDCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\UTF8StringCaseInsensitiveMatchCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\UTF8StringEncodedNamesCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\UnknownCRLEntryExtensionCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\UnknownCRLExtensionCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\WrongCRLCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\anyPolicyCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\basicConstraintsCriticalcAFalseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\basicConstraintsNotCriticalCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\basicConstraintsNotCriticalcAFalseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLCA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLCA1deltaCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLCA2deltaCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLCA3CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLCA3deltaCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\deltaCRLIndicatorNoBaseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\distributionPoint1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\distributionPoint2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\indirectCRLCA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\indirectCRLCA3CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\indirectCRLCA3cRLIssuerCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\indirectCRLCA4cRLIssuerCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\indirectCRLCA5CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy0CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy1subCA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy1subCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy1subCAIAP5CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy1subsubCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy5CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy5subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitAnyPolicy5subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping0CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping0subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P12CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P12subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P12subCAIPM5CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P12subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P12subsubCAIPM5CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P1subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping1P1subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping5CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping5subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping5subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\inhibitPolicyMapping5subsubsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\keyUsageCriticalcRLSignFalseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\keyUsageCriticalkeyCertSignFalseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\keyUsageNotCriticalCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\keyUsageNotCriticalcRLSignFalseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\keyUsageNotCriticalkeyCertSignFalseCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN1subCA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN1subCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN1subCA3CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN3CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN3subCA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN3subCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN4CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDN5CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDNS1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsDNS2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsRFC822CA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsRFC822CA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsRFC822CA3CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsURI1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\nameConstraintsURI2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlyContainsAttributeCertsCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlyContainsCACertsCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlyContainsUserCertsCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA1compromiseCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA1otherreasonsCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA2CRL1.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA2CRL2.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA3compromiseCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA3otherreasonsCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA4compromiseCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\onlySomeReasonsCA4otherreasonsCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint0CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint0subCA2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint0subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint1CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint1subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subCA0CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subCA1CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subCA4CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subsubCA00CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subsubCA11CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subsubCA41CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subsubsubCA11XCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pathLenConstraint6subsubsubCA41XCRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\pre2000CRLnextUpdateCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy0CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy0subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy0subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy0subsubsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy10CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy10subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy10subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy10subsubsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy2CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy2subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy4CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy4subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy4subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy4subsubsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy5CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy5subCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy5subsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy5subsubsubCACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy7CACRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy7subCARE2CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy7subsubCARE2RE4CRL.crl" /> - <EmbeddedResource Include="data\PKITS\crls\requireExplicitPolicy7subsubsubCARE2RE4CRL.crl" /> - <EmbeddedResource Include="data\asn1\masterlist-content.data" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignData.data" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignDataSHA1.sig" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignDataSHA1Enc.sig" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignDataSHA256.sig" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignDataSHA256Enc.sig" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignDataSHA512.sig" /> - <EmbeddedResource Include="data\cms\sigs\PSSSignDataSHA512Enc.sig" /> - <EmbeddedResource Include="data\cms\sigs\counterSig.p7m" /> - <EmbeddedResource Include="data\cms\sigs\rawsha256nonull.p7m" /> - <EmbeddedResource Include="data\cms\sigs\SignedMSPkcs7.sig" /> - <EmbeddedResource Include="data\hc256\hc128\ecrypt_HC-128.txt" /> - <EmbeddedResource Include="data\hc256\hc256\ecrypt_HC-256_128K_128IV.txt" /> - <EmbeddedResource Include="data\hc256\hc256\ecrypt_HC-256_128K_256IV.txt" /> - <EmbeddedResource Include="data\hc256\hc256\ecrypt_HC-256_256K_128IV.txt" /> - <EmbeddedResource Include="data\hc256\hc256\ecrypt_HC-256_256K_256IV.txt" /> - <EmbeddedResource Include="data\keys\README.txt" /> - <EmbeddedResource Include="data\keys\pbes1\pbeWithMD2AndDES_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbeWithMD2AndRC2_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbeWithMD5AndDES_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbeWithMD5AndRC2_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbeWithSHA1AndDES_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbeWithSHA1AndRC2_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbe_WithSHA1And128BitRC2_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbe_WithSHA1And128BitRC4.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbe_WithSHA1And2_Key_TripleDES_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbe_WithSHA1And3_Key_TripleDES_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbe_WithSHA1And40BitRC2_CBC.key" /> - <EmbeddedResource Include="data\keys\pbes1\pbe_WithSHA1And40BitRC4.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-128-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-128-cfb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-128-cfb1.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-128-cfb8.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-128-ecb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-128-ofb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-192-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-192-cfb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-192-cfb1.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-192-cfb8.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-192-ecb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-192-ofb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-256-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-256-cfb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-256-cfb1.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-256-cfb8.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-256-ecb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes-256-ofb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes128.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes192.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.aes256.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.bf-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.bf.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.blowfish.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.cast-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.cast.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.cast5-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-cfb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-cfb1.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-cfb8.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-ecb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-ede.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-ede3-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des-ofb.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.des3.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.rc2-40-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.rc2-64-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.rc2-cbc.key" /> - <EmbeddedResource Include="data\keys\pbes2\pbes2.rc2.key" /> - <EmbeddedResource Include="data\openpgp\bigpub.asc" /> - <EmbeddedResource Include="data\openpgp\longSigSubPack.asc" /> - <EmbeddedResource Include="data\openpgp\dsa\README.txt" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-1024-160.pub" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-1024-160.sec" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-15360-512.pub" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-15360-512.sec" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-2048-224.pub" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-2048-224.sec" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-3072-256.pub" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-3072-256.sec" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-7680-384.pub" /> - <EmbeddedResource Include="data\openpgp\dsa\keys\DSA-7680-384.sec" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-1024-160-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-1024-224-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-1024-256-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-1024-384-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-1024-512-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-15360-512-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-2048-224-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-3072-256-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\dsa\sigs\dsa-7680-384-sign.gpg" /> - <EmbeddedResource Include="data\openpgp\unicode\passphrase_cyr.txt" /> - <EmbeddedResource Include="data\openpgp\unicode\passphrase_for_test.txt" /> - <EmbeddedResource Include="data\openpgp\unicode\secring.gpg" /> - <EmbeddedResource Include="data\openpgp\unicode\test.asc" /> - <EmbeddedResource Include="data\openssl\README.txt" /> - <EmbeddedResource Include="data\openssl\eckey.pem" /> - <EmbeddedResource Include="data\openssl\enckey.pem" /> - <EmbeddedResource Include="data\openssl\pkcs7.pem" /> - <EmbeddedResource Include="data\openssl\pkcs8test.pem" /> - <EmbeddedResource Include="data\openssl\test.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes128_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes128_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes128_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes128_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes192_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes192_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes192_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes192_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes256_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes256_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes256_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_aes256_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_blowfish_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_blowfish_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_blowfish_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_blowfish_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des1_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des1_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des1_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des1_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des2_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des2_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des2_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des2_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des3_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des3_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des3_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_des3_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_rc2_128_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_rc2_128_cfb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_rc2_128_ecb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_rc2_128_ofb.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_rc2_40_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_rc2_64_cbc.pem" /> - <EmbeddedResource Include="data\openssl\dsa\openssl_dsa_unencrypted.pem" /> - <EmbeddedResource Include="data\openssl\pkcs8\openssl_pkcs8_rsa.pem" /> - <EmbeddedResource Include="data\openssl\pkcs8\openssl_pkcs8_rsa_enc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes128_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes128_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes128_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes128_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes192_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes192_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes192_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes192_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes256_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes256_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes256_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_aes256_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_blowfish_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_blowfish_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_blowfish_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_blowfish_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des1_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des1_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des1_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des1_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des2_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des2_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des2_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des2_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des3_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des3_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des3_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_des3_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_rc2_128_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_rc2_128_cfb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_rc2_128_ecb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_rc2_128_ofb.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_rc2_40_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_rc2_64_cbc.pem" /> - <EmbeddedResource Include="data\openssl\rsa\openssl_rsa_unencrypted.pem" /> - <EmbeddedResource Include="data\rfc4134\3.1.bin" /> - <EmbeddedResource Include="data\rfc4134\3.2.bin" /> - <EmbeddedResource Include="data\rfc4134\4.1.bin" /> - <EmbeddedResource Include="data\rfc4134\4.10.bin" /> - <EmbeddedResource Include="data\rfc4134\4.11.bin" /> - <EmbeddedResource Include="data\rfc4134\4.2.bin" /> - <EmbeddedResource Include="data\rfc4134\4.3.bin" /> - <EmbeddedResource Include="data\rfc4134\4.4.bin" /> - <EmbeddedResource Include="data\rfc4134\4.5.bin" /> - <EmbeddedResource Include="data\rfc4134\4.6.bin" /> - <EmbeddedResource Include="data\rfc4134\4.7.bin" /> - <EmbeddedResource Include="data\rfc4134\4.8.eml" /> - <EmbeddedResource Include="data\rfc4134\4.9.eml" /> - <EmbeddedResource Include="data\rfc4134\5.1.bin" /> - <EmbeddedResource Include="data\rfc4134\5.2.bin" /> - <EmbeddedResource Include="data\rfc4134\5.3.eml" /> - <EmbeddedResource Include="data\rfc4134\6.0.bin" /> - <EmbeddedResource Include="data\rfc4134\7.1.bin" /> - <EmbeddedResource Include="data\rfc4134\7.2.bin" /> - <EmbeddedResource Include="data\rfc4134\AliceDSSSignByCarlNoInherit.cer" /> - <EmbeddedResource Include="data\rfc4134\AlicePrivDSSSign.pri" /> - <EmbeddedResource Include="data\rfc4134\AlicePrivRSASign.pri" /> - <EmbeddedResource Include="data\rfc4134\AliceRSASignByCarl.cer" /> - <EmbeddedResource Include="data\rfc4134\BobPrivRSAEncrypt.pri" /> - <EmbeddedResource Include="data\rfc4134\BobRSASignByCarl.cer" /> - <EmbeddedResource Include="data\rfc4134\CarlDSSCRLEmpty.crl" /> - <EmbeddedResource Include="data\rfc4134\CarlDSSCRLForAll.crl" /> - <EmbeddedResource Include="data\rfc4134\CarlDSSCRLForCarl.crl" /> - <EmbeddedResource Include="data\rfc4134\CarlDSSSelf.cer" /> - <EmbeddedResource Include="data\rfc4134\CarlPrivDSSSign.pri" /> - <EmbeddedResource Include="data\rfc4134\CarlPrivRSASign.pri" /> - <EmbeddedResource Include="data\rfc4134\CarlRSACRLEmpty.crl" /> - <EmbeddedResource Include="data\rfc4134\CarlRSACRLForAll.crl" /> - <EmbeddedResource Include="data\rfc4134\CarlRSACRLForCarl.crl" /> - <EmbeddedResource Include="data\rfc4134\CarlRSASelf.cer" /> - <EmbeddedResource Include="data\rfc4134\DianeDSSSignByCarlInherit.cer" /> - <EmbeddedResource Include="data\rfc4134\DianePrivDSSSign.pri" /> - <EmbeddedResource Include="data\rfc4134\DianePrivRSASignEncrypt.pri" /> - <EmbeddedResource Include="data\rfc4134\DianeRSASignByCarl.cer" /> - <EmbeddedResource Include="data\rfc4134\ExContent.bin" /> - <EmbeddedResource Include="data\rfc4134\rfc4134.txt" /> - <EmbeddedResource Include="data\rsa3\self-testcase-A.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-A.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-B.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-B.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-C.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-C.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-D.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-D.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-E.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-E.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-F.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-F.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-G.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-G.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-H.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-H.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-I.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-I.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-J.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-J.pem" /> - <EmbeddedResource Include="data\rsa3\self-testcase-L.p12" /> - <EmbeddedResource Include="data\rsa3\self-testcase-L.pem" /> - <EmbeddedResource Include="data\rsa3\testcases.README" /> - <EmbeddedResource Include="data\scrypt\TestVectors.txt" /> - <EmbeddedResource Include="data\tls\README.txt" /> - <EmbeddedResource Include="data\tls\ca.tmpl" /> - <EmbeddedResource Include="data\tls\client.tmpl" /> - <EmbeddedResource Include="data\tls\server.tmpl" /> - <EmbeddedResource Include="data\tls\x509-ca-key.pem" /> - <EmbeddedResource Include="data\tls\x509-ca.pem" /> - <EmbeddedResource Include="data\tls\x509-client-dsa.pem" /> - <EmbeddedResource Include="data\tls\x509-client-ecdsa.pem" /> - <EmbeddedResource Include="data\tls\x509-client-key.pem" /> - <EmbeddedResource Include="data\tls\x509-client-key-dsa.pem" /> - <EmbeddedResource Include="data\tls\x509-client-key-ecdsa.pem" /> - <EmbeddedResource Include="data\tls\x509-client.pem" /> - <EmbeddedResource Include="data\tls\x509-server-dsa.pem" /> - <EmbeddedResource Include="data\tls\x509-server-ecdsa.pem" /> - <EmbeddedResource Include="data\tls\x509-server-key.pem" /> - <EmbeddedResource Include="data\tls\x509-server-key-dsa.pem" /> - <EmbeddedResource Include="data\tls\x509-server-key-ecdsa.pem" /> - <EmbeddedResource Include="data\tls\x509-server.pem" /> - <EmbeddedResource Include="data\tls\keystores\client_store.dsa" /> - <EmbeddedResource Include="data\tls\keystores\client_store.rsa" /> - <EmbeddedResource Include="data\tls\keystores\server_store.dsa" /> - <EmbeddedResource Include="data\tls\keystores\server_store.rsa" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/crypto/test/crypto.test.csproj b/crypto/test/crypto.test.csproj new file mode 100644
index 000000000..8446f71a9 --- /dev/null +++ b/crypto/test/crypto.test.csproj
@@ -0,0 +1,27 @@ +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <TargetFrameworks>netcoreapp2.0;netcoreapp1.1;net462</TargetFrameworks> + <DefineConstants>$(DefineConstants);LIB</DefineConstants> + <AssemblyOriginatorKeyFile>..\..\BouncyCastle.snk</AssemblyOriginatorKeyFile> + <SignAssembly>true</SignAssembly> + <EnableDefaultItems>false</EnableDefaultItems> + </PropertyGroup> + <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' "> + <DefineConstants>$(DefineConstants);PORTABLE</DefineConstants> + </PropertyGroup> + <ItemGroup> + <Compile Include="src\**\*.cs" Exclude="**\examples\**\*.cs" /> + <EmbeddedResource Include="data\**\*.*" Exclude="**\README.txt" /> + </ItemGroup> + <ItemGroup> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" /> + <PackageReference Include="NUnit" Version="3.7.1" /> + <PackageReference Include="NUnit3TestAdapter" Version="3.8.0" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\src\crypto.csproj" /> + </ItemGroup> + <ItemGroup> + <Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> + </ItemGroup> +</Project> \ No newline at end of file diff --git a/crypto/test/lib/nunit.core.dll b/crypto/test/lib/nunit.core.dll deleted file mode 100644
index 8d99c637d..000000000 --- a/crypto/test/lib/nunit.core.dll +++ /dev/null
Binary files differdiff --git a/crypto/test/lib/nunit.core.interfaces.dll b/crypto/test/lib/nunit.core.interfaces.dll deleted file mode 100644
index 70a76b21c..000000000 --- a/crypto/test/lib/nunit.core.interfaces.dll +++ /dev/null
Binary files differdiff --git a/crypto/test/lib/nunit.framework.dll b/crypto/test/lib/nunit.framework.dll deleted file mode 100644
index ba484ba8c..000000000 --- a/crypto/test/lib/nunit.framework.dll +++ /dev/null
Binary files differdiff --git a/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs b/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs
index ac4ff9809..f60961c8b 100644 --- a/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs +++ b/crypto/test/src/asn1/test/AdditionalInformationSyntaxUnitTest.cs
@@ -59,12 +59,13 @@ namespace Org.BouncyCastle.Asn1.Tests { checkMandatoryField("information", information, syntax.Information); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new AdditionalInformationSyntaxUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs b/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs
index 59464d212..e589b907b 100644 --- a/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs +++ b/crypto/test/src/asn1/test/AdmissionSyntaxUnitTest.cs
@@ -82,11 +82,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new AdmissionSyntaxUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/AdmissionsUnitTest.cs b/crypto/test/src/asn1/test/AdmissionsUnitTest.cs
index edefeb830..b5ef094dd 100644 --- a/crypto/test/src/asn1/test/AdmissionsUnitTest.cs +++ b/crypto/test/src/asn1/test/AdmissionsUnitTest.cs
@@ -72,12 +72,13 @@ namespace Org.BouncyCastle.Asn1.Tests checkMandatoryField("admissionAuthority", name, admissions.AdmissionAuthority); checkMandatoryField("namingAuthority", auth, admissions.NamingAuthority); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new AdmissionsUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/AllTests.cs b/crypto/test/src/asn1/test/AllTests.cs
index 981b5a4df..7076b8d5f 100644 --- a/crypto/test/src/asn1/test/AllTests.cs +++ b/crypto/test/src/asn1/test/AllTests.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Asn1.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/asn1/test/AttributeTableUnitTest.cs b/crypto/test/src/asn1/test/AttributeTableUnitTest.cs
index 5dcf349cc..2321ba8bc 100644 --- a/crypto/test/src/asn1/test/AttributeTableUnitTest.cs +++ b/crypto/test/src/asn1/test/AttributeTableUnitTest.cs
@@ -134,11 +134,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new AttributeTableUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/BiometricDataUnitTest.cs b/crypto/test/src/asn1/test/BiometricDataUnitTest.cs
index a542f71af..964689c52 100644 --- a/crypto/test/src/asn1/test/BiometricDataUnitTest.cs +++ b/crypto/test/src/asn1/test/BiometricDataUnitTest.cs
@@ -116,11 +116,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + #if !LIB + public static void MainOld( string[] args) { RunTest(new BiometricDataUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/BitStringTest.cs b/crypto/test/src/asn1/test/BitStringTest.cs
index 35b7811bc..5225bb3be 100644 --- a/crypto/test/src/asn1/test/BitStringTest.cs +++ b/crypto/test/src/asn1/test/BitStringTest.cs
@@ -159,11 +159,13 @@ namespace Org.BouncyCastle.Asn1.Tests get { return "BitString"; } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new BitStringTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/CMSTest.cs b/crypto/test/src/asn1/test/CMSTest.cs
index 1afb363af..f5977da71 100644 --- a/crypto/test/src/asn1/test/CMSTest.cs +++ b/crypto/test/src/asn1/test/CMSTest.cs
@@ -286,7 +286,8 @@ namespace Org.BouncyCastle.Asn1.Tests get { return "CMS"; } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { ITest test = new CmsTest(); @@ -294,6 +295,7 @@ namespace Org.BouncyCastle.Asn1.Tests Console.WriteLine(result); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/CertHashUnitTest.cs b/crypto/test/src/asn1/test/CertHashUnitTest.cs
index 1e271a9c0..9ac5805d3 100644 --- a/crypto/test/src/asn1/test/CertHashUnitTest.cs +++ b/crypto/test/src/asn1/test/CertHashUnitTest.cs
@@ -76,11 +76,13 @@ namespace Org.BouncyCastle.Asn1.Tests checkMandatoryField("certificateHash", digest, certHash.CertificateHash); } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new CertHashUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/CertificateTest.cs b/crypto/test/src/asn1/test/CertificateTest.cs
index 7fcb1fffa..e4effc4a6 100644 --- a/crypto/test/src/asn1/test/CertificateTest.cs +++ b/crypto/test/src/asn1/test/CertificateTest.cs
@@ -378,11 +378,13 @@ namespace Org.BouncyCastle.Asn1.Tests CheckAttributeCertificate(8, cert8); } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new CertificateTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs b/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs
index 20c2d18e3..2ecb3f440 100644 --- a/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs +++ b/crypto/test/src/asn1/test/CommitmentTypeIndicationUnitTest.cs
@@ -90,11 +90,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new CommitmentTypeIndicationUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs b/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs
index 192ac52f6..65997c971 100644 --- a/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs +++ b/crypto/test/src/asn1/test/CommitmentTypeQualifierUnitTest.cs
@@ -90,11 +90,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new CommitmentTypeQualifierUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/ContentHintsUnitTest.cs b/crypto/test/src/asn1/test/ContentHintsUnitTest.cs
index d7453c27e..8e953c203 100644 --- a/crypto/test/src/asn1/test/ContentHintsUnitTest.cs +++ b/crypto/test/src/asn1/test/ContentHintsUnitTest.cs
@@ -76,11 +76,13 @@ namespace Org.BouncyCastle.Asn1.Tests checkOptionalField("description", description, hints.ContentDescription); } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new ContentHintsUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/CscaMasterListTest.cs b/crypto/test/src/asn1/test/CscaMasterListTest.cs
index 814e98b2a..b3169ca87 100644 --- a/crypto/test/src/asn1/test/CscaMasterListTest.cs +++ b/crypto/test/src/asn1/test/CscaMasterListTest.cs
@@ -40,11 +40,13 @@ namespace Org.BouncyCastle.Asn1.Tests return Streams.ReadAll(SimpleTest.GetTestDataAsStream("asn1." + name)); } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new CscaMasterListTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs b/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs
index e505acd9d..2d3849a2a 100644 --- a/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs +++ b/crypto/test/src/asn1/test/DERApplicationSpecificTest.cs
@@ -128,11 +128,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new DerApplicationSpecificTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/DERUTF8StringTest.cs b/crypto/test/src/asn1/test/DERUTF8StringTest.cs
index be4dace79..b84f5b621 100644 --- a/crypto/test/src/asn1/test/DERUTF8StringTest.cs +++ b/crypto/test/src/asn1/test/DERUTF8StringTest.cs
@@ -93,7 +93,8 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { DerUtf8StringTest test = new DerUtf8StringTest(); @@ -101,6 +102,7 @@ namespace Org.BouncyCastle.Asn1.Tests Console.WriteLine(result); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs b/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs
index dcebf4670..9832dc0dd 100644 --- a/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs +++ b/crypto/test/src/asn1/test/DataGroupHashUnitTest.cs
@@ -89,11 +89,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new DataGroupHashUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs b/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs
index bd1fb5a9e..37c6fb519 100644 --- a/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs +++ b/crypto/test/src/asn1/test/DeclarationOfMajorityUnitTest.cs
@@ -80,11 +80,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new DeclarationOfMajorityUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs b/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs
index a84df59cc..34e5495cf 100644 --- a/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs +++ b/crypto/test/src/asn1/test/EncryptedPrivateKeyInfoTest.cs
@@ -132,7 +132,8 @@ namespace Org.BouncyCastle.Asn1.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { ITest test = new EncryptedPrivateKeyInfoTest(); @@ -140,6 +141,7 @@ namespace Org.BouncyCastle.Asn1.Tests Console.WriteLine(result); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs b/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs
index 91329fbd5..2495fe20b 100644 --- a/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs +++ b/crypto/test/src/asn1/test/EqualsAndHashCodeTest.cs
@@ -79,13 +79,13 @@ namespace Org.BouncyCastle.Asn1.Tests { get { return "EqualsAndHashCode"; } } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new EqualsAndHashCodeTest()); } - +#endif [Test] public void TestFunction() { diff --git a/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs b/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs
index 9aac777e1..60d0059ed 100644 --- a/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs +++ b/crypto/test/src/asn1/test/EssCertIDv2UnitTest.cs
@@ -28,12 +28,13 @@ namespace Org.BouncyCastle.Asn1.Tests EssCertIDv2.GetInstance(asn1Object); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new EssCertIDv2UnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/GeneralNameTest.cs b/crypto/test/src/asn1/test/GeneralNameTest.cs
index e9c3b5861..95e0a903e 100644 --- a/crypto/test/src/asn1/test/GeneralNameTest.cs +++ b/crypto/test/src/asn1/test/GeneralNameTest.cs
@@ -98,12 +98,13 @@ namespace Org.BouncyCastle.Asn1.Tests Fail("ipv6h failed"); } } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new GeneralNameTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/GeneralizedTimeTest.cs b/crypto/test/src/asn1/test/GeneralizedTimeTest.cs
index 51995e195..af968397f 100644 --- a/crypto/test/src/asn1/test/GeneralizedTimeTest.cs +++ b/crypto/test/src/asn1/test/GeneralizedTimeTest.cs
@@ -192,7 +192,7 @@ namespace Org.BouncyCastle.Asn1.Tests char sign = '+'; // Note: GetUtcOffset incorporates Daylight Savings offset - TimeSpan offset = TimeZone.CurrentTimeZone.GetUtcOffset(date); + TimeSpan offset = TimeZoneInfo.Local.GetUtcOffset(date); if (offset.CompareTo(TimeSpan.Zero) < 0) { sign = '-'; @@ -213,12 +213,13 @@ namespace Org.BouncyCastle.Asn1.Tests return time.ToString(); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new GeneralizedTimeTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/GenerationTest.cs b/crypto/test/src/asn1/test/GenerationTest.cs
index 862e66d22..840ae4707 100644 --- a/crypto/test/src/asn1/test/GenerationTest.cs +++ b/crypto/test/src/asn1/test/GenerationTest.cs
@@ -307,12 +307,13 @@ namespace Org.BouncyCastle.Asn1.Tests { get { return "Generation"; } } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new GenerationTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/InputStreamTest.cs b/crypto/test/src/asn1/test/InputStreamTest.cs
index 1d92759e0..9734c9805 100644 --- a/crypto/test/src/asn1/test/InputStreamTest.cs +++ b/crypto/test/src/asn1/test/InputStreamTest.cs
@@ -67,12 +67,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new InputStreamTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs b/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs
index bb6076a93..274ae25ce 100644 --- a/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs +++ b/crypto/test/src/asn1/test/Iso4217CurrencyCodeUnitTest.cs
@@ -139,11 +139,13 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new Iso4217CurrencyCodeUnitTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs b/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs
index b5f5c88bb..5158f0610 100644 --- a/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs +++ b/crypto/test/src/asn1/test/IssuingDistributionPointTest.cs
@@ -115,13 +115,13 @@ namespace Org.BouncyCastle.Asn1.Tests return o1.Equals(o2); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new IssuingDistributionPointUnitTest()); } - +#endif [Test] public void TestFunction() { diff --git a/crypto/test/src/asn1/test/KeyUsageTest.cs b/crypto/test/src/asn1/test/KeyUsageTest.cs
index d7ed3655d..279446928 100644 --- a/crypto/test/src/asn1/test/KeyUsageTest.cs +++ b/crypto/test/src/asn1/test/KeyUsageTest.cs
@@ -31,13 +31,13 @@ namespace Org.BouncyCastle.Asn1.Tests BitStringConstantTester.testFlagValueCorrect(7, KeyUsage.EncipherOnly); BitStringConstantTester.testFlagValueCorrect(8, KeyUsage.DecipherOnly); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new KeyUsageTest()); } - +#endif [Test] public void TestFunction() { diff --git a/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs b/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs
index 914eda0b8..fa4c242d3 100644 --- a/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs +++ b/crypto/test/src/asn1/test/LDSSecurityObjectUnitTest.cs
@@ -191,13 +191,13 @@ namespace Org.BouncyCastle.Asn1.Tests Fail("version info found when none expected."); } } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new LDSSecurityObjectUnitTest()); } - +#endif [Test] public void TestFunction() { diff --git a/crypto/test/src/asn1/test/MiscTest.cs b/crypto/test/src/asn1/test/MiscTest.cs
index 6b8411996..553a72ef4 100644 --- a/crypto/test/src/asn1/test/MiscTest.cs +++ b/crypto/test/src/asn1/test/MiscTest.cs
@@ -130,12 +130,13 @@ namespace Org.BouncyCastle.Asn1.Tests { get { return "Misc"; } } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new MiscTest()); } +#endif [Test] public void TestFunction() diff --git a/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs b/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs
index cdeb2eca5..5af508509 100644 --- a/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs +++ b/crypto/test/src/asn1/test/MonetaryLimitUnitTest.cs
@@ -75,13 +75,13 @@ namespace Org.BouncyCastle.Asn1.Tests checkMandatoryField("amount", amount, limit.Amount.IntValue); checkMandatoryField("exponent", exponent, limit.Exponent.IntValue); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { RunTest(new MonetaryLimitUnitTest()); } - +#endif [Test] public void TestFunction() { diff --git a/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs b/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs
index c75d74505..dff75f2cd 100644 --- a/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs +++ b/crypto/test/src/asn1/test/MonetaryValueUnitTest.cs
@@ -82,7 +82,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new MonetaryValueUnitTest()); diff --git a/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs b/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs
index 45f66613b..f308c3f42 100644 --- a/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs +++ b/crypto/test/src/asn1/test/NameOrPseudonymUnitTest.cs
@@ -97,7 +97,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NameOrPseudonymUnitTest()); diff --git a/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs b/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs
index 787b2c32d..31a1a539b 100644 --- a/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs +++ b/crypto/test/src/asn1/test/NamingAuthorityUnitTest.cs
@@ -89,7 +89,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkOptionalField("namingAuthorityText", namingAuthorityText, auth.NamingAuthorityText); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NamingAuthorityUnitTest()); diff --git a/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs b/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs
index 8db5d990c..27babc2e3 100644 --- a/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs +++ b/crypto/test/src/asn1/test/NetscapeCertTypeTest.cs
@@ -28,7 +28,7 @@ namespace Org.BouncyCastle.Asn1.Tests BitStringConstantTester.testFlagValueCorrect(7, NetscapeCertType.ObjectSigningCA); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NetscapeCertTypeTest()); diff --git a/crypto/test/src/asn1/test/OCSPTest.cs b/crypto/test/src/asn1/test/OCSPTest.cs
index 13f59d3d1..6fde822d3 100644 --- a/crypto/test/src/asn1/test/OCSPTest.cs +++ b/crypto/test/src/asn1/test/OCSPTest.cs
@@ -163,7 +163,7 @@ namespace Org.BouncyCastle.Asn1.Tests get { return "Ocsp"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new OcspTest(); diff --git a/crypto/test/src/asn1/test/OIDTest.cs b/crypto/test/src/asn1/test/OIDTest.cs
index b0782db04..2007e4f25 100644 --- a/crypto/test/src/asn1/test/OIDTest.cs +++ b/crypto/test/src/asn1/test/OIDTest.cs
@@ -128,8 +128,8 @@ namespace Org.BouncyCastle.Asn1.Tests onCheck("1.1", "1.1.1", true); onCheck("1.1", "1.1.2", true); } - - public static void Main( +#if !LIB + public static void MainOld( string[] args) { ITest test = new OidTest(); @@ -137,7 +137,7 @@ namespace Org.BouncyCastle.Asn1.Tests Console.WriteLine(result); } - +#endif [Test] public void TestFunction() { diff --git a/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs b/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs
index a09c18e8a..6af7d6f09 100644 --- a/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs +++ b/crypto/test/src/asn1/test/OtherCertIDUnitTest.cs
@@ -83,7 +83,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkOptionalField("issuerSerial", issuerSerial, certID.IssuerSerial); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new OtherCertIDUnitTest()); diff --git a/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs b/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs
index 4410d8e4c..4906cf043 100644 --- a/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs +++ b/crypto/test/src/asn1/test/OtherSigningCertificateUnitTest.cs
@@ -77,7 +77,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkMandatoryField("GetCerts()[0]", otherCertID, otherCert.GetCerts()[0]); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new OtherSigningCertificateUnitTest()); diff --git a/crypto/test/src/asn1/test/PKCS10Test.cs b/crypto/test/src/asn1/test/PKCS10Test.cs
index 28736b816..8a973eac1 100644 --- a/crypto/test/src/asn1/test/PKCS10Test.cs +++ b/crypto/test/src/asn1/test/PKCS10Test.cs
@@ -75,7 +75,7 @@ namespace Org.BouncyCastle.Asn1.Tests return BasicPkcs10Test("Universal CR", req2); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Pkcs10Test(); diff --git a/crypto/test/src/asn1/test/PKCS12Test.cs b/crypto/test/src/asn1/test/PKCS12Test.cs
index c20fa8cc6..8ebb27030 100644 --- a/crypto/test/src/asn1/test/PKCS12Test.cs +++ b/crypto/test/src/asn1/test/PKCS12Test.cs
@@ -193,7 +193,7 @@ namespace Org.BouncyCastle.Asn1.Tests get { return "Pkcs12"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Pkcs12Test()); diff --git a/crypto/test/src/asn1/test/PKIFailureInfoTest.cs b/crypto/test/src/asn1/test/PKIFailureInfoTest.cs
index 7d51dbb5f..c40227352 100644 --- a/crypto/test/src/asn1/test/PKIFailureInfoTest.cs +++ b/crypto/test/src/asn1/test/PKIFailureInfoTest.cs
@@ -72,7 +72,7 @@ namespace Org.BouncyCastle.Asn1.Tests DoTestEncoding(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PkiFailureInfoTest()); diff --git a/crypto/test/src/asn1/test/ParsingTest.cs b/crypto/test/src/asn1/test/ParsingTest.cs
index bb219e2fc..324807262 100644 --- a/crypto/test/src/asn1/test/ParsingTest.cs +++ b/crypto/test/src/asn1/test/ParsingTest.cs
@@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ParsingTest()); diff --git a/crypto/test/src/asn1/test/PersonalDataUnitTest.cs b/crypto/test/src/asn1/test/PersonalDataUnitTest.cs
index f92e619cf..625a382d4 100644 --- a/crypto/test/src/asn1/test/PersonalDataUnitTest.cs +++ b/crypto/test/src/asn1/test/PersonalDataUnitTest.cs
@@ -110,7 +110,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkOptionalField("postalAddress", postalAddress, data.PostalAddress); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PersonalDataUnitTest()); diff --git a/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs b/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs
index 97d0e3eee..0f7c290f9 100644 --- a/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs +++ b/crypto/test/src/asn1/test/ProcurationSyntaxUnitTest.cs
@@ -94,7 +94,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkOptionalField("certRef", certRef, procuration.CertRef); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ProcurationSyntaxUnitTest()); diff --git a/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs b/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs
index 6af2658ef..0450a21a7 100644 --- a/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs +++ b/crypto/test/src/asn1/test/ProfessionInfoUnitTest.cs
@@ -104,7 +104,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkOptionalField("addProfessionInfo", addProfInfo, profInfo.AddProfessionInfo); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ProfessionInfoUnitTest()); diff --git a/crypto/test/src/asn1/test/QCStatementUnitTest.cs b/crypto/test/src/asn1/test/QCStatementUnitTest.cs
index 8d8ec9ec7..347186f8a 100644 --- a/crypto/test/src/asn1/test/QCStatementUnitTest.cs +++ b/crypto/test/src/asn1/test/QCStatementUnitTest.cs
@@ -91,7 +91,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new QCStatementUnitTest()); diff --git a/crypto/test/src/asn1/test/ReasonFlagsTest.cs b/crypto/test/src/asn1/test/ReasonFlagsTest.cs
index ef404b3e1..66b5c4cc1 100644 --- a/crypto/test/src/asn1/test/ReasonFlagsTest.cs +++ b/crypto/test/src/asn1/test/ReasonFlagsTest.cs
@@ -29,7 +29,7 @@ namespace Org.BouncyCastle.Asn1.Tests BitStringConstantTester.testFlagValueCorrect(8, ReasonFlags.AACompromise); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ReasonFlagsTest()); diff --git a/crypto/test/src/asn1/test/RegressionTest.cs b/crypto/test/src/asn1/test/RegressionTest.cs
index 873ab4396..f78c0dd72 100644 --- a/crypto/test/src/asn1/test/RegressionTest.cs +++ b/crypto/test/src/asn1/test/RegressionTest.cs
@@ -72,7 +72,7 @@ namespace Org.BouncyCastle.Asn1.Tests new X9Test(), }; - public static void Main( + public static void MainOld( string[] args) { for (int i = 0; i != tests.Length; i++) diff --git a/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs b/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs
index 767504173..433b3fe6b 100644 --- a/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs +++ b/crypto/test/src/asn1/test/RequestedCertificateUnitTest.cs
@@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new RequestedCertificateUnitTest()); diff --git a/crypto/test/src/asn1/test/RestrictionUnitTest.cs b/crypto/test/src/asn1/test/RestrictionUnitTest.cs
index 5dd6438cb..b240418a4 100644 --- a/crypto/test/src/asn1/test/RestrictionUnitTest.cs +++ b/crypto/test/src/asn1/test/RestrictionUnitTest.cs
@@ -61,7 +61,7 @@ namespace Org.BouncyCastle.Asn1.Tests checkMandatoryField("restriction", res, restriction.RestrictionString); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new RestrictionUnitTest()); diff --git a/crypto/test/src/asn1/test/SMIMETest.cs b/crypto/test/src/asn1/test/SMIMETest.cs
index adb90e093..df76c507a 100644 --- a/crypto/test/src/asn1/test/SMIMETest.cs +++ b/crypto/test/src/asn1/test/SMIMETest.cs
@@ -70,7 +70,7 @@ namespace Org.BouncyCastle.Asn1.Tests get { return "SMIME"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new SmimeTest(); diff --git a/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs b/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs
index 8f1f85f19..0bfa49725 100644 --- a/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs +++ b/crypto/test/src/asn1/test/SemanticsInformationUnitTest.cs
@@ -121,7 +121,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SemanticsInformationUnitTest()); diff --git a/crypto/test/src/asn1/test/SetTest.cs b/crypto/test/src/asn1/test/SetTest.cs
index 57c46603d..c33d39989 100644 --- a/crypto/test/src/asn1/test/SetTest.cs +++ b/crypto/test/src/asn1/test/SetTest.cs
@@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests s = new DerSet(v); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SetTest()); diff --git a/crypto/test/src/asn1/test/SignerLocationUnitTest.cs b/crypto/test/src/asn1/test/SignerLocationUnitTest.cs
index 650e2fcfd..e4666740f 100644 --- a/crypto/test/src/asn1/test/SignerLocationUnitTest.cs +++ b/crypto/test/src/asn1/test/SignerLocationUnitTest.cs
@@ -178,7 +178,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SignerLocationUnitTest()); diff --git a/crypto/test/src/asn1/test/StringTest.cs b/crypto/test/src/asn1/test/StringTest.cs
index acfd380b2..52f61dc86 100644 --- a/crypto/test/src/asn1/test/StringTest.cs +++ b/crypto/test/src/asn1/test/StringTest.cs
@@ -88,7 +88,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new StringTest()); diff --git a/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs b/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs
index 127c47a3a..84273dfc2 100644 --- a/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs +++ b/crypto/test/src/asn1/test/SubjectKeyIdentifierTest.cs
@@ -44,7 +44,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SubjectKeyIdentifierTest()); diff --git a/crypto/test/src/asn1/test/TagTest.cs b/crypto/test/src/asn1/test/TagTest.cs
index 80ca2c0ea..6ede1b40b 100644 --- a/crypto/test/src/asn1/test/TagTest.cs +++ b/crypto/test/src/asn1/test/TagTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new TagTest()); diff --git a/crypto/test/src/asn1/test/TargetInformationTest.cs b/crypto/test/src/asn1/test/TargetInformationTest.cs
index 7fa04cd01..022743aa8 100644 --- a/crypto/test/src/asn1/test/TargetInformationTest.cs +++ b/crypto/test/src/asn1/test/TargetInformationTest.cs
@@ -41,7 +41,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new TargetInformationTest()); diff --git a/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs b/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs
index a59415c31..eb221ea20 100644 --- a/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs +++ b/crypto/test/src/asn1/test/TypeOfBiometricDataUnitTest.cs
@@ -135,7 +135,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new TypeOfBiometricDataUnitTest()); diff --git a/crypto/test/src/asn1/test/UTCTimeTest.cs b/crypto/test/src/asn1/test/UTCTimeTest.cs
index 07abbc911..a4a1c9941 100644 --- a/crypto/test/src/asn1/test/UTCTimeTest.cs +++ b/crypto/test/src/asn1/test/UTCTimeTest.cs
@@ -105,7 +105,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new UtcTimeTest()); diff --git a/crypto/test/src/asn1/test/X509ExtensionsTest.cs b/crypto/test/src/asn1/test/X509ExtensionsTest.cs
index f1efd3a9b..468296c7f 100644 --- a/crypto/test/src/asn1/test/X509ExtensionsTest.cs +++ b/crypto/test/src/asn1/test/X509ExtensionsTest.cs
@@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new X509ExtensionsTest()); diff --git a/crypto/test/src/asn1/test/X509NameTest.cs b/crypto/test/src/asn1/test/X509NameTest.cs
index 9a564f72f..e8eda6851 100644 --- a/crypto/test/src/asn1/test/X509NameTest.cs +++ b/crypto/test/src/asn1/test/X509NameTest.cs
@@ -654,7 +654,7 @@ namespace Org.BouncyCastle.Asn1.Tests return true; } - public static void Main( + public static void MainOld( string[] args) { ITest test = new X509NameTest(); diff --git a/crypto/test/src/asn1/test/X9Test.cs b/crypto/test/src/asn1/test/X9Test.cs
index db2541f7c..f804a0adc 100644 --- a/crypto/test/src/asn1/test/X9Test.cs +++ b/crypto/test/src/asn1/test/X9Test.cs
@@ -155,7 +155,7 @@ namespace Org.BouncyCastle.Asn1.Tests get { return "X9"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new X9Test()); diff --git a/crypto/test/src/cms/test/AllTests.cs b/crypto/test/src/cms/test/AllTests.cs
index b47374914..e11b79ebe 100644 --- a/crypto/test/src/cms/test/AllTests.cs +++ b/crypto/test/src/cms/test/AllTests.cs
@@ -10,7 +10,7 @@ namespace Org.BouncyCastle.Cms.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/cms/test/AuthenticatedDataTest.cs b/crypto/test/src/cms/test/AuthenticatedDataTest.cs
index 0ad34a95b..f53af600f 100644 --- a/crypto/test/src/cms/test/AuthenticatedDataTest.cs +++ b/crypto/test/src/cms/test/AuthenticatedDataTest.cs
@@ -124,7 +124,7 @@ namespace Org.BouncyCastle.Cms.Tests // super(name); // } // -// public static void main(string args[]) +// public static void MainOld(string args[]) // { // junit.textui.TestRunner.run(AuthenticatedDataTest.class); // } diff --git a/crypto/test/src/cms/test/CMSTestUtil.cs b/crypto/test/src/cms/test/CMSTestUtil.cs
index 69f7c2983..ca94959d7 100644 --- a/crypto/test/src/cms/test/CMSTestUtil.cs +++ b/crypto/test/src/cms/test/CMSTestUtil.cs
@@ -207,11 +207,11 @@ namespace Org.BouncyCastle.Cms.Tests { if (i + 64 < data.Length) { - buf.Append(Encoding.Default.GetString(data, i, 64)); + buf.Append(Encoding.ASCII.GetString(data, i, 64)); } else { - buf.Append(Encoding.Default.GetString(data, i, data.Length - i)); + buf.Append(Encoding.ASCII.GetString(data, i, data.Length - i)); } buf.Append('\n'); } diff --git a/crypto/test/src/cms/test/EnvelopedDataStreamTest.cs b/crypto/test/src/cms/test/EnvelopedDataStreamTest.cs
index 8512f6622..39776e852 100644 --- a/crypto/test/src/cms/test/EnvelopedDataStreamTest.cs +++ b/crypto/test/src/cms/test/EnvelopedDataStreamTest.cs
@@ -361,7 +361,7 @@ namespace Org.BouncyCastle.Cms.Tests [Test] public void TestKeyTransAes128() { - byte[] data = Encoding.Default.GetBytes("WallaWallaWashington"); + byte[] data = Encoding.ASCII.GetBytes("WallaWallaWashington"); CmsEnvelopedDataStreamGenerator edGen = new CmsEnvelopedDataStreamGenerator(); @@ -399,7 +399,7 @@ namespace Org.BouncyCastle.Cms.Tests [Test] public void TestAesKek() { - byte[] data = Encoding.Default.GetBytes("WallaWallaWashington"); + byte[] data = Encoding.ASCII.GetBytes("WallaWallaWashington"); KeyParameter kek = CmsTestUtil.MakeAes192Key(); CmsEnvelopedDataStreamGenerator edGen = new CmsEnvelopedDataStreamGenerator(); @@ -440,7 +440,7 @@ namespace Org.BouncyCastle.Cms.Tests [Test] public void TestTwoAesKek() { - byte[] data = Encoding.Default.GetBytes("WallaWallaWashington"); + byte[] data = Encoding.ASCII.GetBytes("WallaWallaWashington"); KeyParameter kek1 = CmsTestUtil.MakeAes192Key(); KeyParameter kek2 = CmsTestUtil.MakeAes192Key(); diff --git a/crypto/test/src/cms/test/EnvelopedDataTest.cs b/crypto/test/src/cms/test/EnvelopedDataTest.cs
index be588ef42..375c9a54b 100644 --- a/crypto/test/src/cms/test/EnvelopedDataTest.cs +++ b/crypto/test/src/cms/test/EnvelopedDataTest.cs
@@ -1,5 +1,6 @@ using System; using System.Collections; +using System.Reflection; using System.Text; using NUnit.Framework; @@ -401,7 +402,7 @@ namespace Org.BouncyCastle.Cms.Tests if (asn1Params != null) { - Assert.IsTrue(asn1Params.IsInstanceOfType(ed.EncryptionAlgorithmID.Parameters)); + Assert.IsTrue(asn1Params.GetTypeInfo().IsInstanceOfType(ed.EncryptionAlgorithmID.Parameters)); } ArrayList c = new ArrayList(recipients.GetRecipients()); diff --git a/crypto/test/src/crypto/agreement/test/AllTests.cs b/crypto/test/src/crypto/agreement/test/AllTests.cs
index 66853b285..f37721d23 100644 --- a/crypto/test/src/crypto/agreement/test/AllTests.cs +++ b/crypto/test/src/crypto/agreement/test/AllTests.cs
@@ -11,7 +11,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Tests [TestFixture] public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/crypto/agreement/test/JPakeParticipantTest.cs b/crypto/test/src/crypto/agreement/test/JPakeParticipantTest.cs
index c84264aa5..e4be1d836 100644 --- a/crypto/test/src/crypto/agreement/test/JPakeParticipantTest.cs +++ b/crypto/test/src/crypto/agreement/test/JPakeParticipantTest.cs
@@ -29,7 +29,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Tests get { return "JPakeParticipant"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new JPakeParticipantTest()); diff --git a/crypto/test/src/crypto/agreement/test/JPakePrimeOrderGroupTest.cs b/crypto/test/src/crypto/agreement/test/JPakePrimeOrderGroupTest.cs
index 0f089f93c..86e42f34a 100644 --- a/crypto/test/src/crypto/agreement/test/JPakePrimeOrderGroupTest.cs +++ b/crypto/test/src/crypto/agreement/test/JPakePrimeOrderGroupTest.cs
@@ -22,7 +22,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Tests get { return "JPakePrimeOrderGroup"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new JPakePrimeOrderGroupTest()); diff --git a/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs b/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs
index 04a52cc06..eca1adfd8 100644 --- a/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs +++ b/crypto/test/src/crypto/agreement/test/JPakeUtilitiesTest.cs
@@ -32,7 +32,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Tests get { return "JPakeUtilities"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new JPakeUtilitiesTest()); diff --git a/crypto/test/src/crypto/io/test/AllTests.cs b/crypto/test/src/crypto/io/test/AllTests.cs
index 2634b4ab1..c87c77234 100644 --- a/crypto/test/src/crypto/io/test/AllTests.cs +++ b/crypto/test/src/crypto/io/test/AllTests.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Crypto.IO.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs b/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs
index 4dc09f4e8..e7e03b888 100644 --- a/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs +++ b/crypto/test/src/crypto/prng/test/CtrDrbgTest.cs
@@ -23,7 +23,7 @@ namespace Org.BouncyCastle.Crypto.Prng.Test get { return "CTRDRBGTest"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new CtrDrbgTest()); } diff --git a/crypto/test/src/crypto/prng/test/HMacDrbgTest.cs b/crypto/test/src/crypto/prng/test/HMacDrbgTest.cs
index a5ca30836..79a1f62f6 100644 --- a/crypto/test/src/crypto/prng/test/HMacDrbgTest.cs +++ b/crypto/test/src/crypto/prng/test/HMacDrbgTest.cs
@@ -22,7 +22,7 @@ namespace Org.BouncyCastle.Crypto.Prng.Test get { return "HMacDRBG"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new HMacDrbgTest()); } diff --git a/crypto/test/src/crypto/prng/test/HashDrbgTest.cs b/crypto/test/src/crypto/prng/test/HashDrbgTest.cs
index 892ca74da..f50cf3767 100644 --- a/crypto/test/src/crypto/prng/test/HashDrbgTest.cs +++ b/crypto/test/src/crypto/prng/test/HashDrbgTest.cs
@@ -21,7 +21,7 @@ namespace Org.BouncyCastle.Crypto.Prng.Test get { return "HashDRBG"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new HashDrbgTest()); } diff --git a/crypto/test/src/crypto/prng/test/X931Test.cs b/crypto/test/src/crypto/prng/test/X931Test.cs
index 1132ea34a..38e129b32 100644 --- a/crypto/test/src/crypto/prng/test/X931Test.cs +++ b/crypto/test/src/crypto/prng/test/X931Test.cs
@@ -23,7 +23,7 @@ namespace Org.BouncyCastle.Crypto.Prng.Test get { return "X931"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new X931Test()); } diff --git a/crypto/test/src/crypto/test/AESFastTest.cs b/crypto/test/src/crypto/test/AESFastTest.cs
index 5513a0e78..45e9c27ef 100644 --- a/crypto/test/src/crypto/test/AESFastTest.cs +++ b/crypto/test/src/crypto/test/AESFastTest.cs
@@ -148,7 +148,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { AesFastTest test = new AesFastTest(); diff --git a/crypto/test/src/crypto/test/AESLightTest.cs b/crypto/test/src/crypto/test/AESLightTest.cs
index 0b5777ba1..8e5af07b0 100644 --- a/crypto/test/src/crypto/test/AESLightTest.cs +++ b/crypto/test/src/crypto/test/AESLightTest.cs
@@ -148,7 +148,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { AesLightTest test = new AesLightTest(); diff --git a/crypto/test/src/crypto/test/AESTest.cs b/crypto/test/src/crypto/test/AESTest.cs
index 7b8fc34cf..03d7af7b8 100644 --- a/crypto/test/src/crypto/test/AESTest.cs +++ b/crypto/test/src/crypto/test/AESTest.cs
@@ -158,7 +158,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { AesTest test = new AesTest(); diff --git a/crypto/test/src/crypto/test/AESWrapTest.cs b/crypto/test/src/crypto/test/AESWrapTest.cs
index 11b46098e..bb47a7af7 100644 --- a/crypto/test/src/crypto/test/AESWrapTest.cs +++ b/crypto/test/src/crypto/test/AESWrapTest.cs
@@ -194,7 +194,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { AesWrapTest test = new AesWrapTest(); diff --git a/crypto/test/src/crypto/test/AllTests.cs b/crypto/test/src/crypto/test/AllTests.cs
index e7035a663..deb29ed72 100644 --- a/crypto/test/src/crypto/test/AllTests.cs +++ b/crypto/test/src/crypto/test/AllTests.cs
@@ -13,7 +13,7 @@ namespace Org.BouncyCastle.Crypto.Tests public class AllTests { #if !LIB - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } @@ -31,7 +31,7 @@ namespace Org.BouncyCastle.Crypto.Tests } #endif - [Test] + [Test] public void TestCrypto() { foreach (Org.BouncyCastle.Utilities.Test.ITest test in RegressionTest.tests) diff --git a/crypto/test/src/crypto/test/BCryptTest.cs b/crypto/test/src/crypto/test/BCryptTest.cs
index 2d9771d17..1d71f62af 100644 --- a/crypto/test/src/crypto/test/BCryptTest.cs +++ b/crypto/test/src/crypto/test/BCryptTest.cs
@@ -145,7 +145,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new BCryptTest()); } diff --git a/crypto/test/src/crypto/test/BlowfishTest.cs b/crypto/test/src/crypto/test/BlowfishTest.cs
index 780dd3abd..3f5e79f6f 100644 --- a/crypto/test/src/crypto/test/BlowfishTest.cs +++ b/crypto/test/src/crypto/test/BlowfishTest.cs
@@ -43,7 +43,7 @@ namespace Org.BouncyCastle.Crypto.Tests Assert.AreEqual(Name + ": Okay", resultText); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new BlowfishTest(); diff --git a/crypto/test/src/crypto/test/CAST6Test.cs b/crypto/test/src/crypto/test/CAST6Test.cs
index 7517b6737..8e2a3fa93 100644 --- a/crypto/test/src/crypto/test/CAST6Test.cs +++ b/crypto/test/src/crypto/test/CAST6Test.cs
@@ -39,7 +39,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Cast6Test(); diff --git a/crypto/test/src/crypto/test/CCMTest.cs b/crypto/test/src/crypto/test/CCMTest.cs
index 8c46e11e7..5cc9bc1b6 100644 --- a/crypto/test/src/crypto/test/CCMTest.cs +++ b/crypto/test/src/crypto/test/CCMTest.cs
@@ -302,7 +302,7 @@ namespace Org.BouncyCastle.Crypto.Tests Assert.AreEqual(Name + ": Okay", resultText); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CcmTest()); diff --git a/crypto/test/src/crypto/test/CMacTest.cs b/crypto/test/src/crypto/test/CMacTest.cs
index 23ae7cb88..1e4154e77 100644 --- a/crypto/test/src/crypto/test/CMacTest.cs +++ b/crypto/test/src/crypto/test/CMacTest.cs
@@ -285,7 +285,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "CMac"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CMacTest()); diff --git a/crypto/test/src/crypto/test/CTSTest.cs b/crypto/test/src/crypto/test/CTSTest.cs
index 9d001bc68..90c9b2072 100644 --- a/crypto/test/src/crypto/test/CTSTest.cs +++ b/crypto/test/src/crypto/test/CTSTest.cs
@@ -163,7 +163,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { CTSTest test = new CTSTest(); diff --git a/crypto/test/src/crypto/test/CamelliaLightTest.cs b/crypto/test/src/crypto/test/CamelliaLightTest.cs
index 2247178f2..2d9c74fc5 100644 --- a/crypto/test/src/crypto/test/CamelliaLightTest.cs +++ b/crypto/test/src/crypto/test/CamelliaLightTest.cs
@@ -71,7 +71,7 @@ namespace Org.BouncyCastle.Crypto.Tests Assert.AreEqual(Name + ": Okay", resultText); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CamelliaLightTest()); diff --git a/crypto/test/src/crypto/test/CamelliaTest.cs b/crypto/test/src/crypto/test/CamelliaTest.cs
index a134546b7..f78fc228d 100644 --- a/crypto/test/src/crypto/test/CamelliaTest.cs +++ b/crypto/test/src/crypto/test/CamelliaTest.cs
@@ -71,7 +71,7 @@ namespace Org.BouncyCastle.Crypto.Tests Assert.AreEqual(Name + ": Okay", resultText); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CamelliaTest()); diff --git a/crypto/test/src/crypto/test/Cast5Test.cs b/crypto/test/src/crypto/test/Cast5Test.cs
index ea2e0c540..bec1071f6 100644 --- a/crypto/test/src/crypto/test/Cast5Test.cs +++ b/crypto/test/src/crypto/test/Cast5Test.cs
@@ -29,7 +29,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Cast5Test(); diff --git a/crypto/test/src/crypto/test/ChaChaTest.cs b/crypto/test/src/crypto/test/ChaChaTest.cs
index 0b394c91e..187e1cd1e 100644 --- a/crypto/test/src/crypto/test/ChaChaTest.cs +++ b/crypto/test/src/crypto/test/ChaChaTest.cs
@@ -302,7 +302,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ChaChaTest()); diff --git a/crypto/test/src/crypto/test/DESTest.cs b/crypto/test/src/crypto/test/DESTest.cs
index cf1022eae..5a78adc94 100644 --- a/crypto/test/src/crypto/test/DESTest.cs +++ b/crypto/test/src/crypto/test/DESTest.cs
@@ -197,7 +197,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "DES"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DesTest()); diff --git a/crypto/test/src/crypto/test/DESedeTest.cs b/crypto/test/src/crypto/test/DESedeTest.cs
index aa61844f2..8bedf4ff8 100644 --- a/crypto/test/src/crypto/test/DESedeTest.cs +++ b/crypto/test/src/crypto/test/DESedeTest.cs
@@ -170,7 +170,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "DESede"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DesEdeTest()); diff --git a/crypto/test/src/crypto/test/DHKEKGeneratorTest.cs b/crypto/test/src/crypto/test/DHKEKGeneratorTest.cs
index eee408f97..967fcaf52 100644 --- a/crypto/test/src/crypto/test/DHKEKGeneratorTest.cs +++ b/crypto/test/src/crypto/test/DHKEKGeneratorTest.cs
@@ -62,7 +62,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "DHKekGenerator"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DHKekGeneratorTest()); diff --git a/crypto/test/src/crypto/test/DHTest.cs b/crypto/test/src/crypto/test/DHTest.cs
index b460f41a5..54bdd3147 100644 --- a/crypto/test/src/crypto/test/DHTest.cs +++ b/crypto/test/src/crypto/test/DHTest.cs
@@ -383,7 +383,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new DHTest(); diff --git a/crypto/test/src/crypto/test/DSATest.cs b/crypto/test/src/crypto/test/DSATest.cs
index 0e6367150..e679bd971 100644 --- a/crypto/test/src/crypto/test/DSATest.cs +++ b/crypto/test/src/crypto/test/DSATest.cs
@@ -574,7 +574,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DsaTest()); diff --git a/crypto/test/src/crypto/test/DSTU7564Test.cs b/crypto/test/src/crypto/test/DSTU7564Test.cs
index 805d3c8ab..c89962653 100644 --- a/crypto/test/src/crypto/test/DSTU7564Test.cs +++ b/crypto/test/src/crypto/test/DSTU7564Test.cs
@@ -614,7 +614,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Dstu7564Digest((Dstu7564Digest)digest); } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new Dstu7564Test()); } diff --git a/crypto/test/src/crypto/test/DSTU7624Test.cs b/crypto/test/src/crypto/test/DSTU7624Test.cs
index 234474db6..1f8dc8782 100644 --- a/crypto/test/src/crypto/test/DSTU7624Test.cs +++ b/crypto/test/src/crypto/test/DSTU7624Test.cs
@@ -723,7 +723,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Dstu7624"; } } - public static void Main( + public static void MainOld( string[] args) { Dstu7624Test test = new Dstu7624Test(); diff --git a/crypto/test/src/crypto/test/DeterministicDSATest.cs b/crypto/test/src/crypto/test/DeterministicDSATest.cs
index 914a770bd..63773e69a 100644 --- a/crypto/test/src/crypto/test/DeterministicDSATest.cs +++ b/crypto/test/src/crypto/test/DeterministicDSATest.cs
@@ -494,7 +494,7 @@ namespace Org.BouncyCastle.Crypto.Tests TestECHMacDeterministic(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DeterministicDsaTest()); diff --git a/crypto/test/src/crypto/test/DigestRandomNumberTest.cs b/crypto/test/src/crypto/test/DigestRandomNumberTest.cs
index cee2e354e..1161e2bc5 100644 --- a/crypto/test/src/crypto/test/DigestRandomNumberTest.cs +++ b/crypto/test/src/crypto/test/DigestRandomNumberTest.cs
@@ -154,7 +154,7 @@ namespace Org.BouncyCastle.Crypto.Tests Assert.AreEqual(Name + ": Okay", resultText); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DigestRandomNumberTest()); diff --git a/crypto/test/src/crypto/test/EAXTest.cs b/crypto/test/src/crypto/test/EAXTest.cs
index 838f26a1b..93c9f45b0 100644 --- a/crypto/test/src/crypto/test/EAXTest.cs +++ b/crypto/test/src/crypto/test/EAXTest.cs
@@ -335,7 +335,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new EaxTest()); diff --git a/crypto/test/src/crypto/test/ECDHKEKGeneratorTest.cs b/crypto/test/src/crypto/test/ECDHKEKGeneratorTest.cs
index 250b2ca22..08db81723 100644 --- a/crypto/test/src/crypto/test/ECDHKEKGeneratorTest.cs +++ b/crypto/test/src/crypto/test/ECDHKEKGeneratorTest.cs
@@ -63,7 +63,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "ECDHKekGenerator"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ECDHKekGeneratorTest()); diff --git a/crypto/test/src/crypto/test/ECGOST3410Test.cs b/crypto/test/src/crypto/test/ECGOST3410Test.cs
index 37cb23ecf..5efa75169 100644 --- a/crypto/test/src/crypto/test/ECGOST3410Test.cs +++ b/crypto/test/src/crypto/test/ECGOST3410Test.cs
@@ -325,7 +325,7 @@ namespace Org.BouncyCastle.Crypto.Tests ecGOST3410_CParam(); } - public static void Main( + public static void MainOld( string[] args) { ECGost3410Test test = new ECGost3410Test(); diff --git a/crypto/test/src/crypto/test/ECIESTest.cs b/crypto/test/src/crypto/test/ECIESTest.cs
index e8cfd6df4..f17e6957a 100644 --- a/crypto/test/src/crypto/test/ECIESTest.cs +++ b/crypto/test/src/crypto/test/ECIESTest.cs
@@ -235,7 +235,7 @@ namespace Org.BouncyCastle.Crypto.Tests DoTest(p1, p2); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new EcIesTest()); diff --git a/crypto/test/src/crypto/test/ECNRTest.cs b/crypto/test/src/crypto/test/ECNRTest.cs
index 5eae9f097..180b33560 100644 --- a/crypto/test/src/crypto/test/ECNRTest.cs +++ b/crypto/test/src/crypto/test/ECNRTest.cs
@@ -98,7 +98,7 @@ namespace Org.BouncyCastle.Crypto.Tests ecNR239bitPrime(); } - public static void Main( + public static void MainOld( string[] args) { EcNrTest test = new EcNrTest(); diff --git a/crypto/test/src/crypto/test/ECTest.cs b/crypto/test/src/crypto/test/ECTest.cs
index 5697f41eb..980d04d6c 100644 --- a/crypto/test/src/crypto/test/ECTest.cs +++ b/crypto/test/src/crypto/test/ECTest.cs
@@ -923,7 +923,7 @@ namespace Org.BouncyCastle.Crypto.Tests TestECMqvRandom(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ECTest()); diff --git a/crypto/test/src/crypto/test/ElGamalTest.cs b/crypto/test/src/crypto/test/ElGamalTest.cs
index 1caa70387..02d723d08 100644 --- a/crypto/test/src/crypto/test/ElGamalTest.cs +++ b/crypto/test/src/crypto/test/ElGamalTest.cs
@@ -269,7 +269,7 @@ namespace Org.BouncyCastle.Crypto.Tests TestInitCheck(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ElGamalTest()); diff --git a/crypto/test/src/crypto/test/EqualsHashCodeTest.cs b/crypto/test/src/crypto/test/EqualsHashCodeTest.cs
index 05cc9ad53..8933afbcf 100644 --- a/crypto/test/src/crypto/test/EqualsHashCodeTest.cs +++ b/crypto/test/src/crypto/test/EqualsHashCodeTest.cs
@@ -253,7 +253,7 @@ namespace Org.BouncyCastle.Crypto.Tests TestDsa(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new EqualsHashCodeTest()); diff --git a/crypto/test/src/crypto/test/GCMTest.cs b/crypto/test/src/crypto/test/GCMTest.cs
index e5e5fc43e..b6b919623 100644 --- a/crypto/test/src/crypto/test/GCMTest.cs +++ b/crypto/test/src/crypto/test/GCMTest.cs
@@ -728,7 +728,7 @@ namespace Org.BouncyCastle.Crypto.Tests return value; } - public static void Main( + public static void MainOld( string[] args) { RunTest(new GcmTest()); diff --git a/crypto/test/src/crypto/test/GMacTest.cs b/crypto/test/src/crypto/test/GMacTest.cs
index 0b37e1a03..72d3a556b 100644 --- a/crypto/test/src/crypto/test/GMacTest.cs +++ b/crypto/test/src/crypto/test/GMacTest.cs
@@ -174,7 +174,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "GMac"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new GMacTest()); diff --git a/crypto/test/src/crypto/test/GOST28147MacTest.cs b/crypto/test/src/crypto/test/GOST28147MacTest.cs
index 5f3188f48..e4129ce4f 100644 --- a/crypto/test/src/crypto/test/GOST28147MacTest.cs +++ b/crypto/test/src/crypto/test/GOST28147MacTest.cs
@@ -85,7 +85,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Gost28147Mac"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Gost28147MacTest(); diff --git a/crypto/test/src/crypto/test/GOST28147Test.cs b/crypto/test/src/crypto/test/GOST28147Test.cs
index 865dcc2a7..bd1e77cd3 100644 --- a/crypto/test/src/crypto/test/GOST28147Test.cs +++ b/crypto/test/src/crypto/test/GOST28147Test.cs
@@ -357,7 +357,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Gost28147"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Gost28147Test(); diff --git a/crypto/test/src/crypto/test/GOST3410Test.cs b/crypto/test/src/crypto/test/GOST3410Test.cs
index f54662770..b43f432b5 100644 --- a/crypto/test/src/crypto/test/GOST3410Test.cs +++ b/crypto/test/src/crypto/test/GOST3410Test.cs
@@ -1584,7 +1584,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, "Gost3410: Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Gost3410Test(); diff --git a/crypto/test/src/crypto/test/GOST3411DigestTest.cs b/crypto/test/src/crypto/test/GOST3411DigestTest.cs
index 329a158d6..64494287b 100644 --- a/crypto/test/src/crypto/test/GOST3411DigestTest.cs +++ b/crypto/test/src/crypto/test/GOST3411DigestTest.cs
@@ -75,7 +75,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Gost3411Digest((Gost3411Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Gost3411DigestTest(); diff --git a/crypto/test/src/crypto/test/HCFamilyTest.cs b/crypto/test/src/crypto/test/HCFamilyTest.cs
index 0904bc9eb..f5039ae06 100644 --- a/crypto/test/src/crypto/test/HCFamilyTest.cs +++ b/crypto/test/src/crypto/test/HCFamilyTest.cs
@@ -184,7 +184,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new HCFamilyTest()); } diff --git a/crypto/test/src/crypto/test/HCFamilyVecTest.cs b/crypto/test/src/crypto/test/HCFamilyVecTest.cs
index 00b0ee75c..5fcaabc90 100644 --- a/crypto/test/src/crypto/test/HCFamilyVecTest.cs +++ b/crypto/test/src/crypto/test/HCFamilyVecTest.cs
@@ -168,7 +168,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new HCFamilyVecTest()); diff --git a/crypto/test/src/crypto/test/HKDFGeneratorTest.cs b/crypto/test/src/crypto/test/HKDFGeneratorTest.cs
index d6e2149df..ff9927e17 100644 --- a/crypto/test/src/crypto/test/HKDFGeneratorTest.cs +++ b/crypto/test/src/crypto/test/HKDFGeneratorTest.cs
@@ -294,7 +294,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "HKDF"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new HkdfGeneratorTest()); } diff --git a/crypto/test/src/crypto/test/IDEATest.cs b/crypto/test/src/crypto/test/IDEATest.cs
index fbbd1ae17..daea4689c 100644 --- a/crypto/test/src/crypto/test/IDEATest.cs +++ b/crypto/test/src/crypto/test/IDEATest.cs
@@ -35,7 +35,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new IdeaTest(); diff --git a/crypto/test/src/crypto/test/ISAACTest.cs b/crypto/test/src/crypto/test/ISAACTest.cs
index 1782bbc98..e961aa326 100644 --- a/crypto/test/src/crypto/test/ISAACTest.cs +++ b/crypto/test/src/crypto/test/ISAACTest.cs
@@ -180,7 +180,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new IsaacTest()); diff --git a/crypto/test/src/crypto/test/ISO9796Test.cs b/crypto/test/src/crypto/test/ISO9796Test.cs
index 562238bca..6afd1f988 100644 --- a/crypto/test/src/crypto/test/ISO9796Test.cs +++ b/crypto/test/src/crypto/test/ISO9796Test.cs
@@ -952,7 +952,7 @@ namespace Org.BouncyCastle.Crypto.Tests DoFullMessageTest(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ISO9796Test()); diff --git a/crypto/test/src/crypto/test/ISO9797Alg3MacTest.cs b/crypto/test/src/crypto/test/ISO9797Alg3MacTest.cs
index 9d5d8b6b7..e1aa13d0c 100644 --- a/crypto/test/src/crypto/test/ISO9797Alg3MacTest.cs +++ b/crypto/test/src/crypto/test/ISO9797Alg3MacTest.cs
@@ -79,7 +79,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { ISO9797Alg3MacTest test = new ISO9797Alg3MacTest(); diff --git a/crypto/test/src/crypto/test/KDF1GeneratorTest.cs b/crypto/test/src/crypto/test/KDF1GeneratorTest.cs
index 89c8d5453..9fb8bf20b 100644 --- a/crypto/test/src/crypto/test/KDF1GeneratorTest.cs +++ b/crypto/test/src/crypto/test/KDF1GeneratorTest.cs
@@ -86,7 +86,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "KDF1"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Kdf1GeneratorTest()); diff --git a/crypto/test/src/crypto/test/KDF2GeneratorTest.cs b/crypto/test/src/crypto/test/KDF2GeneratorTest.cs
index e184e0b40..2eb1fe13a 100644 --- a/crypto/test/src/crypto/test/KDF2GeneratorTest.cs +++ b/crypto/test/src/crypto/test/KDF2GeneratorTest.cs
@@ -98,7 +98,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "KDF2"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Kdf2GeneratorTest()); diff --git a/crypto/test/src/crypto/test/KeccakDigestTest.cs b/crypto/test/src/crypto/test/KeccakDigestTest.cs
index 961a5d2e3..9ae3ee820 100644 --- a/crypto/test/src/crypto/test/KeccakDigestTest.cs +++ b/crypto/test/src/crypto/test/KeccakDigestTest.cs
@@ -357,7 +357,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new KeccakDigest((KeccakDigest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new KeccakDigestTest()); diff --git a/crypto/test/src/crypto/test/MD2DigestTest.cs b/crypto/test/src/crypto/test/MD2DigestTest.cs
index 4f4da516b..9af339a7f 100644 --- a/crypto/test/src/crypto/test/MD2DigestTest.cs +++ b/crypto/test/src/crypto/test/MD2DigestTest.cs
@@ -50,7 +50,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new MD2Digest((MD2Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new MD2DigestTest()); diff --git a/crypto/test/src/crypto/test/MD4DigestTest.cs b/crypto/test/src/crypto/test/MD4DigestTest.cs
index 4fd4e0931..277e00467 100644 --- a/crypto/test/src/crypto/test/MD4DigestTest.cs +++ b/crypto/test/src/crypto/test/MD4DigestTest.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new MD4Digest((MD4Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new MD4DigestTest()); diff --git a/crypto/test/src/crypto/test/MD5DigestTest.cs b/crypto/test/src/crypto/test/MD5DigestTest.cs
index cc914165c..a19b4fcfe 100644 --- a/crypto/test/src/crypto/test/MD5DigestTest.cs +++ b/crypto/test/src/crypto/test/MD5DigestTest.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new MD5Digest((MD5Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new MD5DigestTest()); diff --git a/crypto/test/src/crypto/test/MD5HMacTest.cs b/crypto/test/src/crypto/test/MD5HMacTest.cs
index 101b8be3c..23eb8a69c 100644 --- a/crypto/test/src/crypto/test/MD5HMacTest.cs +++ b/crypto/test/src/crypto/test/MD5HMacTest.cs
@@ -71,7 +71,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new MD5HMacTest(); diff --git a/crypto/test/src/crypto/test/MGF1GeneratorTest.cs b/crypto/test/src/crypto/test/MGF1GeneratorTest.cs
index ee67ffa1c..058daef7c 100644 --- a/crypto/test/src/crypto/test/MGF1GeneratorTest.cs +++ b/crypto/test/src/crypto/test/MGF1GeneratorTest.cs
@@ -86,7 +86,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "MGF1"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Mgf1GeneratorTest()); diff --git a/crypto/test/src/crypto/test/MacTest.cs b/crypto/test/src/crypto/test/MacTest.cs
index 9a58f8a8c..08faa0594 100644 --- a/crypto/test/src/crypto/test/MacTest.cs +++ b/crypto/test/src/crypto/test/MacTest.cs
@@ -180,7 +180,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { MacTest test = new MacTest(); diff --git a/crypto/test/src/crypto/test/ModeTest.cs b/crypto/test/src/crypto/test/ModeTest.cs
index c67dce094..84b334d5e 100644 --- a/crypto/test/src/crypto/test/ModeTest.cs +++ b/crypto/test/src/crypto/test/ModeTest.cs
@@ -88,7 +88,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new ModeTest(); diff --git a/crypto/test/src/crypto/test/NaccacheSternTest.cs b/crypto/test/src/crypto/test/NaccacheSternTest.cs
index 9168adced..85d315e44 100644 --- a/crypto/test/src/crypto/test/NaccacheSternTest.cs +++ b/crypto/test/src/crypto/test/NaccacheSternTest.cs
@@ -339,7 +339,7 @@ namespace Org.BouncyCastle.Crypto.Tests Assert.AreEqual(Name + ": Okay", resultText); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new NaccacheSternTest(); diff --git a/crypto/test/src/crypto/test/NoekeonTest.cs b/crypto/test/src/crypto/test/NoekeonTest.cs
index b6fff70ce..b23fa4b30 100644 --- a/crypto/test/src/crypto/test/NoekeonTest.cs +++ b/crypto/test/src/crypto/test/NoekeonTest.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Noekeon"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NoekeonTest()); diff --git a/crypto/test/src/crypto/test/NonMemoableDigestTest.cs b/crypto/test/src/crypto/test/NonMemoableDigestTest.cs
index e6b329e88..66428f25e 100644 --- a/crypto/test/src/crypto/test/NonMemoableDigestTest.cs +++ b/crypto/test/src/crypto/test/NonMemoableDigestTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NonMemoableDigestTest()); diff --git a/crypto/test/src/crypto/test/NullTest.cs b/crypto/test/src/crypto/test/NullTest.cs
index 16a51808f..76bfbf90f 100644 --- a/crypto/test/src/crypto/test/NullTest.cs +++ b/crypto/test/src/crypto/test/NullTest.cs
@@ -71,7 +71,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NullTest()); diff --git a/crypto/test/src/crypto/test/OAEPTest.cs b/crypto/test/src/crypto/test/OAEPTest.cs
index bc1dd9292..39af21137 100644 --- a/crypto/test/src/crypto/test/OAEPTest.cs +++ b/crypto/test/src/crypto/test/OAEPTest.cs
@@ -822,7 +822,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new OaepTest()); diff --git a/crypto/test/src/crypto/test/OCBTest.cs b/crypto/test/src/crypto/test/OCBTest.cs
index 9f898fbe2..5e141da3a 100644 --- a/crypto/test/src/crypto/test/OCBTest.cs +++ b/crypto/test/src/crypto/test/OCBTest.cs
@@ -498,7 +498,7 @@ namespace Org.BouncyCastle.Crypto.Tests return value; } - public static void Main( + public static void MainOld( string[] args) { RunTest(new OcbTest()); diff --git a/crypto/test/src/crypto/test/OpenBsdBCryptTest.cs b/crypto/test/src/crypto/test/OpenBsdBCryptTest.cs
index 8501588ee..bf10fe144 100644 --- a/crypto/test/src/crypto/test/OpenBsdBCryptTest.cs +++ b/crypto/test/src/crypto/test/OpenBsdBCryptTest.cs
@@ -131,7 +131,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new OpenBsdBCryptTest()); } diff --git a/crypto/test/src/crypto/test/PSSBlindTest.cs b/crypto/test/src/crypto/test/PSSBlindTest.cs
index d887a8f08..b886bbf53 100644 --- a/crypto/test/src/crypto/test/PSSBlindTest.cs +++ b/crypto/test/src/crypto/test/PSSBlindTest.cs
@@ -382,7 +382,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PssBlindTest()); diff --git a/crypto/test/src/crypto/test/PSSTest.cs b/crypto/test/src/crypto/test/PSSTest.cs
index 8578d254f..e85738f37 100644 --- a/crypto/test/src/crypto/test/PSSTest.cs +++ b/crypto/test/src/crypto/test/PSSTest.cs
@@ -357,7 +357,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PssTest()); diff --git a/crypto/test/src/crypto/test/PaddingTest.cs b/crypto/test/src/crypto/test/PaddingTest.cs
index ed53d9228..e01e56ccb 100644 --- a/crypto/test/src/crypto/test/PaddingTest.cs +++ b/crypto/test/src/crypto/test/PaddingTest.cs
@@ -152,7 +152,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "PaddingTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PaddingTest()); diff --git a/crypto/test/src/crypto/test/Pkcs12Test.cs b/crypto/test/src/crypto/test/Pkcs12Test.cs
index 29d5a3942..b5eac07e9 100644 --- a/crypto/test/src/crypto/test/Pkcs12Test.cs +++ b/crypto/test/src/crypto/test/Pkcs12Test.cs
@@ -84,7 +84,7 @@ namespace Org.BouncyCastle.Crypto.Tests Run3(10, password2, Hex.Decode("263216FCC2FAB31C"), 1000, Hex.Decode("5EC4C7A80DF652294C3925B6489A7AB857C83476")); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Pkcs12Test()); diff --git a/crypto/test/src/crypto/test/Pkcs5Test.cs b/crypto/test/src/crypto/test/Pkcs5Test.cs
index fdf1e7a66..8147da263 100644 --- a/crypto/test/src/crypto/test/Pkcs5Test.cs +++ b/crypto/test/src/crypto/test/Pkcs5Test.cs
@@ -218,7 +218,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Pkcs5Test()); diff --git a/crypto/test/src/crypto/test/Poly1305Test.cs b/crypto/test/src/crypto/test/Poly1305Test.cs
index 7aaceb99e..8b48c40d5 100644 --- a/crypto/test/src/crypto/test/Poly1305Test.cs +++ b/crypto/test/src/crypto/test/Poly1305Test.cs
@@ -502,7 +502,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Poly1305Test()); diff --git a/crypto/test/src/crypto/test/RC2Test.cs b/crypto/test/src/crypto/test/RC2Test.cs
index 177c1817d..8b1e16fc4 100644 --- a/crypto/test/src/crypto/test/RC2Test.cs +++ b/crypto/test/src/crypto/test/RC2Test.cs
@@ -38,7 +38,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RC2Test(); diff --git a/crypto/test/src/crypto/test/RC2WrapTest.cs b/crypto/test/src/crypto/test/RC2WrapTest.cs
index fc27acd2c..f18e623cd 100644 --- a/crypto/test/src/crypto/test/RC2WrapTest.cs +++ b/crypto/test/src/crypto/test/RC2WrapTest.cs
@@ -103,7 +103,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "RC2Wrap"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RC2WrapTest(); diff --git a/crypto/test/src/crypto/test/RC4Test.cs b/crypto/test/src/crypto/test/RC4Test.cs
index 7c1ac9162..0994cbee6 100644 --- a/crypto/test/src/crypto/test/RC4Test.cs +++ b/crypto/test/src/crypto/test/RC4Test.cs
@@ -39,7 +39,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RC4Test(); diff --git a/crypto/test/src/crypto/test/RC5Test.cs b/crypto/test/src/crypto/test/RC5Test.cs
index e50878a0e..1a408d9a9 100644 --- a/crypto/test/src/crypto/test/RC5Test.cs +++ b/crypto/test/src/crypto/test/RC5Test.cs
@@ -181,7 +181,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { RC5Test test = new RC5Test(); diff --git a/crypto/test/src/crypto/test/RC6Test.cs b/crypto/test/src/crypto/test/RC6Test.cs
index 4f59ec4e9..b95528fa5 100644 --- a/crypto/test/src/crypto/test/RC6Test.cs +++ b/crypto/test/src/crypto/test/RC6Test.cs
@@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RC6Test(); diff --git a/crypto/test/src/crypto/test/RFC3211WrapTest.cs b/crypto/test/src/crypto/test/RFC3211WrapTest.cs
index bdef7c999..c129bc896 100644 --- a/crypto/test/src/crypto/test/RFC3211WrapTest.cs +++ b/crypto/test/src/crypto/test/RFC3211WrapTest.cs
@@ -199,7 +199,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Rfc3211WrapTest()); diff --git a/crypto/test/src/crypto/test/RSABlindedTest.cs b/crypto/test/src/crypto/test/RSABlindedTest.cs
index 75b9f3a07..c353e6eff 100644 --- a/crypto/test/src/crypto/test/RSABlindedTest.cs +++ b/crypto/test/src/crypto/test/RSABlindedTest.cs
@@ -429,7 +429,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RsaBlindedTest(); diff --git a/crypto/test/src/crypto/test/RegressionTest.cs b/crypto/test/src/crypto/test/RegressionTest.cs
index c065a1320..4f505c752 100644 --- a/crypto/test/src/crypto/test/RegressionTest.cs +++ b/crypto/test/src/crypto/test/RegressionTest.cs
@@ -133,7 +133,7 @@ namespace Org.BouncyCastle.Crypto.Tests new SM2SignerTest(), }; - public static void Main(string[] args) + public static void MainOld(string[] args) { foreach (ITest test in tests) { diff --git a/crypto/test/src/crypto/test/RijndaelTest.cs b/crypto/test/src/crypto/test/RijndaelTest.cs
index f714c83eb..dc94a33af 100644 --- a/crypto/test/src/crypto/test/RijndaelTest.cs +++ b/crypto/test/src/crypto/test/RijndaelTest.cs
@@ -114,7 +114,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Rijndael"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RijndaelTest(); diff --git a/crypto/test/src/crypto/test/RipeMD128DigestTest.cs b/crypto/test/src/crypto/test/RipeMD128DigestTest.cs
index ead4f06ad..6ef60e3e3 100644 --- a/crypto/test/src/crypto/test/RipeMD128DigestTest.cs +++ b/crypto/test/src/crypto/test/RipeMD128DigestTest.cs
@@ -57,7 +57,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new RipeMD128Digest((RipeMD128Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new RipeMD128DigestTest()); diff --git a/crypto/test/src/crypto/test/RipeMD128HMacTest.cs b/crypto/test/src/crypto/test/RipeMD128HMacTest.cs
index 2f6a2d979..84e035124 100644 --- a/crypto/test/src/crypto/test/RipeMD128HMacTest.cs +++ b/crypto/test/src/crypto/test/RipeMD128HMacTest.cs
@@ -80,7 +80,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RipeMD128HMacTest(); diff --git a/crypto/test/src/crypto/test/RipeMD160DigestTest.cs b/crypto/test/src/crypto/test/RipeMD160DigestTest.cs
index 15e53f2a0..62aba33dd 100644 --- a/crypto/test/src/crypto/test/RipeMD160DigestTest.cs +++ b/crypto/test/src/crypto/test/RipeMD160DigestTest.cs
@@ -57,7 +57,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new RipeMD160Digest((RipeMD160Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new RipeMD160DigestTest()); diff --git a/crypto/test/src/crypto/test/RipeMD160HMacTest.cs b/crypto/test/src/crypto/test/RipeMD160HMacTest.cs
index cc87a535f..2ddb2c7a3 100644 --- a/crypto/test/src/crypto/test/RipeMD160HMacTest.cs +++ b/crypto/test/src/crypto/test/RipeMD160HMacTest.cs
@@ -81,7 +81,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RipeMD160HMacTest(); diff --git a/crypto/test/src/crypto/test/RipeMD256DigestTest.cs b/crypto/test/src/crypto/test/RipeMD256DigestTest.cs
index 5b3e6b10b..5a8a083c8 100644 --- a/crypto/test/src/crypto/test/RipeMD256DigestTest.cs +++ b/crypto/test/src/crypto/test/RipeMD256DigestTest.cs
@@ -57,7 +57,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new RipeMD256Digest((RipeMD256Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new RipeMD256DigestTest()); diff --git a/crypto/test/src/crypto/test/RipeMD320DigestTest.cs b/crypto/test/src/crypto/test/RipeMD320DigestTest.cs
index 047d68aa7..249c1aa9c 100644 --- a/crypto/test/src/crypto/test/RipeMD320DigestTest.cs +++ b/crypto/test/src/crypto/test/RipeMD320DigestTest.cs
@@ -57,7 +57,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new RipeMD320Digest((RipeMD320Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new RipeMD320DigestTest()); diff --git a/crypto/test/src/crypto/test/RsaTest.cs b/crypto/test/src/crypto/test/RsaTest.cs
index e9f30cae9..6ecaea59b 100644 --- a/crypto/test/src/crypto/test/RsaTest.cs +++ b/crypto/test/src/crypto/test/RsaTest.cs
@@ -646,7 +646,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RsaTest(); diff --git a/crypto/test/src/crypto/test/SCryptTest.cs b/crypto/test/src/crypto/test/SCryptTest.cs
index c055ab718..796c973f5 100644 --- a/crypto/test/src/crypto/test/SCryptTest.cs +++ b/crypto/test/src/crypto/test/SCryptTest.cs
@@ -86,7 +86,7 @@ namespace Org.BouncyCastle.Crypto.Tests return int.Parse(arg.Trim()); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SCryptTest()); diff --git a/crypto/test/src/crypto/test/SEEDTest.cs b/crypto/test/src/crypto/test/SEEDTest.cs
index 2fcb242cc..230e16c61 100644 --- a/crypto/test/src/crypto/test/SEEDTest.cs +++ b/crypto/test/src/crypto/test/SEEDTest.cs
@@ -48,7 +48,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "SEED"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SeedTest()); diff --git a/crypto/test/src/crypto/test/SHA1DigestTest.cs b/crypto/test/src/crypto/test/SHA1DigestTest.cs
index 318035b0c..0da6f4173 100644 --- a/crypto/test/src/crypto/test/SHA1DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA1DigestTest.cs
@@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha1Digest((Sha1Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha1DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA1HMacTest.cs b/crypto/test/src/crypto/test/SHA1HMacTest.cs
index 865f5b58b..f7d7ffba4 100644 --- a/crypto/test/src/crypto/test/SHA1HMacTest.cs +++ b/crypto/test/src/crypto/test/SHA1HMacTest.cs
@@ -73,7 +73,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Sha1HMacTest(); diff --git a/crypto/test/src/crypto/test/SHA224DigestTest.cs b/crypto/test/src/crypto/test/SHA224DigestTest.cs
index 9469b651b..5d6ee1267 100644 --- a/crypto/test/src/crypto/test/SHA224DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA224DigestTest.cs
@@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha224Digest((Sha224Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha224DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA224HMacTest.cs b/crypto/test/src/crypto/test/SHA224HMacTest.cs
index 06c6ea1cb..8cf0bec86 100644 --- a/crypto/test/src/crypto/test/SHA224HMacTest.cs +++ b/crypto/test/src/crypto/test/SHA224HMacTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Sha224HMacTest(); diff --git a/crypto/test/src/crypto/test/SHA256DigestTest.cs b/crypto/test/src/crypto/test/SHA256DigestTest.cs
index d2ae89e56..aa5589d42 100644 --- a/crypto/test/src/crypto/test/SHA256DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA256DigestTest.cs
@@ -54,7 +54,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha256Digest((Sha256Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha256DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA256HMacTest.cs b/crypto/test/src/crypto/test/SHA256HMacTest.cs
index a9016af21..103bdf1c8 100644 --- a/crypto/test/src/crypto/test/SHA256HMacTest.cs +++ b/crypto/test/src/crypto/test/SHA256HMacTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Sha256HMacTest(); diff --git a/crypto/test/src/crypto/test/SHA384DigestTest.cs b/crypto/test/src/crypto/test/SHA384DigestTest.cs
index 99363ac5a..d98ed19dc 100644 --- a/crypto/test/src/crypto/test/SHA384DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA384DigestTest.cs
@@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha384Digest((Sha384Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha384DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA384HMacTest.cs b/crypto/test/src/crypto/test/SHA384HMacTest.cs
index 0caba12c4..0b6d17256 100644 --- a/crypto/test/src/crypto/test/SHA384HMacTest.cs +++ b/crypto/test/src/crypto/test/SHA384HMacTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Sha384HMacTest(); diff --git a/crypto/test/src/crypto/test/SHA3DigestTest.cs b/crypto/test/src/crypto/test/SHA3DigestTest.cs
index 71f51f43b..8faf184f9 100644 --- a/crypto/test/src/crypto/test/SHA3DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA3DigestTest.cs
@@ -229,7 +229,7 @@ namespace Org.BouncyCastle.Crypto.Tests return s; } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha3DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA512DigestTest.cs b/crypto/test/src/crypto/test/SHA512DigestTest.cs
index d4f56e15e..c2020e82e 100644 --- a/crypto/test/src/crypto/test/SHA512DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA512DigestTest.cs
@@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha512Digest((Sha512Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha512DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA512HMacTest.cs b/crypto/test/src/crypto/test/SHA512HMacTest.cs
index c091a7220..b42080e89 100644 --- a/crypto/test/src/crypto/test/SHA512HMacTest.cs +++ b/crypto/test/src/crypto/test/SHA512HMacTest.cs
@@ -103,7 +103,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new Sha512HMacTest(); diff --git a/crypto/test/src/crypto/test/SHA512t224DigestTest.cs b/crypto/test/src/crypto/test/SHA512t224DigestTest.cs
index a3d68e1ab..81ef2498c 100644 --- a/crypto/test/src/crypto/test/SHA512t224DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA512t224DigestTest.cs
@@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha512tDigest((Sha512tDigest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha512t224DigestTest()); diff --git a/crypto/test/src/crypto/test/SHA512t256DigestTest.cs b/crypto/test/src/crypto/test/SHA512t256DigestTest.cs
index c957aa660..fec453a22 100644 --- a/crypto/test/src/crypto/test/SHA512t256DigestTest.cs +++ b/crypto/test/src/crypto/test/SHA512t256DigestTest.cs
@@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new Sha512tDigest((Sha512tDigest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Sha512t256DigestTest()); diff --git a/crypto/test/src/crypto/test/SM3DigestTest.cs b/crypto/test/src/crypto/test/SM3DigestTest.cs
index ae29a1581..41aa2cd62 100644 --- a/crypto/test/src/crypto/test/SM3DigestTest.cs +++ b/crypto/test/src/crypto/test/SM3DigestTest.cs
@@ -190,7 +190,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new SM3Digest((SM3Digest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SM3DigestTest()); diff --git a/crypto/test/src/crypto/test/SRP6Test.cs b/crypto/test/src/crypto/test/SRP6Test.cs
index 6b64df924..643319a3f 100644 --- a/crypto/test/src/crypto/test/SRP6Test.cs +++ b/crypto/test/src/crypto/test/SRP6Test.cs
@@ -242,7 +242,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new Srp6Test()); } diff --git a/crypto/test/src/crypto/test/Salsa20Test.cs b/crypto/test/src/crypto/test/Salsa20Test.cs
index b4dc1ef2b..be7d44519 100644 --- a/crypto/test/src/crypto/test/Salsa20Test.cs +++ b/crypto/test/src/crypto/test/Salsa20Test.cs
@@ -301,7 +301,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Salsa20Test()); diff --git a/crypto/test/src/crypto/test/SerpentTest.cs b/crypto/test/src/crypto/test/SerpentTest.cs
index 08dbda591..b2b2dda7d 100644 --- a/crypto/test/src/crypto/test/SerpentTest.cs +++ b/crypto/test/src/crypto/test/SerpentTest.cs
@@ -134,7 +134,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Serpent"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new SerpentTest()); } diff --git a/crypto/test/src/crypto/test/ShakeDigestTest.cs b/crypto/test/src/crypto/test/ShakeDigestTest.cs
index d8b2d55d6..e200741b5 100644 --- a/crypto/test/src/crypto/test/ShakeDigestTest.cs +++ b/crypto/test/src/crypto/test/ShakeDigestTest.cs
@@ -277,7 +277,7 @@ namespace Org.BouncyCastle.Crypto.Tests return s; } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ShakeDigestTest()); diff --git a/crypto/test/src/crypto/test/ShortenedDigestTest.cs b/crypto/test/src/crypto/test/ShortenedDigestTest.cs
index 4956b5b39..c2b59c1bb 100644 --- a/crypto/test/src/crypto/test/ShortenedDigestTest.cs +++ b/crypto/test/src/crypto/test/ShortenedDigestTest.cs
@@ -81,7 +81,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "ShortenedDigest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ShortenedDigestTest()); diff --git a/crypto/test/src/crypto/test/SipHashTest.cs b/crypto/test/src/crypto/test/SipHashTest.cs
index 82dfce82c..97a1dd874 100644 --- a/crypto/test/src/crypto/test/SipHashTest.cs +++ b/crypto/test/src/crypto/test/SipHashTest.cs
@@ -140,7 +140,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new SipHashTest()); } diff --git a/crypto/test/src/crypto/test/SkeinDigestTest.cs b/crypto/test/src/crypto/test/SkeinDigestTest.cs
index b6f1c542b..b38de9159 100644 --- a/crypto/test/src/crypto/test/SkeinDigestTest.cs +++ b/crypto/test/src/crypto/test/SkeinDigestTest.cs
@@ -285,7 +285,7 @@ namespace Org.BouncyCastle.Crypto.Tests // } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SkeinDigestTest()); diff --git a/crypto/test/src/crypto/test/SkeinMacTest.cs b/crypto/test/src/crypto/test/SkeinMacTest.cs
index 852c3b2c7..5e68a1931 100644 --- a/crypto/test/src/crypto/test/SkeinMacTest.cs +++ b/crypto/test/src/crypto/test/SkeinMacTest.cs
@@ -156,7 +156,7 @@ namespace Org.BouncyCastle.Crypto.Tests } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SkeinMacTest()); diff --git a/crypto/test/src/crypto/test/SkipjackTest.cs b/crypto/test/src/crypto/test/SkipjackTest.cs
index d9fe6e4b4..a8ec2d907 100644 --- a/crypto/test/src/crypto/test/SkipjackTest.cs +++ b/crypto/test/src/crypto/test/SkipjackTest.cs
@@ -26,7 +26,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new SkipjackTest(); diff --git a/crypto/test/src/crypto/test/StreamCipherResetTest.cs b/crypto/test/src/crypto/test/StreamCipherResetTest.cs
index 49760a24b..2692ff0b4 100644 --- a/crypto/test/src/crypto/test/StreamCipherResetTest.cs +++ b/crypto/test/src/crypto/test/StreamCipherResetTest.cs
@@ -118,7 +118,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new StreamCipherResetTest()); } diff --git a/crypto/test/src/crypto/test/TEATest.cs b/crypto/test/src/crypto/test/TEATest.cs
index 525941dbf..3c8a9ef80 100644 --- a/crypto/test/src/crypto/test/TEATest.cs +++ b/crypto/test/src/crypto/test/TEATest.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "TEA"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new TeaTest()); diff --git a/crypto/test/src/crypto/test/Threefish1024Test.cs b/crypto/test/src/crypto/test/Threefish1024Test.cs
index 64f9aa29f..01d2761d0 100644 --- a/crypto/test/src/crypto/test/Threefish1024Test.cs +++ b/crypto/test/src/crypto/test/Threefish1024Test.cs
@@ -57,7 +57,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Threefish-1024"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Threefish1024Test()); diff --git a/crypto/test/src/crypto/test/Threefish256Test.cs b/crypto/test/src/crypto/test/Threefish256Test.cs
index e44299a31..863f5de40 100644 --- a/crypto/test/src/crypto/test/Threefish256Test.cs +++ b/crypto/test/src/crypto/test/Threefish256Test.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Threefish-256"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Threefish256Test()); diff --git a/crypto/test/src/crypto/test/Threefish512Test.cs b/crypto/test/src/crypto/test/Threefish512Test.cs
index 8f4ec6345..4d9b18395 100644 --- a/crypto/test/src/crypto/test/Threefish512Test.cs +++ b/crypto/test/src/crypto/test/Threefish512Test.cs
@@ -47,7 +47,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Threefish-512"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Threefish512Test()); diff --git a/crypto/test/src/crypto/test/TigerDigestTest.cs b/crypto/test/src/crypto/test/TigerDigestTest.cs
index b351c4b5e..bedcb242b 100644 --- a/crypto/test/src/crypto/test/TigerDigestTest.cs +++ b/crypto/test/src/crypto/test/TigerDigestTest.cs
@@ -65,7 +65,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new TigerDigest((TigerDigest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new TigerDigestTest()); diff --git a/crypto/test/src/crypto/test/TnepresTest.cs b/crypto/test/src/crypto/test/TnepresTest.cs
index 07308dbff..34407790a 100644 --- a/crypto/test/src/crypto/test/TnepresTest.cs +++ b/crypto/test/src/crypto/test/TnepresTest.cs
@@ -139,7 +139,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "Tnepres"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new TnepresTest()); } diff --git a/crypto/test/src/crypto/test/TwofishTest.cs b/crypto/test/src/crypto/test/TwofishTest.cs
index 9425d2e60..c6efe5707 100644 --- a/crypto/test/src/crypto/test/TwofishTest.cs +++ b/crypto/test/src/crypto/test/TwofishTest.cs
@@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Crypto.Tests { } - public static void Main( + public static void MainOld( string[] args) { ITest test = new TwofishTest(); diff --git a/crypto/test/src/crypto/test/VMPCKSA3Test.cs b/crypto/test/src/crypto/test/VMPCKSA3Test.cs
index a25105b77..d0c87d596 100644 --- a/crypto/test/src/crypto/test/VMPCKSA3Test.cs +++ b/crypto/test/src/crypto/test/VMPCKSA3Test.cs
@@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Crypto.Tests return output; } - public static void Main( + public static void MainOld( string[] args) { RunTest(new VmpcKsa3Test()); diff --git a/crypto/test/src/crypto/test/VMPCMacTest.cs b/crypto/test/src/crypto/test/VMPCMacTest.cs
index b9a5e3a93..68fe4c7c7 100644 --- a/crypto/test/src/crypto/test/VMPCMacTest.cs +++ b/crypto/test/src/crypto/test/VMPCMacTest.cs
@@ -20,7 +20,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "VMPC-MAC"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new VmpcMacTest()); diff --git a/crypto/test/src/crypto/test/VMPCTest.cs b/crypto/test/src/crypto/test/VMPCTest.cs
index 6186c4733..72ec75814 100644 --- a/crypto/test/src/crypto/test/VMPCTest.cs +++ b/crypto/test/src/crypto/test/VMPCTest.cs
@@ -95,7 +95,7 @@ namespace Org.BouncyCastle.Crypto.Tests return output; } - public static void Main( + public static void MainOld( string[] args) { RunTest(new VmpcTest()); diff --git a/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs b/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs
index 1445b8977..45b1b2636 100644 --- a/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs +++ b/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs
@@ -102,7 +102,7 @@ namespace Org.BouncyCastle.Crypto.Tests return new WhirlpoolDigest((WhirlpoolDigest)digest); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new WhirlpoolDigestTest()); diff --git a/crypto/test/src/crypto/test/X931SignerTest.cs b/crypto/test/src/crypto/test/X931SignerTest.cs
index d03cbc8e4..e34fe1349 100644 --- a/crypto/test/src/crypto/test/X931SignerTest.cs +++ b/crypto/test/src/crypto/test/X931SignerTest.cs
@@ -129,7 +129,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new X931SignerTest()); } diff --git a/crypto/test/src/crypto/test/XSalsa20Test.cs b/crypto/test/src/crypto/test/XSalsa20Test.cs
index 74ed04e88..7b7cd96c4 100644 --- a/crypto/test/src/crypto/test/XSalsa20Test.cs +++ b/crypto/test/src/crypto/test/XSalsa20Test.cs
@@ -166,7 +166,7 @@ namespace Org.BouncyCastle.Crypto.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new XSalsa20Test()); diff --git a/crypto/test/src/crypto/test/XTEATest.cs b/crypto/test/src/crypto/test/XTEATest.cs
index a1ea65298..298a873f2 100644 --- a/crypto/test/src/crypto/test/XTEATest.cs +++ b/crypto/test/src/crypto/test/XTEATest.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tests get { return "XTEA"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new XteaTest()); diff --git a/crypto/test/src/crypto/tls/test/DtlsTestCase.cs b/crypto/test/src/crypto/tls/test/DtlsTestCase.cs
index 5e43337f4..9fa5b5846 100644 --- a/crypto/test/src/crypto/tls/test/DtlsTestCase.cs +++ b/crypto/test/src/crypto/tls/test/DtlsTestCase.cs
@@ -18,7 +18,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests throw new InvalidOperationException("Non-DTLS version"); } - [Test, TestCaseSource(typeof(DtlsTestSuite), "Suite")] + [Test, TestCaseSource(typeof(DtlsTestSuite), nameof(DtlsTestSuite.Suite))] public void RunTest(TlsTestConfig config) { CheckDtlsVersion(config.clientMinimumVersion); @@ -145,10 +145,10 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests if (!isShutdown) { isShutdown = true; - serverThread.Interrupt(); - serverThread.Join(); + //serverThread.Interrupt(); + serverThread.Join(100); } } } } -} +} \ No newline at end of file diff --git a/crypto/test/src/crypto/tls/test/MockDatagramAssociation.cs b/crypto/test/src/crypto/tls/test/MockDatagramAssociation.cs
index 48df36ca9..4591afa15 100644 --- a/crypto/test/src/crypto/tls/test/MockDatagramAssociation.cs +++ b/crypto/test/src/crypto/tls/test/MockDatagramAssociation.cs
@@ -1,7 +1,5 @@ using System; using System.Collections; -using System.IO; -using System.Net; using System.Threading; using Org.BouncyCastle.Utilities; @@ -68,7 +66,11 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { Monitor.Wait(receiveQueue, waitMillis); } +#if !PORTABLE catch (ThreadInterruptedException) +#else + catch (Exception) +#endif { // TODO Keep waiting until full wait expired? } diff --git a/crypto/test/src/crypto/tls/test/NetworkStream.cs b/crypto/test/src/crypto/tls/test/NetworkStream.cs
index 04de81e13..10cfe5443 100644 --- a/crypto/test/src/crypto/tls/test/NetworkStream.cs +++ b/crypto/test/src/crypto/tls/test/NetworkStream.cs
@@ -34,10 +34,17 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests get { return mInner.CanWrite; } } - public override void Close() +#if PORTABLE + protected override void Dispose(bool disposing) { lock (this) mClosed = true; } +#else + public override void Close() + { + lock (this) mClosed = true; + } +#endif public override void Flush() { diff --git a/crypto/test/src/crypto/tls/test/PipedStream.cs b/crypto/test/src/crypto/tls/test/PipedStream.cs
index 6b2c15059..a5bcc1041 100644 --- a/crypto/test/src/crypto/tls/test/PipedStream.cs +++ b/crypto/test/src/crypto/tls/test/PipedStream.cs
@@ -11,7 +11,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests private bool mClosed = false; private PipedStream mOther = null; - private long mReadPos = 0; + private int mReadPos = 0; internal PipedStream() { @@ -41,7 +41,10 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests get { return true; } } - public override void Close() + + +#if PORTABLE + protected override void Dispose(bool disposing) { lock (this) { @@ -49,6 +52,16 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests Monitor.PulseAll(this); } } +#else + public override void Close() + { + lock (this) + { + mClosed = true; + Monitor.PulseAll(this); + } + } +#endif public override void Flush() { @@ -81,7 +94,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { WaitForData(); int len = (int)System.Math.Min(count, mOther.mBuf.Position - mReadPos); - Array.Copy(mOther.mBuf.GetBuffer(), mReadPos, buffer, offset, len); + Array.Copy(mOther.mBuf.ToArray(), mReadPos, buffer, offset, len); mReadPos += len; return len; } @@ -93,7 +106,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { WaitForData(); bool eof = (mReadPos >= mOther.mBuf.Position); - return eof ? -1 : mOther.mBuf.GetBuffer()[mReadPos++]; + return eof ? -1 : mOther.mBuf.ToArray()[mReadPos++]; } } diff --git a/crypto/test/src/crypto/tls/test/PskTlsClientTest.cs b/crypto/test/src/crypto/tls/test/PskTlsClientTest.cs
index 7072c7105..6c59810e8 100644 --- a/crypto/test/src/crypto/tls/test/PskTlsClientTest.cs +++ b/crypto/test/src/crypto/tls/test/PskTlsClientTest.cs
@@ -1,4 +1,5 @@ -using System; +#if !LIB +using System; using System.IO; using System.Net.Sockets; using System.Text; @@ -20,7 +21,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { private static readonly SecureRandom secureRandom = new SecureRandom(); - public static void Main(string[] args) + public static void MainOld(string[] args) { string hostname = "localhost"; int port = 5556; @@ -70,10 +71,11 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests internal static TlsClientProtocol OpenTlsConnection(string hostname, int port, TlsClient client) { TcpClient tcp = new TcpClient(hostname, port); - + TlsClientProtocol protocol = new TlsClientProtocol(tcp.GetStream(), secureRandom); protocol.Connect(client); return protocol; } } } +#endif \ No newline at end of file diff --git a/crypto/test/src/crypto/tls/test/TlsClientTest.cs b/crypto/test/src/crypto/tls/test/TlsClientTest.cs
index c9a5ef9ad..d30fbdee2 100644 --- a/crypto/test/src/crypto/tls/test/TlsClientTest.cs +++ b/crypto/test/src/crypto/tls/test/TlsClientTest.cs
@@ -1,4 +1,5 @@ using System; +#if !LIB using System.IO; using System.Net.Sockets; using System.Text; @@ -17,7 +18,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { private static readonly SecureRandom secureRandom = new SecureRandom(); - public static void Main(string[] args) + public static void MainOld(string[] args) { string hostname = "localhost"; int port = 5556; @@ -64,3 +65,4 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests } } } +#endif \ No newline at end of file diff --git a/crypto/test/src/crypto/tls/test/TlsServerTest.cs b/crypto/test/src/crypto/tls/test/TlsServerTest.cs
index 7920cb59a..28272169b 100644 --- a/crypto/test/src/crypto/tls/test/TlsServerTest.cs +++ b/crypto/test/src/crypto/tls/test/TlsServerTest.cs
@@ -1,4 +1,5 @@ -using System; +#if !LIB +using System; using System.IO; using System.Net; using System.Net.Sockets; @@ -19,7 +20,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { private static readonly SecureRandom secureRandom = new SecureRandom(); - public static void Main(string[] args) + public static void MainOld(string[] args) { int port = 5556; @@ -83,3 +84,4 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests } } } +#endif \ No newline at end of file diff --git a/crypto/test/src/crypto/tls/test/TlsTestCase.cs b/crypto/test/src/crypto/tls/test/TlsTestCase.cs
index 7fb5db6ce..3d35970f3 100644 --- a/crypto/test/src/crypto/tls/test/TlsTestCase.cs +++ b/crypto/test/src/crypto/tls/test/TlsTestCase.cs
@@ -153,7 +153,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { Monitor.Wait(this); } - catch (ThreadInterruptedException) + catch (Exception) { } } diff --git a/crypto/test/src/crypto/tls/test/TlsTestServerImpl.cs b/crypto/test/src/crypto/tls/test/TlsTestServerImpl.cs
index 9edd2e524..3a2344b88 100644 --- a/crypto/test/src/crypto/tls/test/TlsTestServerImpl.cs +++ b/crypto/test/src/crypto/tls/test/TlsTestServerImpl.cs
@@ -214,7 +214,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests { output.WriteLine(line); } - catch (ThreadInterruptedException) + catch (Exception) { /* * For some reason the NUnit plugin in Visual Studio started throwing these during alert logging diff --git a/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs b/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs
index a76858ce6..a15e867a4 100644 --- a/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs +++ b/crypto/test/src/crypto/tls/test/TlsTestUtilities.cs
@@ -45,7 +45,7 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests byte[] der = c.GetEncoded(); byte[] sha1 = Sha256DigestOf(der); byte[] hexBytes = Hex.Encode(sha1); - string hex = Encoding.ASCII.GetString(hexBytes).ToUpper(CultureInfo.InvariantCulture); + string hex = Encoding.ASCII.GetString(hexBytes).ToUpperInvariant(); StringBuilder fp = new StringBuilder(); int i = 0; diff --git a/crypto/test/src/math/ec/test/AllTests.cs b/crypto/test/src/math/ec/test/AllTests.cs
index 0517ac713..2b0d349ec 100644 --- a/crypto/test/src/math/ec/test/AllTests.cs +++ b/crypto/test/src/math/ec/test/AllTests.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Math.EC.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs b/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs
index 2bcd5b502..fed2c8d42 100644 --- a/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs +++ b/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs
@@ -201,7 +201,7 @@ namespace Org.BouncyCastle.Math.EC.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { new ECPointPerformanceTest().TestMultiply(); } diff --git a/crypto/test/src/math/ec/test/F2mProofer.cs b/crypto/test/src/math/ec/test/F2mProofer.cs
index 727d32c55..9c4fa85d3 100644 --- a/crypto/test/src/math/ec/test/F2mProofer.cs +++ b/crypto/test/src/math/ec/test/F2mProofer.cs
@@ -136,7 +136,7 @@ // + "| -compare <className1> <className2>]"); // } // -// public static void Main(string[] args) +// public static void MainOld(string[] args) // { // if (args.Length == 0) // { diff --git a/crypto/test/src/math/test/AllTests.cs b/crypto/test/src/math/test/AllTests.cs
index 53feff954..69db45e04 100644 --- a/crypto/test/src/math/test/AllTests.cs +++ b/crypto/test/src/math/test/AllTests.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Math.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/ocsp/test/AllTests.cs b/crypto/test/src/ocsp/test/AllTests.cs
index 5e799cd09..d374776f3 100644 --- a/crypto/test/src/ocsp/test/AllTests.cs +++ b/crypto/test/src/ocsp/test/AllTests.cs
@@ -10,7 +10,7 @@ namespace Org.BouncyCastle.Ocsp.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/ocsp/test/OCSPTest.cs b/crypto/test/src/ocsp/test/OCSPTest.cs
index 823de90f9..5b775eac2 100644 --- a/crypto/test/src/ocsp/test/OCSPTest.cs +++ b/crypto/test/src/ocsp/test/OCSPTest.cs
@@ -835,7 +835,7 @@ namespace Org.BouncyCastle.Ocsp.Tests doTestIrregularVersionReq(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new OcspTest()); diff --git a/crypto/test/src/openpgp/test/PGPArmoredTest.cs b/crypto/test/src/openpgp/test/PGPArmoredTest.cs
index e48827a35..6dad6bcd6 100644 --- a/crypto/test/src/openpgp/test/PGPArmoredTest.cs +++ b/crypto/test/src/openpgp/test/PGPArmoredTest.cs
@@ -265,7 +265,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPArmoredTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpArmoredTest()); diff --git a/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs b/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs
index 668f8cce2..fe161e8f1 100644 --- a/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs +++ b/crypto/test/src/openpgp/test/PGPClearSignedSignatureTest.cs
@@ -428,7 +428,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests generateTest(crNlMessage, "\\r\\n"); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpClearSignedSignatureTest()); diff --git a/crypto/test/src/openpgp/test/PGPCompressionTest.cs b/crypto/test/src/openpgp/test/PGPCompressionTest.cs
index fdcf7222c..eddfa1e7c 100644 --- a/crypto/test/src/openpgp/test/PGPCompressionTest.cs +++ b/crypto/test/src/openpgp/test/PGPCompressionTest.cs
@@ -108,7 +108,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPCompressionTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpCompressionTest()); diff --git a/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs b/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs
index b86324954..e200cec21 100644 --- a/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs +++ b/crypto/test/src/openpgp/test/PGPDSAElGamalTest.cs
@@ -475,7 +475,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPDSAElGamalTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpDsaElGamalTest()); diff --git a/crypto/test/src/openpgp/test/PGPDSATest.cs b/crypto/test/src/openpgp/test/PGPDSATest.cs
index 7808ed6cd..55e346a6a 100644 --- a/crypto/test/src/openpgp/test/PGPDSATest.cs +++ b/crypto/test/src/openpgp/test/PGPDSATest.cs
@@ -580,7 +580,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPDSATest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpDsaTest()); diff --git a/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs b/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs
index 8f702b67b..35e85a2c8 100644 --- a/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs +++ b/crypto/test/src/openpgp/test/PGPNoPrivateKeyTest.cs
@@ -152,7 +152,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPNoPrivateKeyTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpNoPrivateKeyTest()); diff --git a/crypto/test/src/openpgp/test/PGPPBETest.cs b/crypto/test/src/openpgp/test/PGPPBETest.cs
index 29b786a83..b14506438 100644 --- a/crypto/test/src/openpgp/test/PGPPBETest.cs +++ b/crypto/test/src/openpgp/test/PGPPBETest.cs
@@ -157,11 +157,16 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests TestDateTime); ldOut.Write(text, 0, text.Length); - ldOut.Close(); +#if PORTABLE + ldOut.Dispose(); - comOut.Close(); + comOut.Dispose(); +#else + ldOut.Close(); - // + comOut.Close(); +#endif + // // encrypt - with stream close // MemoryStream cbOut = new UncloseableMemoryStream(); @@ -173,7 +178,11 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests byte[] bOutData = bOut.ToArray(); Stream cOut = cPk.Open(new UncloseableStream(cbOut), bOutData.Length); cOut.Write(bOutData, 0, bOutData.Length); +#if PORTABLE + cOut.Dispose(); +#else cOut.Close(); +#endif data = DecryptMessage(cbOut.ToArray()); if (!Arrays.AreEqual(data, text)) @@ -321,11 +330,17 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests ldOut.Write(msg, 0, msg.Length); - ldOut.Close(); +#if PORTABLE + ldOut.Dispose(); + + comOut.Dispose(); +#else + ldOut.Close(); comOut.Close(); - - cbOut = new MemoryStream(); +#endif + + cbOut = new MemoryStream(); cPk = new PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag.Cast5, true, rand); cPk.AddMethod(pass, HashAlgorithmTag.Sha1); @@ -335,7 +350,11 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests data = bOut.ToArray(); cOut.Write(data, 0, data.Length); - cOut.Close(); +#if PORTABLE + cOut.Dispose(); +#else + cOut.Close(); +#endif data = DecryptMessage(cbOut.ToArray()); if (!AreEqual(data, msg)) @@ -356,18 +375,25 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests private class UncloseableMemoryStream : MemoryStream { - public override void Close() +#if PORTABLE + protected override void Dispose(bool disposing) + { + throw new Exception("Dispose() called on underlying stream"); + } +#else + public override void Close() { throw new Exception("Close() called on underlying stream"); } - } +#endif + } public override string Name { get { return "PGPPBETest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpPbeTest()); diff --git a/crypto/test/src/openpgp/test/PGPPacketTest.cs b/crypto/test/src/openpgp/test/PGPPacketTest.cs
index b82f8526f..f8a13eeeb 100644 --- a/crypto/test/src/openpgp/test/PGPPacketTest.cs +++ b/crypto/test/src/openpgp/test/PGPPacketTest.cs
@@ -63,7 +63,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPPacketTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpPacketTest()); diff --git a/crypto/test/src/openpgp/test/PGPRSATest.cs b/crypto/test/src/openpgp/test/PGPRSATest.cs
index 82b569bbb..8944546fc 100644 --- a/crypto/test/src/openpgp/test/PGPRSATest.cs +++ b/crypto/test/src/openpgp/test/PGPRSATest.cs
@@ -387,7 +387,11 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests cOut.Write(bytes, 0, bytes.Length); +#if PORTABLE + cOut.Dispose(); +#else cOut.Close(); +#endif byte[] encData = bcOut.ToArray(); @@ -735,8 +739,12 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests Stream cOut = cPk.Open(new UncloseableStream(cbOut), shortText.Length); cOut.Write(shortText, 0, shortText.Length); - + +#if PORTABLE + cOut.Dispose(); +#else cOut.Close(); +#endif pgpF = new PgpObjectFactory(cbOut.ToArray()); @@ -772,7 +780,11 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests cOut.Write(text, 0, text.Length); +#if PORTABLE + cOut.Dispose(); +#else cOut.Close(); +#endif pgpF = new PgpObjectFactory(cbOut.ToArray()); @@ -981,11 +993,19 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests sGen.Update((byte)ch); } +#if PORTABLE + lOut.Dispose(); +#else lOut.Close(); +#endif sGen.Generate().Encode(bcOut); - + +#if PORTABLE + bcOut.Dispose(); +#else bcOut.Close(); +#endif // // verify generated signature @@ -1056,12 +1076,20 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests lOut.WriteByte((byte) ch); sGen.Update((byte)ch); } - + +#if PORTABLE + lOut.Dispose(); +#else lOut.Close(); +#endif sGen.Generate().Encode(bcOut); +#if PORTABLE + bcOut.Dispose(); +#else bcOut.Close(); +#endif // // verify generated signature @@ -1157,12 +1185,21 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests lOut.WriteByte((byte)ch); sGen.Update((byte)ch); } - + +#if PORTABLE + lOut.Dispose(); +#else lOut.Close(); +#endif sGen.Generate().Encode(bcOut); +#if PORTABLE + bcOut.Dispose(); +#else bcOut.Close(); +#endif + // // verify generated signature @@ -1205,10 +1242,17 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests private class UncloseableMemoryStream : MemoryStream { - public override void Close() +#if PORTABLE + protected override void Dispose(bool disposing) { - throw new Exception("Close() called on underlying stream"); + throw new Exception("Dispose() called on underlying stream"); } +#else + public override void Close() + { + throw new Exception("Close() called on underlying stream"); + } +#endif } public override string Name @@ -1216,7 +1260,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPRSATest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpRsaTest()); diff --git a/crypto/test/src/openpgp/test/PGPSignatureTest.cs b/crypto/test/src/openpgp/test/PGPSignatureTest.cs
index af490193a..23220cad3 100644 --- a/crypto/test/src/openpgp/test/PGPSignatureTest.cs +++ b/crypto/test/src/openpgp/test/PGPSignatureTest.cs
@@ -1069,7 +1069,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PGPSignatureTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpSignatureTest()); diff --git a/crypto/test/src/openpgp/test/PgpECDHTest.cs b/crypto/test/src/openpgp/test/PgpECDHTest.cs
index b7c500bd0..fb65d1de6 100644 --- a/crypto/test/src/openpgp/test/PgpECDHTest.cs +++ b/crypto/test/src/openpgp/test/PgpECDHTest.cs
@@ -263,7 +263,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PgpECDHTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpECDHTest()); diff --git a/crypto/test/src/openpgp/test/PgpECDsaTest.cs b/crypto/test/src/openpgp/test/PgpECDsaTest.cs
index 6259ef627..5bcc3ba68 100644 --- a/crypto/test/src/openpgp/test/PgpECDsaTest.cs +++ b/crypto/test/src/openpgp/test/PgpECDsaTest.cs
@@ -188,7 +188,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PgpECDsaTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpECDsaTest()); diff --git a/crypto/test/src/openpgp/test/PgpECMessageTest.cs b/crypto/test/src/openpgp/test/PgpECMessageTest.cs
index ac8283721..4a11dbdcc 100644 --- a/crypto/test/src/openpgp/test/PgpECMessageTest.cs +++ b/crypto/test/src/openpgp/test/PgpECMessageTest.cs
@@ -179,7 +179,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PgpECMessageTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpECMessageTest()); diff --git a/crypto/test/src/openpgp/test/PgpKeyRingTest.cs b/crypto/test/src/openpgp/test/PgpKeyRingTest.cs
index 5f1d83459..af35c85a4 100644 --- a/crypto/test/src/openpgp/test/PgpKeyRingTest.cs +++ b/crypto/test/src/openpgp/test/PgpKeyRingTest.cs
@@ -2620,7 +2620,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PgpKeyRingTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpKeyRingTest()); diff --git a/crypto/test/src/openpgp/test/PgpMarkerTest.cs b/crypto/test/src/openpgp/test/PgpMarkerTest.cs
index 89be7cd52..a4f95dfc1 100644 --- a/crypto/test/src/openpgp/test/PgpMarkerTest.cs +++ b/crypto/test/src/openpgp/test/PgpMarkerTest.cs
@@ -85,7 +85,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PgpMarkerTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpMarkerTest()); diff --git a/crypto/test/src/openpgp/test/PgpParsingTest.cs b/crypto/test/src/openpgp/test/PgpParsingTest.cs
index 78fca7570..34fc0af5f 100644 --- a/crypto/test/src/openpgp/test/PgpParsingTest.cs +++ b/crypto/test/src/openpgp/test/PgpParsingTest.cs
@@ -23,7 +23,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests get { return "PgpParsingTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PgpParsingTest()); diff --git a/crypto/test/src/openpgp/test/PgpUnicodeTest.cs b/crypto/test/src/openpgp/test/PgpUnicodeTest.cs
index 534e8a471..7f1bc62d1 100644 --- a/crypto/test/src/openpgp/test/PgpUnicodeTest.cs +++ b/crypto/test/src/openpgp/test/PgpUnicodeTest.cs
@@ -2,7 +2,6 @@ using System.IO; using System.Text; -using NUnit.Core; using NUnit.Framework; using Org.BouncyCastle.Math; @@ -123,7 +122,8 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests return new PgpSecretKeyRingBundle(SimpleTest.GetTestDataAsStream("openpgp.unicode." + keyName)); } - public static void Main(string[] args) +#if !LIB + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } @@ -138,5 +138,6 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests return suite; } } +#endif } } diff --git a/crypto/test/src/openpgp/test/RegressionTest.cs b/crypto/test/src/openpgp/test/RegressionTest.cs
index 329960bd8..7a68be55e 100644 --- a/crypto/test/src/openpgp/test/RegressionTest.cs +++ b/crypto/test/src/openpgp/test/RegressionTest.cs
@@ -26,7 +26,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp.Tests new PgpParsingTest(), }; - public static void Main( + public static void MainOld( string[] args) { foreach (ITest test in tests) diff --git a/crypto/test/src/openssl/test/AllTests.cs b/crypto/test/src/openssl/test/AllTests.cs
index 0cc2dcd85..b1898cbc7 100644 --- a/crypto/test/src/openssl/test/AllTests.cs +++ b/crypto/test/src/openssl/test/AllTests.cs
@@ -36,7 +36,7 @@ namespace Org.BouncyCastle.OpenSsl.Tests } #if !LIB - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/openssl/test/ReaderTest.cs b/crypto/test/src/openssl/test/ReaderTest.cs
index c0be5c848..9a45968cb 100644 --- a/crypto/test/src/openssl/test/ReaderTest.cs +++ b/crypto/test/src/openssl/test/ReaderTest.cs
@@ -1,6 +1,6 @@ using System; using System.IO; - +using System.Reflection; using NUnit.Framework; using Org.BouncyCastle.Asn1.Cms; @@ -320,7 +320,7 @@ namespace Org.BouncyCastle.OpenSsl.Tests Fail("Didn't find OpenSSL key"); } - if (!expectedPrivKeyType.IsInstanceOfType(kp.Private)) + if (!expectedPrivKeyType.GetTypeInfo().IsInstanceOfType(kp.Private)) { Fail("Returned key not of correct type"); } @@ -362,7 +362,7 @@ namespace Org.BouncyCastle.OpenSsl.Tests return new PemReader(tr, pGet); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ReaderTest()); diff --git a/crypto/test/src/openssl/test/WriterTest.cs b/crypto/test/src/openssl/test/WriterTest.cs
index 0d7887771..a66fd22ed 100644 --- a/crypto/test/src/openssl/test/WriterTest.cs +++ b/crypto/test/src/openssl/test/WriterTest.cs
@@ -168,7 +168,7 @@ namespace Org.BouncyCastle.OpenSsl.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new WriterTest()); diff --git a/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs b/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs
index 23639b112..f08d89b1e 100644 --- a/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs +++ b/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs
@@ -78,7 +78,7 @@ namespace Org.BouncyCastle.Pkcs.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new EncryptedPrivateKeyInfoTest()); diff --git a/crypto/test/src/pkcs/test/PKCS10Test.cs b/crypto/test/src/pkcs/test/PKCS10Test.cs
index d0227b9de..009f6b141 100644 --- a/crypto/test/src/pkcs/test/PKCS10Test.cs +++ b/crypto/test/src/pkcs/test/PKCS10Test.cs
@@ -71,7 +71,7 @@ namespace Org.BouncyCastle.Pkcs.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Pkcs10Test()); diff --git a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
index cd9dfcfad..1e7272f0f 100644 --- a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs +++ b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
@@ -904,7 +904,7 @@ namespace Org.BouncyCastle.Pkcs.Tests doTestPkcs12Store(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Pkcs12StoreTest()); diff --git a/crypto/test/src/security/test/TestMacUtil.cs b/crypto/test/src/security/test/TestMacUtil.cs
index 1eb6f35b0..d11fc4b96 100644 --- a/crypto/test/src/security/test/TestMacUtil.cs +++ b/crypto/test/src/security/test/TestMacUtil.cs
@@ -14,14 +14,13 @@ namespace Org.BouncyCastle.Security.Tests [Test] public void TestCultureIndependence() { - Thread t = Thread.CurrentThread; - CultureInfo ci = t.CurrentCulture; + CultureInfo ci = CultureInfo.CurrentCulture; try { /* * In Hungarian, the "CS" in "HMACSHA256" is linguistically a single character, so "HMAC" is not a prefix. */ - t.CurrentCulture = new CultureInfo("hu-HU"); + CultureInfo.CurrentCulture = new CultureInfo("hu-HU"); IMac mac = MacUtilities.GetMac("HMACSHA256"); Assert.NotNull(mac); } @@ -31,7 +30,7 @@ namespace Org.BouncyCastle.Security.Tests } finally { - t.CurrentCulture = ci; + CultureInfo.CurrentCulture = ci; } } } diff --git a/crypto/test/src/security/test/TestParameterUtil.cs b/crypto/test/src/security/test/TestParameterUtil.cs
index fe494212a..265a66ba9 100644 --- a/crypto/test/src/security/test/TestParameterUtil.cs +++ b/crypto/test/src/security/test/TestParameterUtil.cs
@@ -1,5 +1,5 @@ using System; - +using System.Reflection; using NUnit.Framework; using Org.BouncyCastle.Asn1; @@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Security.Tests Type expectedType, byte[] expectedBytes) { - Assert.IsTrue(expectedType.IsInstanceOfType(key)); + Assert.IsTrue(expectedType.GetTypeInfo().IsInstanceOfType(key)); Assert.IsTrue(Arrays.AreEqual(expectedBytes, key.GetKey())); } } diff --git a/crypto/test/src/security/test/TestSignerUtil.cs b/crypto/test/src/security/test/TestSignerUtil.cs
index 18b856e3f..d815d53a5 100644 --- a/crypto/test/src/security/test/TestSignerUtil.cs +++ b/crypto/test/src/security/test/TestSignerUtil.cs
@@ -120,7 +120,7 @@ namespace Org.BouncyCastle.Security.Tests { ISigner signer = SignerUtilities.GetSigner(algorithm); - string upper = algorithm.ToUpper(CultureInfo.InvariantCulture); + string upper = algorithm.ToUpperInvariant(); int withPos = upper.LastIndexOf("WITH"); string cipherName = withPos < 0 diff --git a/crypto/test/src/test/AESSICTest.cs b/crypto/test/src/test/AESSICTest.cs
index f8de35efd..c4748c06a 100644 --- a/crypto/test/src/test/AESSICTest.cs +++ b/crypto/test/src/test/AESSICTest.cs
@@ -130,7 +130,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new AesSicTest()); diff --git a/crypto/test/src/test/AESTest.cs b/crypto/test/src/test/AESTest.cs
index 5a1ce8046..f42daedfe 100644 --- a/crypto/test/src/test/AESTest.cs +++ b/crypto/test/src/test/AESTest.cs
@@ -354,7 +354,7 @@ namespace Org.BouncyCastle.Tests TestGcm(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new AesTest()); diff --git a/crypto/test/src/test/AttrCertSelectorTest.cs b/crypto/test/src/test/AttrCertSelectorTest.cs
index 37c1e66d2..3f414e7b9 100644 --- a/crypto/test/src/test/AttrCertSelectorTest.cs +++ b/crypto/test/src/test/AttrCertSelectorTest.cs
@@ -205,7 +205,7 @@ namespace Org.BouncyCastle.Tests TestSelector(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new AttrCertSelectorTest()); diff --git a/crypto/test/src/test/AttrCertTest.cs b/crypto/test/src/test/AttrCertTest.cs
index d701d007e..b119bafa0 100644 --- a/crypto/test/src/test/AttrCertTest.cs +++ b/crypto/test/src/test/AttrCertTest.cs
@@ -604,7 +604,7 @@ namespace Org.BouncyCastle.Tests doTestGenerateWithPrincipal(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new AttrCertTest()); diff --git a/crypto/test/src/test/BlockCipherTest.cs b/crypto/test/src/test/BlockCipherTest.cs
index e6f92b84e..ddb0e1a7e 100644 --- a/crypto/test/src/test/BlockCipherTest.cs +++ b/crypto/test/src/test/BlockCipherTest.cs
@@ -466,7 +466,7 @@ namespace Org.BouncyCastle.Tests rand = new FixedSecureRandom(); - string[] parts = algorithm.ToUpper(CultureInfo.InvariantCulture).Split('/'); + string[] parts = algorithm.ToUpperInvariant().Split('/'); string baseAlgorithm = parts[0]; string mode = parts.Length > 1 ? parts[1] : null; @@ -498,7 +498,7 @@ namespace Org.BouncyCastle.Tests inCipher = CipherUtilities.GetCipher(algorithm); outCipher = CipherUtilities.GetCipher(algorithm); - if (!inCipher.AlgorithmName.ToUpper(CultureInfo.InvariantCulture).StartsWith(baseAlgorithm)) + if (!inCipher.AlgorithmName.ToUpperInvariant().StartsWith(baseAlgorithm)) { Fail("wrong cipher returned!"); } @@ -1075,7 +1075,7 @@ namespace Org.BouncyCastle.Tests doTestExceptions(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new BlockCipherTest()); diff --git a/crypto/test/src/test/CMacTest.cs b/crypto/test/src/test/CMacTest.cs
index f80caca7d..5688c04e1 100644 --- a/crypto/test/src/test/CMacTest.cs +++ b/crypto/test/src/test/CMacTest.cs
@@ -260,7 +260,7 @@ namespace Org.BouncyCastle.Tests get { return "CMac"; } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new CMacTest()); } diff --git a/crypto/test/src/test/CRL5Test.cs b/crypto/test/src/test/CRL5Test.cs
index ebd74af69..73a7b985d 100644 --- a/crypto/test/src/test/CRL5Test.cs +++ b/crypto/test/src/test/CRL5Test.cs
@@ -248,7 +248,7 @@ namespace Org.BouncyCastle.Tests TestDirectCrl(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Crl5Test()); diff --git a/crypto/test/src/test/CamelliaTest.cs b/crypto/test/src/test/CamelliaTest.cs
index f8e3520a3..1272c9f80 100644 --- a/crypto/test/src/test/CamelliaTest.cs +++ b/crypto/test/src/test/CamelliaTest.cs
@@ -195,7 +195,7 @@ namespace Org.BouncyCastle.Tests TestWrapOids(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CamelliaTest()); diff --git a/crypto/test/src/test/CertPathBuilderTest.cs b/crypto/test/src/test/CertPathBuilderTest.cs
index e31bde866..c2f037c45 100644 --- a/crypto/test/src/test/CertPathBuilderTest.cs +++ b/crypto/test/src/test/CertPathBuilderTest.cs
@@ -146,7 +146,7 @@ namespace Org.BouncyCastle.Tests get { return "CertPathBuilder"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CertPathBuilderTest()); diff --git a/crypto/test/src/test/CertPathTest.cs b/crypto/test/src/test/CertPathTest.cs
index f1a7c94f6..164a9a63f 100644 --- a/crypto/test/src/test/CertPathTest.cs +++ b/crypto/test/src/test/CertPathTest.cs
@@ -244,7 +244,7 @@ namespace Org.BouncyCastle.Tests get { return "CertPath"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CertPathTest()); diff --git a/crypto/test/src/test/CertPathValidatorTest.cs b/crypto/test/src/test/CertPathValidatorTest.cs
index f83ac850a..df2ba4c8f 100644 --- a/crypto/test/src/test/CertPathValidatorTest.cs +++ b/crypto/test/src/test/CertPathValidatorTest.cs
@@ -257,7 +257,7 @@ namespace Org.BouncyCastle.Tests get { return "CertPathValidator"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CertPathValidatorTest()); diff --git a/crypto/test/src/test/CertTest.cs b/crypto/test/src/test/CertTest.cs
index d9af06c82..9a4965297 100644 --- a/crypto/test/src/test/CertTest.cs +++ b/crypto/test/src/test/CertTest.cs
@@ -2611,7 +2611,7 @@ namespace Org.BouncyCastle.Tests checkCertificate(18, emptyDNCert); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CertTest()); diff --git a/crypto/test/src/test/CipherStreamTest.cs b/crypto/test/src/test/CipherStreamTest.cs
index 0809dfe80..671778ae9 100644 --- a/crypto/test/src/test/CipherStreamTest.cs +++ b/crypto/test/src/test/CipherStreamTest.cs
@@ -440,7 +440,7 @@ namespace Org.BouncyCastle.Tests get { return "CipherStreamTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new CipherStreamTest()); diff --git a/crypto/test/src/test/DESedeTest.cs b/crypto/test/src/test/DESedeTest.cs
index d84b994f0..aea5d145e 100644 --- a/crypto/test/src/test/DESedeTest.cs +++ b/crypto/test/src/test/DESedeTest.cs
@@ -281,7 +281,7 @@ namespace Org.BouncyCastle.Tests wrapTest("TDEA", 1, kek1, iv1, in1, out1); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DesEdeTest()); diff --git a/crypto/test/src/test/DHTest.cs b/crypto/test/src/test/DHTest.cs
index 1acc0d603..da31673de 100644 --- a/crypto/test/src/test/DHTest.cs +++ b/crypto/test/src/test/DHTest.cs
@@ -735,7 +735,7 @@ namespace Org.BouncyCastle.Tests TestSubgroupConfinement(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DHTest()); diff --git a/crypto/test/src/test/DSATest.cs b/crypto/test/src/test/DSATest.cs
index a8b8bec3b..d7382d256 100644 --- a/crypto/test/src/test/DSATest.cs +++ b/crypto/test/src/test/DSATest.cs
@@ -855,7 +855,7 @@ namespace Org.BouncyCastle.Tests get { return "DSA/ECDSA"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DsaTest()); diff --git a/crypto/test/src/test/DigestTest.cs b/crypto/test/src/test/DigestTest.cs
index 5d840ee66..b0493db1f 100644 --- a/crypto/test/src/test/DigestTest.cs +++ b/crypto/test/src/test/DigestTest.cs
@@ -158,7 +158,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new DigestTest()); diff --git a/crypto/test/src/test/ECDSA5Test.cs b/crypto/test/src/test/ECDSA5Test.cs
index 3bf746edb..40ea21c0a 100644 --- a/crypto/test/src/test/ECDSA5Test.cs +++ b/crypto/test/src/test/ECDSA5Test.cs
@@ -291,7 +291,7 @@ namespace Org.BouncyCastle.Tests TestGeneration(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ECDsa5Test()); diff --git a/crypto/test/src/test/ECEncodingTest.cs b/crypto/test/src/test/ECEncodingTest.cs
index 8d993c15e..972029e35 100644 --- a/crypto/test/src/test/ECEncodingTest.cs +++ b/crypto/test/src/test/ECEncodingTest.cs
@@ -225,7 +225,7 @@ namespace Org.BouncyCastle.Tests key.Parameters); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ECEncodingTest()); diff --git a/crypto/test/src/test/ECNRTest.cs b/crypto/test/src/test/ECNRTest.cs
index 8a24443c2..ff1176505 100644 --- a/crypto/test/src/test/ECNRTest.cs +++ b/crypto/test/src/test/ECNRTest.cs
@@ -195,7 +195,7 @@ namespace Org.BouncyCastle.Tests TestECNR521bitPrime(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ECNRTest()); diff --git a/crypto/test/src/test/ElGamalTest.cs b/crypto/test/src/test/ElGamalTest.cs
index 9a87ea9b1..feecad23d 100644 --- a/crypto/test/src/test/ElGamalTest.cs +++ b/crypto/test/src/test/ElGamalTest.cs
@@ -325,7 +325,7 @@ namespace Org.BouncyCastle.Tests TestRandom256(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new ElGamalTest()); diff --git a/crypto/test/src/test/EncryptedPrivateKeyInfoTest.cs b/crypto/test/src/test/EncryptedPrivateKeyInfoTest.cs
index baac5ff7f..f2506cd99 100644 --- a/crypto/test/src/test/EncryptedPrivateKeyInfoTest.cs +++ b/crypto/test/src/test/EncryptedPrivateKeyInfoTest.cs
@@ -137,7 +137,7 @@ namespace Org.BouncyCastle.Tests get { return "EncryptedPrivateKeyInfoTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new EncryptedPrivateKeyInfoTest()); diff --git a/crypto/test/src/test/FIPSDESTest.cs b/crypto/test/src/test/FIPSDESTest.cs
index 1f40e1591..f1efe2527 100644 --- a/crypto/test/src/test/FIPSDESTest.cs +++ b/crypto/test/src/test/FIPSDESTest.cs
@@ -185,7 +185,7 @@ namespace Org.BouncyCastle.Tests return new SimpleTestResult(true, Name + ": Okay"); } - public static void Main( + public static void MainOld( string[] args) { ITest test = new FipsDesTest(); diff --git a/crypto/test/src/test/GOST28147Test.cs b/crypto/test/src/test/GOST28147Test.cs
index 0adfad334..fcdfaaf28 100644 --- a/crypto/test/src/test/GOST28147Test.cs +++ b/crypto/test/src/test/GOST28147Test.cs
@@ -228,7 +228,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Gost28147Test()); diff --git a/crypto/test/src/test/GOST3410Test.cs b/crypto/test/src/test/GOST3410Test.cs
index db232c5a1..931332cfb 100644 --- a/crypto/test/src/test/GOST3410Test.cs +++ b/crypto/test/src/test/GOST3410Test.cs
@@ -363,7 +363,7 @@ namespace Org.BouncyCastle.Tests parametersTest(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Gost3410Test()); diff --git a/crypto/test/src/test/HMacTest.cs b/crypto/test/src/test/HMacTest.cs
index e4f5cb9c1..ef8bba8bd 100644 --- a/crypto/test/src/test/HMacTest.cs +++ b/crypto/test/src/test/HMacTest.cs
@@ -172,7 +172,7 @@ namespace Org.BouncyCastle.Tests get { return "HMac"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new HMacTest()); diff --git a/crypto/test/src/test/IESTest.cs b/crypto/test/src/test/IESTest.cs
index 193fe1ae9..812b05f97 100644 --- a/crypto/test/src/test/IESTest.cs +++ b/crypto/test/src/test/IESTest.cs
@@ -228,7 +228,7 @@ namespace Org.BouncyCastle.Tests // } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new IesTest()); diff --git a/crypto/test/src/test/MacTest.cs b/crypto/test/src/test/MacTest.cs
index d4b3188bd..86b64d905 100644 --- a/crypto/test/src/test/MacTest.cs +++ b/crypto/test/src/test/MacTest.cs
@@ -199,7 +199,7 @@ namespace Org.BouncyCastle.Tests get { return "Mac"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new MacTest()); diff --git a/crypto/test/src/test/MqvTest.cs b/crypto/test/src/test/MqvTest.cs
index ef36e1a23..ec5c610ca 100644 --- a/crypto/test/src/test/MqvTest.cs +++ b/crypto/test/src/test/MqvTest.cs
@@ -90,7 +90,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new MqvTest()); diff --git a/crypto/test/src/test/NamedCurveTest.cs b/crypto/test/src/test/NamedCurveTest.cs
index f7c831f17..5b29a4152 100644 --- a/crypto/test/src/test/NamedCurveTest.cs +++ b/crypto/test/src/test/NamedCurveTest.cs
@@ -394,7 +394,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NamedCurveTest()); diff --git a/crypto/test/src/test/NistCertPathTest.cs b/crypto/test/src/test/NistCertPathTest.cs
index 0f42e24d0..d070e36d4 100644 --- a/crypto/test/src/test/NistCertPathTest.cs +++ b/crypto/test/src/test/NistCertPathTest.cs
@@ -5175,7 +5175,7 @@ namespace Org.BouncyCastle.Tests End_Certificate_RL_09_01_crt }; - public static void Main( + public static void MainOld( string[] args) { RunTest(new NistCertPathTest()); diff --git a/crypto/test/src/test/NoekeonTest.cs b/crypto/test/src/test/NoekeonTest.cs
index c3745da1c..8f4cbfe5c 100644 --- a/crypto/test/src/test/NoekeonTest.cs +++ b/crypto/test/src/test/NoekeonTest.cs
@@ -140,7 +140,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new NoekeonTest()); diff --git a/crypto/test/src/test/PBETest.cs b/crypto/test/src/test/PBETest.cs
index ee61a027c..366af552d 100644 --- a/crypto/test/src/test/PBETest.cs +++ b/crypto/test/src/test/PBETest.cs
@@ -510,7 +510,7 @@ namespace Org.BouncyCastle.Tests get { return "PbeTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PbeTest()); diff --git a/crypto/test/src/test/PKCS10CertRequestTest.cs b/crypto/test/src/test/PKCS10CertRequestTest.cs
index 9bad0a678..7c96baea1 100644 --- a/crypto/test/src/test/PKCS10CertRequestTest.cs +++ b/crypto/test/src/test/PKCS10CertRequestTest.cs
@@ -453,7 +453,7 @@ namespace Org.BouncyCastle.Tests nullPointerTest(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new Pkcs10CertRequestTest()); diff --git a/crypto/test/src/test/PSSTest.cs b/crypto/test/src/test/PSSTest.cs
index 677289e7c..c4c41da8f 100644 --- a/crypto/test/src/test/PSSTest.cs +++ b/crypto/test/src/test/PSSTest.cs
@@ -236,7 +236,7 @@ namespace Org.BouncyCastle.Tests get { return "PSS"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PssTest()); diff --git a/crypto/test/src/test/PkixNameConstraintsTest.cs b/crypto/test/src/test/PkixNameConstraintsTest.cs
index a20fc33c4..f26b88a5e 100644 --- a/crypto/test/src/test/PkixNameConstraintsTest.cs +++ b/crypto/test/src/test/PkixNameConstraintsTest.cs
@@ -416,7 +416,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PkixNameConstraintsTest()); diff --git a/crypto/test/src/test/PkixPolicyMappingTest.cs b/crypto/test/src/test/PkixPolicyMappingTest.cs
index 47e2c3120..dc56d0487 100644 --- a/crypto/test/src/test/PkixPolicyMappingTest.cs +++ b/crypto/test/src/test/PkixPolicyMappingTest.cs
@@ -402,7 +402,7 @@ namespace Org.BouncyCastle.Tests } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PkixPolicyMappingTest()); diff --git a/crypto/test/src/test/PkixTest.cs b/crypto/test/src/test/PkixTest.cs
index 882319610..c30c01c93 100644 --- a/crypto/test/src/test/PkixTest.cs +++ b/crypto/test/src/test/PkixTest.cs
@@ -231,7 +231,7 @@ namespace Org.BouncyCastle.Tests get { return "PkixTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new PkixTest()); diff --git a/crypto/test/src/test/RSATest.cs b/crypto/test/src/test/RSATest.cs
index a765ff138..0c57bb4f7 100644 --- a/crypto/test/src/test/RSATest.cs +++ b/crypto/test/src/test/RSATest.cs
@@ -665,7 +665,7 @@ namespace Org.BouncyCastle.Tests get { return "RSATest"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new RsaTest(); diff --git a/crypto/test/src/test/RegressionTest.cs b/crypto/test/src/test/RegressionTest.cs
index 0ffde72e4..9b55dffa6 100644 --- a/crypto/test/src/test/RegressionTest.cs +++ b/crypto/test/src/test/RegressionTest.cs
@@ -66,7 +66,7 @@ namespace Org.BouncyCastle.Tests new Crl5Test(), }; - public static void Main( + public static void MainOld( string[] args) { for (int i = 0; i != tests.Length; i++) diff --git a/crypto/test/src/test/SEEDTest.cs b/crypto/test/src/test/SEEDTest.cs
index 2b380d5b7..cc8ee5757 100644 --- a/crypto/test/src/test/SEEDTest.cs +++ b/crypto/test/src/test/SEEDTest.cs
@@ -181,7 +181,7 @@ namespace Org.BouncyCastle.Tests TestWrapOids(); } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SeedTest()); diff --git a/crypto/test/src/test/SigTest.cs b/crypto/test/src/test/SigTest.cs
index 803a24493..dcf98066e 100644 --- a/crypto/test/src/test/SigTest.cs +++ b/crypto/test/src/test/SigTest.cs
@@ -361,7 +361,7 @@ namespace Org.BouncyCastle.Tests get { return "SigTest"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new SigTest()); diff --git a/crypto/test/src/test/WrapTest.cs b/crypto/test/src/test/WrapTest.cs
index bb49446e7..039fb6ede 100644 --- a/crypto/test/src/test/WrapTest.cs +++ b/crypto/test/src/test/WrapTest.cs
@@ -74,7 +74,7 @@ namespace Org.BouncyCastle.Tests get { return "WrapTest"; } } - public static void Main( + public static void MainOld( string[] args) { ITest test = new WrapTest(); diff --git a/crypto/test/src/test/X509CertificatePairTest.cs b/crypto/test/src/test/X509CertificatePairTest.cs
index a83de4cf0..ed694fef7 100644 --- a/crypto/test/src/test/X509CertificatePairTest.cs +++ b/crypto/test/src/test/X509CertificatePairTest.cs
@@ -132,7 +132,7 @@ namespace Org.BouncyCastle.Tests get { return "X509CertificatePair"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new X509CertificatePairTest()); diff --git a/crypto/test/src/test/X509StoreTest.cs b/crypto/test/src/test/X509StoreTest.cs
index 37673b8b4..739772494 100644 --- a/crypto/test/src/test/X509StoreTest.cs +++ b/crypto/test/src/test/X509StoreTest.cs
@@ -318,7 +318,7 @@ namespace Org.BouncyCastle.Tests get { return "IX509Store"; } } - public static void Main( + public static void MainOld( string[] args) { RunTest(new X509StoreTest()); diff --git a/crypto/test/src/tsp/test/AllTests.cs b/crypto/test/src/tsp/test/AllTests.cs
index 58d096d54..b1c5698a7 100644 --- a/crypto/test/src/tsp/test/AllTests.cs +++ b/crypto/test/src/tsp/test/AllTests.cs
@@ -10,7 +10,7 @@ namespace Org.BouncyCastle.Tsp.Tests { public class AllTests { - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/util/io/pem/test/AllTests.cs b/crypto/test/src/util/io/pem/test/AllTests.cs
index 921c40cb8..db66c4ca4 100644 --- a/crypto/test/src/util/io/pem/test/AllTests.cs +++ b/crypto/test/src/util/io/pem/test/AllTests.cs
@@ -22,7 +22,7 @@ namespace Org.BouncyCastle.Utilities.IO.Pem.Tests public class AllTests { #if !LIB - public static void Main(string[] args) + public static void MainOld(string[] args) { Suite.Run(new NullListener(), NUnit.Core.TestFilter.Empty); } diff --git a/crypto/test/src/util/test/PortableExtensions.cs b/crypto/test/src/util/test/PortableExtensions.cs new file mode 100644
index 000000000..1e37abf41 --- /dev/null +++ b/crypto/test/src/util/test/PortableExtensions.cs
@@ -0,0 +1,22 @@ + +#if PORTABLE +using System; +using System.IO; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Net.Sockets; + +namespace Org.BouncyCastle +{ + static class PortableExtensions + { + public static void Close(this Stream stream) => stream.Dispose(); + public static void Close(this TextWriter writer) => writer.Dispose(); + public static void Close(this TextReader reader) => reader.Dispose(); + public static void Close(this TcpClient client) => client.Dispose(); + } +} + +#endif diff --git a/crypto/test/src/util/test/SimpleTest.cs b/crypto/test/src/util/test/SimpleTest.cs
index 154da27f4..45b8a6a06 100644 --- a/crypto/test/src/util/test/SimpleTest.cs +++ b/crypto/test/src/util/test/SimpleTest.cs
@@ -102,8 +102,8 @@ namespace Org.BouncyCastle.Utilities.Test string name) { string fullName = GetFullName(name); - - return Assembly.GetExecutingAssembly().GetManifestResourceStream(fullName); + + return typeof(SimpleTest).GetTypeInfo().Assembly.GetManifestResourceStream(fullName); } internal static string[] GetTestDataEntries( @@ -112,7 +112,7 @@ namespace Org.BouncyCastle.Utilities.Test string fullPrefix = GetFullName(prefix); ArrayList result = new ArrayList(); - string[] fullNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); + string[] fullNames = typeof(SimpleTest).GetTypeInfo().Assembly.GetManifestResourceNames(); foreach (string fullName in fullNames) { if (fullName.StartsWith(fullPrefix)) @@ -127,25 +127,13 @@ namespace Org.BouncyCastle.Utilities.Test private static string GetFullName( string name) { -#if SEPARATE_UNIT_TESTS - return "UnitTests.data." + name; -#elif PORTABLE - return "crypto.tests." + name; -#else return "crypto.test.data." + name; -#endif } private static string GetShortName( string fullName) { -#if SEPARATE_UNIT_TESTS - return fullName.Substring("UnitTests.data.".Length); -#elif PORTABLE - return fullName.Substring("crypto.tests.".Length); -#else return fullName.Substring("crypto.test.data.".Length); -#endif } #if NETCF_1_0 || NETCF_2_0 diff --git a/crypto/test/src/x509/test/TestCertificateGen.cs b/crypto/test/src/x509/test/TestCertificateGen.cs
index e91a102f1..448bb8794 100644 --- a/crypto/test/src/x509/test/TestCertificateGen.cs +++ b/crypto/test/src/x509/test/TestCertificateGen.cs
@@ -726,7 +726,7 @@ namespace Org.BouncyCastle.X509.Tests } } - public static void Main(string[] args) + public static void MainOld(string[] args) { RunTest(new TestCertificateGen()); }