summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-03-23 15:49:48 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-03-23 15:49:48 +0700
commit73b9be78466931d24597fa107df9675c28a0b962 (patch)
tree5dc7c495b0ed254a9a084b9c226b4b38b9c3882a /crypto
parentReduce memory usage of INTERLEAVE2_TABLE (diff)
downloadBouncyCastle.NET-ed25519-73b9be78466931d24597fa107df9675c28a0b962.tar.xz
Improve handling of extensions for session resumption
Diffstat (limited to 'crypto')
-rw-r--r--crypto/TestResult.xml1985
-rw-r--r--crypto/src/crypto/tls/AbstractTlsServer.cs4
-rw-r--r--crypto/src/crypto/tls/DtlsClientProtocol.cs215
-rw-r--r--crypto/src/crypto/tls/DtlsProtocol.cs28
-rw-r--r--crypto/src/crypto/tls/DtlsServerProtocol.cs107
-rw-r--r--crypto/src/crypto/tls/TlsClientProtocol.cs81
-rw-r--r--crypto/src/crypto/tls/TlsProtocol.cs30
-rw-r--r--crypto/src/crypto/tls/TlsServerProtocol.cs32
8 files changed, 2258 insertions, 224 deletions
diff --git a/crypto/TestResult.xml b/crypto/TestResult.xml
new file mode 100644
index 000000000..047a66cb3
--- /dev/null
+++ b/crypto/TestResult.xml
@@ -0,0 +1,1985 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!--This file represents the results of running a test suite-->
+<test-results name="C:\Users\Peter\My Code\bc\git\bc-csharp\crypto\testcfg.nunit" total="703" errors="0" failures="0" not-run="0" inconclusive="0" ignored="0" skipped="0" invalid="0" date="2015-03-09" time="21:14:56">
+  <environment nunit-version="2.6.2.12296" clr-version="2.0.50727.5485" os-version="Microsoft Windows NT 6.1.7601 Service Pack 1" platform="Win32NT" cwd="C:\Users\Peter\My Code\bc\git\bc-csharp\crypto" machine-name="CERAMIC" user="Peter" user-domain="Ceramic" />
+  <culture-info current-culture="en-AU" current-uiculture="en-US" />
+  <test-suite type="Project" name="C:\Users\Peter\My Code\bc\git\bc-csharp\crypto\testcfg.nunit" executed="True" result="Success" success="True" time="528.916" asserts="0">
+    <results>
+      <test-suite type="Assembly" name="C:\Users\Peter\My Code\bc\git\bc-csharp\crypto\./test/bin/BCTest.dll" executed="True" result="Success" success="True" time="528.899" asserts="0">
+        <results>
+          <test-suite type="Namespace" name="Org" executed="True" result="Success" success="True" time="528.899" asserts="0">
+            <results>
+              <test-suite type="Namespace" name="BouncyCastle" executed="True" result="Success" success="True" time="528.899" asserts="0">
+                <results>
+                  <test-suite type="Namespace" name="Asn1" executed="True" result="Success" success="True" time="0.849" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.849" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="AdditionalInformationSyntaxUnitTest" executed="True" result="Success" success="True" time="0.060" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.AdditionalInformationSyntaxUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.047" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AdmissionsUnitTest" executed="True" result="Success" success="True" time="0.062" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.AdmissionsUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.062" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AdmissionSyntaxUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.AdmissionSyntaxUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Asn1SequenceParserTest" executed="True" result="Success" success="True" time="0.060" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestBerExplicitTaggedSequenceWriting" executed="True" result="Success" success="True" time="0.018" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestBerReading" executed="True" result="Success" success="True" time="0.015" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestBerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestDerExplicitTaggedSequenceWriting" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestDerImplicitTaggedSequenceWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestDerReading" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestDerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedBerDerReading" executed="True" result="Success" success="True" time="0.001" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedBerDerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedBerReading" executed="True" result="Success" success="True" time="0.001" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedBerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedDerReading" executed="True" result="Success" success="True" time="0.001" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedDerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedExplicitTagDerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestNestedImplicitTagDerWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Asn1SequenceParserTest.TestSequenceWithDerNullReading" executed="True" result="Success" success="True" time="0.001" asserts="5" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AttributeTableUnitTest" executed="True" result="Success" success="True" time="0.009" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.AttributeTableUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="BiometricDataUnitTest" executed="True" result="Success" success="True" time="0.013" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.BiometricDataUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.012" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="BitStringTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.BitStringTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CertHashUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.CertHashUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CertificateTest" executed="True" result="Success" success="True" time="0.058" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.CertificateTest.TestFunction" executed="True" result="Success" success="True" time="0.057" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CmsTest" executed="True" result="Success" success="True" time="0.050" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.CmsTest.TestFunction" executed="True" result="Success" success="True" time="0.049" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CommitmentTypeIndicationUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.CommitmentTypeIndicationUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CommitmentTypeQualifierUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.CommitmentTypeQualifierUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ContentHintsUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ContentHintsUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CscaMasterListTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.CscaMasterListTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DataGroupHashUnitTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.DataGroupHashUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DeclarationOfMajorityUnitTest" executed="True" result="Success" success="True" time="0.007" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.DeclarationOfMajorityUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.007" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DerApplicationSpecificTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.DerApplicationSpecificTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DerUtf8StringTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.DerUtf8StringTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EncryptedPrivateKeyInfoTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.EncryptedPrivateKeyInfoTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EnumeratedTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.EnumeratedTest.TestReadingMultipleDoubleByteItems" executed="True" result="Success" success="True" time="0.002" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.EnumeratedTest.TestReadingMultipleSingleByteItems" executed="True" result="Success" success="True" time="0.001" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.EnumeratedTest.TestReadingMultipleTripleByteItems" executed="True" result="Success" success="True" time="0.001" asserts="6" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EqualsAndHashCodeTest" executed="True" result="Success" success="True" time="0.019" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.EqualsAndHashCodeTest.TestFunction" executed="True" result="Success" success="True" time="0.018" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EssCertIDv2UnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.EssCertIDv2UnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="GeneralizedTimeTest" executed="True" result="Success" success="True" time="0.007" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.GeneralizedTimeTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="GeneralNameTest" executed="True" result="Success" success="True" time="0.011" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.GeneralNameTest.TestFunction" executed="True" result="Success" success="True" time="0.010" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="GenerationTest" executed="True" result="Success" success="True" time="0.037" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.GenerationTest.TestFunction" executed="True" result="Success" success="True" time="0.035" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="InputStreamTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.InputStreamTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Iso4217CurrencyCodeUnitTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Iso4217CurrencyCodeUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="IssuingDistributionPointUnitTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.IssuingDistributionPointUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="KeyUsageTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.KeyUsageTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="LDSSecurityObjectUnitTest" executed="True" result="Success" success="True" time="0.010" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.LDSSecurityObjectUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MiscTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.MiscTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MonetaryLimitUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.MonetaryLimitUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MonetaryValueUnitTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.MonetaryValueUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="NameOrPseudonymUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.NameOrPseudonymUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="NamingAuthorityUnitTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.NamingAuthorityUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="NetscapeCertTypeTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.NetscapeCertTypeTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OcspTest" executed="True" result="Success" success="True" time="0.016" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OcspTest.TestFunction" executed="True" result="Success" success="True" time="0.015" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OctetStringTest" executed="True" result="Success" success="True" time="0.011" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OctetStringTest.TestNestedStructure" executed="True" result="Success" success="True" time="0.006" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OctetStringTest.TestReadingWriting" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OctetStringTest.TestReadingWritingNested" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OctetStringTest.TestReadingWritingZeroInLength" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OidTest" executed="True" result="Success" success="True" time="0.009" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OidTest.TestFunction" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OtherCertIDUnitTest" executed="True" result="Success" success="True" time="0.008" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OtherCertIDUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OtherSigningCertificateUnitTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.OtherSigningCertificateUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ParseTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ParseTest.TestClassCast" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ParseTest.TestDerExp" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ParseTest.TestLongTag" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="PersonalDataUnitTest" executed="True" result="Success" success="True" time="0.008" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.PersonalDataUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Pkcs10Test" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Pkcs10Test.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Pkcs12Test" executed="True" result="Success" success="True" time="0.014" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.Pkcs12Test.TestFunction" executed="True" result="Success" success="True" time="0.013" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="PkiFailureInfoTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.PkiFailureInfoTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ProcurationSyntaxUnitTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ProcurationSyntaxUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ProfessionInfoUnitTest" executed="True" result="Success" success="True" time="0.008" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ProfessionInfoUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="QCStatementUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.QCStatementUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ReasonFlagsTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.ReasonFlagsTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RequestedCertificateUnitTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.RequestedCertificateUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RestrictionUnitTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.RestrictionUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SemanticsInformationUnitTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.SemanticsInformationUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SetTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.SetTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SignerLocationUnitTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.SignerLocationUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.006" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SmimeTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.SmimeTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="StringTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.StringTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SubjectKeyIdentifierTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.SubjectKeyIdentifierTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TagTest" executed="True" result="Success" success="True" time="0.024" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.TagTest.TestFunction" executed="True" result="Success" success="True" time="0.024" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TargetInformationTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.TargetInformationTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TimeTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.TimeTest.CheckCmsTimeVsX509Time" executed="True" result="Success" success="True" time="0.003" asserts="2" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TypeOfBiometricDataUnitTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.TypeOfBiometricDataUnitTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="UtcTimeTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.UtcTimeTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="X509ExtensionsTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.X509ExtensionsTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="X509NameTest" executed="True" result="Success" success="True" time="0.021" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.X509NameTest.TestFunction" executed="True" result="Success" success="True" time="0.020" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="X9Test" executed="True" result="Success" success="True" time="0.089" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Asn1.Tests.X9Test.TestFunction" executed="True" result="Success" success="True" time="0.088" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Bcpg" executed="True" result="Success" success="True" time="40.881" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="OpenPgp" executed="True" result="Success" success="True" time="40.880" asserts="0">
+                        <results>
+                          <test-suite type="Namespace" name="Examples" executed="True" result="Success" success="True" time="5.412" asserts="0">
+                            <results>
+                              <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="5.412" asserts="0">
+                                <results>
+                                  <test-suite type="TestFixture" name="AllTests" executed="True" result="Success" success="True" time="5.412" asserts="0">
+                                    <results>
+                                      <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests.AllTests.TestClearSigned" executed="True" result="Success" success="True" time="0.565" asserts="0" />
+                                      <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests.AllTests.TestClearSignedBogusInput" executed="True" result="Success" success="True" time="0.017" asserts="0" />
+                                      <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests.AllTests.TestDsaElGamalKeyGeneration" executed="True" result="Success" success="True" time="4.150" asserts="16" />
+                                      <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests.AllTests.TestPbeEncryption" executed="True" result="Success" success="True" time="0.042" asserts="3" />
+                                      <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Examples.Tests.AllTests.TestRsaKeyGeneration" executed="True" result="Success" success="True" time="0.635" asserts="16" />
+                                    </results>
+                                  </test-suite>
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                          <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="35.466" asserts="0">
+                            <results>
+                              <test-suite type="TestFixture" name="Dsa2Test" executed="True" result="Success" success="True" time="4.120" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestGenerateK1024H224" executed="True" result="Success" success="True" time="0.022" asserts="5" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestGenerateK1024H256" executed="True" result="Success" success="True" time="0.013" asserts="5" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestGenerateK1024H384" executed="True" result="Success" success="True" time="0.020" asserts="5" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestGenerateK1024H512" executed="True" result="Success" success="True" time="0.014" asserts="5" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestGenerateK2048H256" executed="True" result="Success" success="True" time="0.048" asserts="5" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestGenerateK2048H512" executed="True" result="Success" success="True" time="0.056" asserts="5" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK1024H160" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK1024H224" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK1024H256" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK1024H384" executed="True" result="Success" success="True" time="0.007" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK1024H512" executed="True" result="Success" success="True" time="0.007" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK15360H512" executed="True" result="Success" success="True" time="3.196" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK2048H224" executed="True" result="Success" success="True" time="0.030" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK3072H256" executed="True" result="Success" success="True" time="0.072" asserts="1" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.Dsa2Test.TestK7680H384" executed="True" result="Success" success="True" time="0.599" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpArmoredTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpArmoredTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpClearSignedSignatureTest" executed="True" result="Success" success="True" time="0.144" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpClearSignedSignatureTest.TestFunction" executed="True" result="Success" success="True" time="0.143" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpCompressionTest" executed="True" result="Success" success="True" time="0.057" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpCompressionTest.TestBZip2" executed="True" result="Success" success="True" time="0.052" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpCompressionTest.TestUncompressed" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpCompressionTest.TestZip" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpCompressionTest.TestZLib" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpDsaElGamalTest" executed="True" result="Success" success="True" time="0.923" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpDsaElGamalTest.TestFunction" executed="True" result="Success" success="True" time="0.922" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpDsaTest" executed="True" result="Success" success="True" time="0.213" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpDsaTest.TestFunction" executed="True" result="Success" success="True" time="0.212" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpKeyRingTest" executed="True" result="Success" success="True" time="0.892" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.GenerateSha1Test" executed="True" result="Success" success="True" time="0.522" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.GenerateTest" executed="True" result="Success" success="True" time="0.155" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.InsertMasterTest" executed="True" result="Success" success="True" time="0.100" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest1" executed="True" result="Success" success="True" time="0.011" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest10" executed="True" result="Success" success="True" time="0.004" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest11" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest2" executed="True" result="Success" success="True" time="0.030" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest3" executed="True" result="Success" success="True" time="0.008" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest4" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest5" executed="True" result="Success" success="True" time="0.010" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest6" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest8" executed="True" result="Success" success="True" time="0.014" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PerformTest9" executed="True" result="Success" success="True" time="0.008" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.PublicKeyRingWithX509Test" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.RewrapTest" executed="True" result="Success" success="True" time="0.005" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpKeyRingTest.SecretKeyRingWithPersonalCertificateTest" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpMarkerTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpMarkerTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PGPNoPrivateKeyTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PGPNoPrivateKeyTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpPacketTest" executed="True" result="Success" success="True" time="27.842" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpPacketTest.TestFunction" executed="True" result="Success" success="True" time="27.841" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpPbeTest" executed="True" result="Success" success="True" time="0.053" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpPbeTest.TestFunction" executed="True" result="Success" success="True" time="0.052" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpRsaTest" executed="True" result="Success" success="True" time="0.965" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpRsaTest.TestFunction" executed="True" result="Success" success="True" time="0.964" asserts="1" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="PgpSignatureTest" executed="True" result="Success" success="True" time="0.237" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Bcpg.OpenPgp.Tests.PgpSignatureTest.TestFunction" executed="True" result="Success" success="True" time="0.236" asserts="1" />
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Cms" executed="True" result="Success" success="True" time="5.033" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="5.033" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="AuthenticatedDataStreamTest" executed="True" result="Success" success="True" time="0.636" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.AuthenticatedDataStreamTest.TestKeyTransDESede" executed="True" result="Success" success="True" time="0.635" asserts="5" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AuthenticatedDataTest" executed="True" result="Success" success="True" time="0.419" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.AuthenticatedDataTest.TestECKeyAgree" executed="True" result="Success" success="True" time="0.248" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.AuthenticatedDataTest.TestEncoding" executed="True" result="Success" success="True" time="0.121" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.AuthenticatedDataTest.TestKEKDESede" executed="True" result="Success" success="True" time="0.011" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.AuthenticatedDataTest.TestKeyTransDESede" executed="True" result="Success" success="True" time="0.010" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.AuthenticatedDataTest.TestPasswordAES256" executed="True" result="Success" success="True" time="0.027" asserts="4" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CompressedDataStreamTest" executed="True" result="Success" success="True" time="0.043" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataStreamTest.Test1000" executed="True" result="Success" success="True" time="0.039" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataStreamTest.TestEach" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataStreamTest.TestWorkingData" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CompressedDataTest" executed="True" result="Success" success="True" time="0.011" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataTest.TestEach" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataTest.TestLimitEqual" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataTest.TestLimitOver" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataTest.TestLimitUnder" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.CompressedDataTest.TestWorkingData" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EnvelopedDataStreamTest" executed="True" result="Success" success="True" time="0.503" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestAesKek" executed="True" result="Success" success="True" time="0.014" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestECKeyAgree" executed="True" result="Success" success="True" time="0.220" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestKeyTransAes128" executed="True" result="Success" success="True" time="0.174" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestKeyTransAes128Buffered" executed="True" result="Success" success="True" time="0.021" asserts="7" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestKeyTransAes128BufferedStream" executed="True" result="Success" success="True" time="0.019" asserts="7" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestKeyTransAes128Der" executed="True" result="Success" success="True" time="0.010" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestKeyTransAes128Throughput" executed="True" result="Success" success="True" time="0.020" asserts="12" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestOriginatorInfo" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestTwoAesKek" executed="True" result="Success" success="True" time="0.002" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataStreamTest.TestWorkingData" executed="True" result="Success" success="True" time="0.015" asserts="3" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EnvelopedDataTest" executed="True" result="Success" success="True" time="0.666" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestAes128Kek" executed="True" result="Success" success="True" time="0.007" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestAes192Kek" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestAes256Kek" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestCamellia128Kek" executed="True" result="Success" success="True" time="0.018" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestCamellia192Kek" executed="True" result="Success" success="True" time="0.003" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestCamellia256Kek" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestDesKek" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestECKeyAgree" executed="True" result="Success" success="True" time="0.101" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestECKeyAgreeVectors" executed="True" result="Success" success="True" time="0.062" asserts="12" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestECMqvKeyAgree" executed="True" result="Success" success="True" time="0.058" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestECMqvKeyAgreeMultiple" executed="True" result="Success" success="True" time="0.098" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestECMqvKeyAgreeVectors" executed="True" result="Success" success="True" time="0.019" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestErroneousKek" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTrans" executed="True" result="Success" success="True" time="0.143" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTrans128RC4" executed="True" result="Success" success="True" time="0.013" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransAes128" executed="True" result="Success" success="True" time="0.010" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransAes192" executed="True" result="Success" success="True" time="0.008" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransAes256" executed="True" result="Success" success="True" time="0.009" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransCast5" executed="True" result="Success" success="True" time="0.012" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransOdes" executed="True" result="Success" success="True" time="0.011" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransRC4" executed="True" result="Success" success="True" time="0.010" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransSeed" executed="True" result="Success" success="True" time="0.014" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestKeyTransSmallAes" executed="True" result="Success" success="True" time="0.009" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestOriginatorInfo" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestPasswordAes256" executed="True" result="Success" success="True" time="0.005" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestPasswordDesEde" executed="True" result="Success" success="True" time="0.002" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestRC2128Kek" executed="True" result="Success" success="True" time="0.014" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestRfc4134Ex5_1" executed="True" result="Success" success="True" time="0.008" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestRfc4134Ex5_2" executed="True" result="Success" success="True" time="0.010" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.EnvelopedDataTest.TestSeed128Kek" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MiscDataStreamTest" executed="True" result="Success" success="True" time="0.715" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.MiscDataStreamTest.TestSha1WithRsa" executed="True" result="Success" success="True" time="0.715" asserts="2" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Rfc4134Test" executed="True" result="Success" success="True" time="0.149" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_1" executed="True" result="Success" success="True" time="0.022" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_2" executed="True" result="Success" success="True" time="0.004" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_3" executed="True" result="Success" success="True" time="0.014" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_4" executed="True" result="Success" success="True" time="0.020" asserts="11" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_5" executed="True" result="Success" success="True" time="0.003" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_6" executed="True" result="Success" success="True" time="0.028" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test4_7" executed="True" result="Success" success="True" time="0.014" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test5_1" executed="True" result="Success" success="True" time="0.022" asserts="16" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.Rfc4134Test.Test5_2" executed="True" result="Success" success="True" time="0.016" asserts="18" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SignedDataStreamTest" executed="True" result="Success" success="True" time="0.679" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestAttributeGenerators" executed="True" result="Success" success="True" time="0.431" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestCertOrdering1" executed="True" result="Success" success="True" time="0.010" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestCertOrdering2" executed="True" result="Success" success="True" time="0.009" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestCertsOnly" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestCertStoreReplacement" executed="True" result="Success" success="True" time="0.024" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestEarlyInvalidKeyException" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestEarlyNoSuchAlgorithmException" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestEncapsulatedCertStoreReplacement" executed="True" result="Success" success="True" time="0.010" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestEncapsulatedSignerStoreReplacement" executed="True" result="Success" success="True" time="0.021" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1AndMD5WithRsa" executed="True" result="Success" success="True" time="0.019" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1EncapsulatedSignature" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1WithRsa" executed="True" result="Success" success="True" time="0.028" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.013" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1WithRsaEncapsulatedBuffered" executed="True" result="Success" success="True" time="0.019" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1WithRsaEncapsulatedBufferedStream" executed="True" result="Success" success="True" time="0.020" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1WithRsaEncapsulatedSubjectKeyID" executed="True" result="Success" success="True" time="0.014" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSha1WithRsaNonData" executed="True" result="Success" success="True" time="0.010" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestSignerStoreReplacement" executed="True" result="Success" success="True" time="0.020" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataStreamTest.TestWithAttributeCertificate" executed="True" result="Success" success="True" time="0.016" asserts="3" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SignedDataTest" executed="True" result="Success" success="True" time="1.200" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestCertOrdering1" executed="True" result="Success" success="True" time="0.254" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestCertOrdering2" executed="True" result="Success" success="True" time="0.009" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestCertStoreReplacement" executed="True" result="Success" success="True" time="0.012" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestCounterSig" executed="True" result="Success" success="True" time="0.004" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestDetachedVerification" executed="True" result="Success" success="True" time="0.019" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestDsaEncapsulated" executed="True" result="Success" success="True" time="0.022" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestDsaEncapsulatedSubjectKeyID" executed="True" result="Success" success="True" time="0.012" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaEncapsulated" executed="True" result="Success" success="True" time="0.070" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaEncapsulatedSubjectKeyID" executed="True" result="Success" success="True" time="0.052" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaSha224Encapsulated" executed="True" result="Success" success="True" time="0.052" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaSha256Encapsulated" executed="True" result="Success" success="True" time="0.052" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaSha384Encapsulated" executed="True" result="Success" success="True" time="0.052" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaSha512Encapsulated" executed="True" result="Success" success="True" time="0.054" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestECDsaSha512EncapsulatedWithKeyFactoryAsEC" executed="True" result="Success" success="True" time="0.063" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestEncapsulatedCertStoreReplacement" executed="True" result="Success" success="True" time="0.010" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestEncapsulatedSamples" executed="True" result="Success" success="True" time="0.017" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestForMultipleCounterSignatures" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestGost3411WithECGost3410Encapsulated" executed="True" result="Success" success="True" time="0.075" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestGost3411WithGost3410Encapsulated" executed="True" result="Success" success="True" time="0.059" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestNullContentWithSigner" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestRipeMD128WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.025" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestRipeMD160WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.038" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestRipeMD256WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.024" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSamples" executed="True" result="Success" success="True" time="0.011" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha1AndMD5WithRsaEncapsulatedRepeated" executed="True" result="Success" success="True" time="0.023" asserts="11" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha1WithRsaAndAttributeTable" executed="True" result="Success" success="True" time="0.011" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha1WithRsaCounterSignature" executed="True" result="Success" success="True" time="0.027" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha1WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.012" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha1WithRsaEncapsulatedSubjectKeyID" executed="True" result="Success" success="True" time="0.012" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha1WithRsaPss" executed="True" result="Success" success="True" time="0.013" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha224WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.012" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha224WithRsaPss" executed="True" result="Success" success="True" time="0.010" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha256WithRsaEncapsulated" executed="True" result="Success" success="True" time="0.012" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha256WithRsaPss" executed="True" result="Success" success="True" time="0.009" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSha384WithRsaPss" executed="True" result="Success" success="True" time="0.009" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestSignerStoreReplacement" executed="True" result="Success" success="True" time="0.019" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestUnsortedAttributes" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Cms.Tests.SignedDataTest.TestWithAttributeCertificate" executed="True" result="Success" success="True" time="0.011" asserts="4" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Crypto" executed="True" result="Success" success="True" time="167.945" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="IO" executed="True" result="Success" success="True" time="0.009" asserts="0">
+                        <results>
+                          <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.009" asserts="0">
+                            <results>
+                              <test-suite type="TestFixture" name="CipherStreamTest" executed="True" result="Success" success="True" time="0.009" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Crypto.IO.Tests.CipherStreamTest.TestEncryptDecryptA" executed="True" result="Success" success="True" time="0.004" asserts="4" />
+                                  <test-case name="Org.BouncyCastle.Crypto.IO.Tests.CipherStreamTest.TestEncryptDecryptB" executed="True" result="Success" success="True" time="0.001" asserts="3" />
+                                  <test-case name="Org.BouncyCastle.Crypto.IO.Tests.CipherStreamTest.TestEncryptDecryptC" executed="True" result="Success" success="True" time="0.000" asserts="4" />
+                                  <test-case name="Org.BouncyCastle.Crypto.IO.Tests.CipherStreamTest.TestEncryptDecryptD" executed="True" result="Success" success="True" time="0.001" asserts="3" />
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="165.286" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="AesFastTest" executed="True" result="Success" success="True" time="0.224" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.AesFastTest.TestFunction" executed="True" result="Success" success="True" time="0.220" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AesLightTest" executed="True" result="Success" success="True" time="0.546" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.AesLightTest.TestFunction" executed="True" result="Success" success="True" time="0.542" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AesTest" executed="True" result="Success" success="True" time="0.346" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.AesTest.TestFunction" executed="True" result="Success" success="True" time="0.342" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AesWrapTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.AesWrapTest.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="AllTests" executed="True" result="Success" success="True" time="102.293" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.AllTests.TestCrypto" executed="True" result="Success" success="True" time="102.293" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="BlowfishTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.BlowfishTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CamelliaLightTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.CamelliaLightTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CamelliaTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.CamelliaTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Cast5Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Cast5Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Cast6Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Cast6Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CcmTest" executed="True" result="Success" success="True" time="0.035" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.CcmTest.TestFunction" executed="True" result="Success" success="True" time="0.035" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ChaChaTest" executed="True" result="Success" success="True" time="0.009" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ChaChaTest.TestFunction" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.CMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="CTSTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.CTSTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DesEdeTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DesEdeTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DesTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DesTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DeterministicDsaTest" executed="True" result="Success" success="True" time="0.741" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DeterministicDsaTest.TestFunction" executed="True" result="Success" success="True" time="0.741" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DHKekGeneratorTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DHKekGeneratorTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DHTest" executed="True" result="Success" success="True" time="0.406" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DHTest.TestFunction" executed="True" result="Success" success="True" time="0.405" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DigestRandomNumberTest" executed="True" result="Success" success="True" time="11.452" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DigestRandomNumberTest.TestFunction" executed="True" result="Success" success="True" time="11.452" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="DsaTest" executed="True" result="Success" success="True" time="24.561" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.DsaTest.TestFunction" executed="True" result="Success" success="True" time="24.561" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EaxTest" executed="True" result="Success" success="True" time="0.007" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EaxTest.TestFunction" executed="True" result="Success" success="True" time="0.007" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ECDHKekGeneratorTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECDHKekGeneratorTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ECGost3410Test" executed="True" result="Success" success="True" time="0.134" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECGost3410Test.TestFunction" executed="True" result="Success" success="True" time="0.133" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EcIesTest" executed="True" result="Success" success="True" time="0.053" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EcIesTest.TestFunction" executed="True" result="Success" success="True" time="0.053" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EcNrTest" executed="True" result="Success" success="True" time="0.028" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EcNrTest.TestFunction" executed="True" result="Success" success="True" time="0.028" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ECTest" executed="True" result="Success" success="True" time="0.375" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestDecode" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECBasicAgreementTest" executed="True" result="Success" success="True" time="0.060" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsa191bitBinary" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsa192bitPrime" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsa239bitBinary" executed="True" result="Success" success="True" time="0.021" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsa239bitBinaryAndLargeDigest" executed="True" result="Success" success="True" time="0.020" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsa239bitPrime" executed="True" result="Success" success="True" time="0.027" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsaKeyGenTest" executed="True" result="Success" success="True" time="0.031" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsaP224OneByteOver" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsaP224Sha224" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsaP256Sha256" executed="True" result="Success" success="True" time="0.018" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsaP521Sha512" executed="True" result="Success" success="True" time="0.040" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECDsaSecP224k1Sha256" executed="True" result="Success" success="True" time="0.008" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECMqvRandom" executed="True" result="Success" success="True" time="0.052" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECMqvTestVector1" executed="True" result="Success" success="True" time="0.011" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ECTest.TestECMqvTestVector2" executed="True" result="Success" success="True" time="0.017" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ElGamalTest" executed="True" result="Success" success="True" time="0.346" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ElGamalTest.TestEnc1024" executed="True" result="Success" success="True" time="0.084" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ElGamalTest.TestEnc512" executed="True" result="Success" success="True" time="0.022" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ElGamalTest.TestEnc768" executed="True" result="Success" success="True" time="0.070" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ElGamalTest.TestGeneration258" executed="True" result="Success" success="True" time="0.122" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ElGamalTest.TestInitCheck" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ElGamalTest.TestInvalidP" executed="True" result="Success" success="True" time="0.044" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="EqualsHashCodeTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EqualsHashCodeTest.TestDH" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EqualsHashCodeTest.TestDsa" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EqualsHashCodeTest.TestElGamal" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.EqualsHashCodeTest.TestGost3410" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="GcmReorderTest" executed="True" result="Success" success="True" time="0.029" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GcmReorderTest.TestCombine" executed="True" result="Success" success="True" time="0.007" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GcmReorderTest.TestConcatAuth" executed="True" result="Success" success="True" time="0.007" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GcmReorderTest.TestConcatCrypt" executed="True" result="Success" success="True" time="0.006" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GcmReorderTest.TestExp" executed="True" result="Success" success="True" time="0.003" asserts="110" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GcmReorderTest.TestMultiply" executed="True" result="Success" success="True" time="0.003" asserts="51" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="GcmTest" executed="True" result="Success" success="True" time="1.190" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GcmTest.TestFunction" executed="True" result="Success" success="True" time="1.190" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="GMacTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.GMacTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Gost28147MacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Gost28147MacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Gost28147Test" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Gost28147Test.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Gost3410Test" executed="True" result="Success" success="True" time="0.069" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Gost3410Test.TestFunction" executed="True" result="Success" success="True" time="0.068" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Gost3411DigestTest" executed="True" result="Success" success="True" time="1.203" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Gost3411DigestTest.TestFunction" executed="True" result="Success" success="True" time="1.203" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="HCFamilyVecTest" executed="True" result="Success" success="True" time="0.368" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.HCFamilyVecTest.TestFunction" executed="True" result="Success" success="True" time="0.368" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="IdeaTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.IdeaTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="IsaacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.IsaacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ISO9796Test" executed="True" result="Success" success="True" time="1.225" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoFullMessageTest" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoShortPartialTest" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest1" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest10" executed="True" result="Success" success="True" time="1.089" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest11" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest12" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest13" executed="True" result="Success" success="True" time="0.030" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest2" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest3" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest4" executed="True" result="Success" success="True" time="0.004" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest5" executed="True" result="Success" success="True" time="0.004" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest6" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest7" executed="True" result="Success" success="True" time="0.014" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest8" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9796Test.DoTest9" executed="True" result="Success" success="True" time="0.014" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ISO9797Alg3MacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ISO9797Alg3MacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Kdf1GeneratorTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Kdf1GeneratorTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Kdf2GeneratorTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Kdf2GeneratorTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.MacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MD2DigestTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.MD2DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MD4DigestTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.MD4DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MD5DigestTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.MD5DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="MD5HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.MD5HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Mgf1GeneratorTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Mgf1GeneratorTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ModeTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ModeTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="NoekeonTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.NoekeonTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="NullTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.NullTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OaepTest" executed="True" result="Success" success="True" time="0.071" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.OaepTest.TestFunction" executed="True" result="Success" success="True" time="0.071" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="OcbTest" executed="True" result="Success" success="True" time="0.251" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.OcbTest.TestFunction" executed="True" result="Success" success="True" time="0.251" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="PaddingTest" executed="True" result="Success" success="True" time="0.095" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.PaddingTest.TestFunction" executed="True" result="Success" success="True" time="0.094" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Pkcs12Test" executed="True" result="Success" success="True" time="0.022" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Pkcs12Test.TestFunction" executed="True" result="Success" success="True" time="0.022" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Pkcs5Test" executed="True" result="Success" success="True" time="0.666" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Pkcs5Test.TestFunction" executed="True" result="Success" success="True" time="0.666" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Poly1305Test" executed="True" result="Success" success="True" time="0.141" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Poly1305Test.TestFunction" executed="True" result="Success" success="True" time="0.141" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="PssBlindTest" executed="True" result="Success" success="True" time="7.115" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.PssBlindTest.TestFunction" executed="True" result="Success" success="True" time="7.114" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="PssTest" executed="True" result="Success" success="True" time="5.644" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.PssTest.TestFunction" executed="True" result="Success" success="True" time="5.643" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RC2Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RC2Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RC2WrapTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RC2WrapTest.TestFunction" executed="True" result="Success" success="True" time="0.000" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RC4Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RC4Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RC5Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RC5Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RC6Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RC6Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Rfc3211WrapTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Rfc3211WrapTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RijndaelTest" executed="True" result="Success" success="True" time="0.475" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RijndaelTest.TestFunction" executed="True" result="Success" success="True" time="0.475" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RipeMD128DigestTest" executed="True" result="Success" success="True" time="0.060" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RipeMD128DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.059" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RipeMD128HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RipeMD128HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RipeMD160DigestTest" executed="True" result="Success" success="True" time="0.074" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RipeMD160DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.074" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RipeMD160HMacTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RipeMD160HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RipeMD256DigestTest" executed="True" result="Success" success="True" time="0.059" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RipeMD256DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.059" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RipeMD320DigestTest" executed="True" result="Success" success="True" time="0.078" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RipeMD320DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.077" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RsaBlindedTest" executed="True" result="Success" success="True" time="0.397" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RsaBlindedTest.TestFunction" executed="True" result="Success" success="True" time="0.397" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="RsaTest" executed="True" result="Success" success="True" time="0.305" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.RsaTest.TestFunction" executed="True" result="Success" success="True" time="0.304" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Salsa20Test" executed="True" result="Success" success="True" time="0.007" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Salsa20Test.TestFunction" executed="True" result="Success" success="True" time="0.007" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SCryptTest" executed="True" result="Success" success="True" time="1.210" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SCryptTest.TestFunction" executed="True" result="Success" success="True" time="1.210" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SeedTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SeedTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SerpentTest" executed="True" result="Success" success="True" time="0.003" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SerpentTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha1DigestTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha1DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha1HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha1HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha224DigestTest" executed="True" result="Success" success="True" time="0.063" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha224DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.063" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha224HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha224HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha256DigestTest" executed="True" result="Success" success="True" time="0.059" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha256DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.058" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha256HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha256HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha384DigestTest" executed="True" result="Success" success="True" time="0.045" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha384DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.045" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha384HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha384HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha3DigestTest" executed="True" result="Success" success="True" time="0.616" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha3DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.616" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha512DigestTest" executed="True" result="Success" success="True" time="0.046" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha512DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.046" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Sha512HMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Sha512HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ShortenedDigestTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.ShortenedDigestTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SipHashTest" executed="True" result="Success" success="True" time="0.016" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SipHashTest.TestFunction" executed="True" result="Success" success="True" time="0.015" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SkeinDigestTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SkeinDigestTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SkeinMacTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SkeinMacTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SkipjackTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SkipjackTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="SM3DigestTest" executed="True" result="Success" success="True" time="0.089" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.SM3DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.088" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Srp6Test" executed="True" result="Success" success="True" time="0.846" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Srp6Test.TestFunction" executed="True" result="Success" success="True" time="0.845" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TeaTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.TeaTest.TestFunction" executed="True" result="Success" success="True" time="0.000" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Threefish1024Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Threefish1024Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Threefish256Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Threefish256Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Threefish512Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.Threefish512Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TigerDigestTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.TigerDigestTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TwofishTest" executed="True" result="Success" success="True" time="0.002" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.TwofishTest.TestFunction" executed="True" result="Success" success="True" time="0.002" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="VmpcKsa3Test" executed="True" result="Success" success="True" time="0.163" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.VmpcKsa3Test.TestFunction" executed="True" result="Success" success="True" time="0.162" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="VmpcMacTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.VmpcMacTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="VmpcTest" executed="True" result="Success" success="True" time="0.168" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.VmpcTest.TestFunction" executed="True" result="Success" success="True" time="0.168" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="WhirlpoolDigestTest" executed="True" result="Success" success="True" time="0.664" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.WhirlpoolDigestTest.TestFunction" executed="True" result="Success" success="True" time="0.664" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="X931SignerTest" executed="True" result="Success" success="True" time="0.028" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.X931SignerTest.TestFunction" executed="True" result="Success" success="True" time="0.027" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="XSalsa20Test" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.XSalsa20Test.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="XteaTest" executed="True" result="Success" success="True" time="0.001" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Crypto.Tests.XteaTest.TestFunction" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                      <test-suite type="Namespace" name="Tls" executed="True" result="Success" success="True" time="2.627" asserts="0">
+                        <results>
+                          <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="2.627" asserts="0">
+                            <results>
+                              <test-suite type="TestFixture" name="TlsProtocolTest" executed="True" result="Success" success="True" time="0.292" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsProtocolTest.TestClientServer" executed="True" result="Success" success="True" time="0.292" asserts="2" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="TlsPskProtocolTest" executed="True" result="Success" success="True" time="0.031" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsPskProtocolTest.TestClientServer" executed="True" result="Success" success="True" time="0.031" asserts="2" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="TlsSrpProtocolTest" executed="True" result="Success" success="True" time="0.136" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsSrpProtocolTest.TestClientServer" executed="True" result="Success" success="True" time="0.136" asserts="2" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="TlsTestCase" executed="True" result="Success" success="True" time="2.164" asserts="0">
+                                <results>
+                                  <test-suite type="ParameterizedTest" name="RunTest" executed="True" result="Success" success="True" time="2.162" asserts="0">
+                                    <results>
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.FallbackGood" executed="True" result="Success" success="True" time="0.147" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.FallbackBad" executed="True" result="Success" success="True" time="0.002" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.FallbackNone" executed="True" result="Success" success="True" time="0.141" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS10_GoodDefault" executed="True" result="Success" success="True" time="0.135" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS10_BadCertificateVerify" executed="True" result="Success" success="True" time="0.135" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS10_BadClientCertificate" executed="True" result="Success" success="True" time="0.132" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS10_BadMandatoryCertReqDeclined" executed="True" result="Success" success="True" time="0.072" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS10_GoodNoCertReq" executed="True" result="Success" success="True" time="0.071" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS10_GoodOptionalCertReqDeclined" executed="True" result="Success" success="True" time="0.072" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS11_GoodDefault" executed="True" result="Success" success="True" time="0.137" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS11_BadCertificateVerify" executed="True" result="Success" success="True" time="0.136" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS11_BadClientCertificate" executed="True" result="Success" success="True" time="0.134" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS11_BadMandatoryCertReqDeclined" executed="True" result="Success" success="True" time="0.084" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS11_GoodNoCertReq" executed="True" result="Success" success="True" time="0.072" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS11_GoodOptionalCertReqDeclined" executed="True" result="Success" success="True" time="0.072" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS12_GoodDefault" executed="True" result="Success" success="True" time="0.135" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS12_BadCertificateVerify" executed="True" result="Success" success="True" time="0.135" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS12_BadClientCertificate" executed="True" result="Success" success="True" time="0.132" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS12_BadMandatoryCertReqDeclined" executed="True" result="Success" success="True" time="0.068" asserts="6" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS12_GoodNoCertReq" executed="True" result="Success" success="True" time="0.072" asserts="10" />
+                                      <test-case name="Org.BouncyCastle.Crypto.Tls.Tests.TlsTestCase.TLS12_GoodOptionalCertReqDeclined" executed="True" result="Success" success="True" time="0.071" asserts="10" />
+                                    </results>
+                                  </test-suite>
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Math" executed="True" result="Success" success="True" time="226.600" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="EC" executed="True" result="Success" success="True" time="226.338" asserts="0">
+                        <results>
+                          <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="226.338" asserts="0">
+                            <results>
+                              <test-suite type="TestFixture" name="ECAlgorithmsTest" executed="True" result="Success" success="True" time="193.009" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECAlgorithmsTest.TestSumOfMultiplies" executed="True" result="Success" success="True" time="68.492" asserts="1500" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECAlgorithmsTest.TestSumOfTwoMultiplies" executed="True" result="Success" success="True" time="124.515" asserts="3000" />
+                                </results>
+                              </test-suite>
+                              <test-suite type="TestFixture" name="ECPointTest" executed="True" result="Success" success="True" time="33.328" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestAdd" executed="True" result="Success" success="True" time="0.005" asserts="20" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestAddSubtractMultiplySimple" executed="True" result="Success" success="True" time="0.035" asserts="832" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestAddSubtractMultiplyTwiceEncoding" executed="True" result="Success" success="True" time="33.268" asserts="13680" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestAllPoints" executed="True" result="Success" success="True" time="0.011" asserts="236" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestPointCreationConsistency" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestThreeTimes" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                                  <test-case name="Org.BouncyCastle.Math.EC.Tests.ECPointTest.TestTwice" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.259" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="BigIntegerTest" executed="True" result="Success" success="True" time="0.258" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.MonoBug81857" executed="True" result="Success" success="True" time="0.000" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestAbs" executed="True" result="Success" success="True" time="0.001" asserts="5" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestAdd" executed="True" result="Success" success="True" time="0.002" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestAnd" executed="True" result="Success" success="True" time="0.003" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestAndNot" executed="True" result="Success" success="True" time="0.003" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestBitCount" executed="True" result="Success" success="True" time="0.002" asserts="215" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestBitLength" executed="True" result="Success" success="True" time="0.002" asserts="405" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestClearBit" executed="True" result="Success" success="True" time="0.008" asserts="2306" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestCompareTo" executed="True" result="Success" success="True" time="0.002" asserts="25" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestConstructors" executed="True" result="Success" success="True" time="0.001" asserts="12" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestDivide" executed="True" result="Success" success="True" time="0.005" asserts="485" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestDivideAndRemainder" executed="True" result="Success" success="True" time="0.005" asserts="824" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestFlipBit" executed="True" result="Success" success="True" time="0.006" asserts="2210" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestGcd" executed="True" result="Success" success="True" time="0.015" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestGetLowestSetBit" executed="True" result="Success" success="True" time="0.001" asserts="300" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestIntValue" executed="True" result="Success" success="True" time="0.001" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestIsProbablePrime" executed="True" result="Success" success="True" time="0.005" asserts="89" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestLongValue" executed="True" result="Success" success="True" time="0.000" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestMax" executed="True" result="Success" success="True" time="0.001" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestMin" executed="True" result="Success" success="True" time="0.001" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestMod" executed="True" result="Success" success="True" time="0.002" asserts="200" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestModInverse" executed="True" result="Success" success="True" time="0.010" asserts="148" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestModPow" executed="True" result="Success" success="True" time="0.099" asserts="504" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestMultiply" executed="True" result="Success" success="True" time="0.003" asserts="1001" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestNegate" executed="True" result="Success" success="True" time="0.000" asserts="21" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestNextProbablePrime" executed="True" result="Success" success="True" time="0.001" asserts="33" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestNot" executed="True" result="Success" success="True" time="0.001" asserts="21" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestOr" executed="True" result="Success" success="True" time="0.002" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestPow" executed="True" result="Success" success="True" time="0.002" asserts="16" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestRemainder" executed="True" result="Success" success="True" time="0.001" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestSetBit" executed="True" result="Success" success="True" time="0.004" asserts="2306" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestShiftLeft" executed="True" result="Success" success="True" time="0.009" asserts="23475" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestShiftRight" executed="True" result="Success" success="True" time="0.001" asserts="1935" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestSignValue" executed="True" result="Success" success="True" time="0.001" asserts="21" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestSubtract" executed="True" result="Success" success="True" time="0.002" asserts="441" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestTestBit" executed="True" result="Success" success="True" time="0.001" asserts="120" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestToByteArray" executed="True" result="Success" success="True" time="0.010" asserts="133" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestToByteArrayUnsigned" executed="True" result="Success" success="True" time="0.009" asserts="133" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestToString" executed="True" result="Success" success="True" time="0.017" asserts="1327" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestValueOf" executed="True" result="Success" success="True" time="0.001" asserts="13" />
+                              <test-case name="Org.BouncyCastle.Math.Tests.BigIntegerTest.TestXor" executed="True" result="Success" success="True" time="0.002" asserts="441" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Ocsp" executed="True" result="Success" success="True" time="0.344" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.344" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="OcspTest" executed="True" result="Success" success="True" time="0.343" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Ocsp.Tests.OcspTest.TestFunction" executed="True" result="Success" success="True" time="0.342" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="OpenSsl" executed="True" result="Success" success="True" time="2.856" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="2.856" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="AllTests" executed="True" result="Success" success="True" time="1.867" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.OpenSsl.Tests.AllTests.TestOpenSsl" executed="True" result="Success" success="True" time="0.968" asserts="0" />
+                              <test-case name="Org.BouncyCastle.OpenSsl.Tests.AllTests.TestPkcs8Encrypted" executed="True" result="Success" success="True" time="0.265" asserts="1" />
+                              <test-case name="Org.BouncyCastle.OpenSsl.Tests.AllTests.TestPkcs8Plain" executed="True" result="Success" success="True" time="0.633" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ReaderTest" executed="True" result="Success" success="True" time="0.252" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.OpenSsl.Tests.ReaderTest.TestFunction" executed="True" result="Success" success="True" time="0.252" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="WriterTest" executed="True" result="Success" success="True" time="0.734" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.OpenSsl.Tests.WriterTest.TestFunction" executed="True" result="Success" success="True" time="0.734" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Pkcs" executed="True" result="Success" success="True" time="1.149" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="1.149" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="EncryptedPrivateKeyInfoTest" executed="True" result="Success" success="True" time="0.856" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Pkcs.Tests.EncryptedPrivateKeyInfoTest.TestFunction" executed="True" result="Success" success="True" time="0.855" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Pkcs10Test" executed="True" result="Success" success="True" time="0.020" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Pkcs.Tests.Pkcs10Test.TestFunction" executed="True" result="Success" success="True" time="0.019" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="Pkcs12StoreTest" executed="True" result="Success" success="True" time="0.270" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Pkcs.Tests.Pkcs12StoreTest.TestFunction" executed="True" result="Success" success="True" time="0.269" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Security" executed="True" result="Success" success="True" time="66.270" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="66.270" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="SecureRandomTest" executed="True" result="Success" success="True" time="63.605" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestCryptoApi" executed="True" result="Success" success="True" time="1.481" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestDefault" executed="True" result="Success" success="True" time="16.054" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestSha1Prng" executed="True" result="Success" success="True" time="13.069" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestSha1PrngBackward" executed="True" result="Success" success="True" time="0.001" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestSha256Prng" executed="True" result="Success" success="True" time="15.997" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestThreadedSeed" executed="True" result="Success" success="True" time="13.281" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.SecureRandomTest.TestVmpcPrng" executed="True" result="Success" success="True" time="3.718" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TestDigestUtilities" executed="True" result="Success" success="True" time="0.007" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestDigestUtilities.TestAlgorithms" executed="True" result="Success" success="True" time="0.006" asserts="15" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TestDotNetUtilities" executed="True" result="Success" success="True" time="1.636" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestDotNetUtilities.TestRsaInterop" executed="True" result="Success" success="True" time="1.628" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestDotNetUtilities.TestX509CertificateConversion" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TestEncodings" executed="True" result="Success" success="True" time="0.017" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestEncodings.TestDH" executed="True" result="Success" success="True" time="0.004" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestEncodings.TestDSA" executed="True" result="Success" success="True" time="0.001" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestEncodings.TestEC" executed="True" result="Success" success="True" time="0.003" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestEncodings.TestElGamal" executed="True" result="Success" success="True" time="0.003" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestEncodings.TestRsa" executed="True" result="Success" success="True" time="0.002" asserts="3" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TestParameterUtilities" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestParameterUtilities.TestCreateKeyParameter" executed="True" result="Success" success="True" time="0.004" asserts="32" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TestSignerUtilities" executed="True" result="Success" success="True" time="0.995" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Security.Tests.TestSignerUtilities.TestAlgorithms" executed="True" result="Success" success="True" time="0.994" asserts="25" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="16.340" asserts="0">
+                    <results>
+                      <test-suite type="TestFixture" name="AesSicTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.AesSicTest.TestFunction" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="AesTest" executed="True" result="Success" success="True" time="0.019" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestCcm" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestCiphers" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestEax" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestGcm" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestOids" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestWrap" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.AesTest.TestWrapOids" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="AttrCertSelectorTest" executed="True" result="Success" success="True" time="0.025" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.AttrCertSelectorTest.TestSelector" executed="True" result="Success" success="True" time="0.024" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="AttrCertTest" executed="True" result="Success" success="True" time="0.033" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.AttrCertTest.TestFunction" executed="True" result="Success" success="True" time="0.032" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="BlockCipherTest" executed="True" result="Success" success="True" time="0.039" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.BlockCipherTest.TestFunction" executed="True" result="Success" success="True" time="0.034" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CamelliaTest" executed="True" result="Success" success="True" time="0.008" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CamelliaTest.TestCiphers" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CamelliaTest.TestOids" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CamelliaTest.TestWrap" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CamelliaTest.TestWrapOids" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CertPathBuilderTest" executed="True" result="Success" success="True" time="1.288" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CertPathBuilderTest.TestFunction" executed="True" result="Success" success="True" time="1.288" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CertPathTest" executed="True" result="Success" success="True" time="0.014" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CertPathTest.TestFunction" executed="True" result="Success" success="True" time="0.013" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CertPathValidatorTest" executed="True" result="Success" success="True" time="0.023" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CertPathValidatorTest.TestFunction" executed="True" result="Success" success="True" time="0.022" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CertTest" executed="True" result="Success" success="True" time="1.515" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CertTest.TestFunction" executed="True" result="Success" success="True" time="1.513" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CipherStreamTest" executed="True" result="Success" success="True" time="0.028" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestDesCfbNoPadding" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestDesEcbPkcs7" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestHC128" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestHC128Algorithm" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestHC128Exception" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestHC256" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestHC256Algorithm" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestHC256Exception" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestRC4" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestRC4Algorithm" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestRC4Exception" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestSalsa20" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestSalsa20Algorithm" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestSalsa20Exception" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestVmpc" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestVmpcException" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestVmpcKsa3" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.CipherStreamTest.TestVmpcKsa3Exception" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="CMacTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.CMacTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="Crl5Test" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.Crl5Test.TestDirectCrl" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.Crl5Test.TestIndirectCrl" executed="True" result="Success" success="True" time="0.004" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="DesEdeTest" executed="True" result="Success" success="True" time="0.010" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.DesEdeTest.TestFunction" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="DHTest" executed="True" result="Success" success="True" time="0.471" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.DHTest.TestECDH" executed="True" result="Success" success="True" time="0.045" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DHTest.TestECDHC" executed="True" result="Success" success="True" time="0.041" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DHTest.TestEnc" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DHTest.TestExceptions" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DHTest.TestFunction" executed="True" result="Success" success="True" time="0.378" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="DigestTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.DigestTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="DsaTest" executed="True" result="Success" success="True" time="4.851" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestDsa2Parameters" executed="True" result="Success" success="True" time="4.330" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinary" executed="True" result="Success" success="True" time="0.022" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinaryRipeMD160" executed="True" result="Success" success="True" time="0.022" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinarySha1" executed="True" result="Success" success="True" time="0.021" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinarySha224" executed="True" result="Success" success="True" time="0.020" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinarySha256" executed="True" result="Success" success="True" time="0.021" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinarySha384" executed="True" result="Success" success="True" time="0.021" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitBinarySha512" executed="True" result="Success" success="True" time="0.020" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestECDsa239BitPrime" executed="True" result="Success" success="True" time="0.030" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestGeneration" executed="True" result="Success" success="True" time="0.172" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestNONEwithDSA" executed="True" result="Success" success="True" time="0.116" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.DsaTest.TestParameters" executed="True" result="Success" success="True" time="0.050" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="ECDsa5Test" executed="True" result="Success" success="True" time="0.088" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.ECDsa5Test.DecodeTest" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ECDsa5Test.TestECDsa239BitBinary" executed="True" result="Success" success="True" time="0.023" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ECDsa5Test.TestECDsa239BitPrime" executed="True" result="Success" success="True" time="0.030" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ECDsa5Test.TestGeneration" executed="True" result="Success" success="True" time="0.033" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="ECEncodingTest" executed="True" result="Success" success="True" time="0.121" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.ECEncodingTest.TestFunction" executed="True" result="Success" success="True" time="0.120" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="ECNRTest" executed="True" result="Success" success="True" time="0.078" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.ECNRTest.TestECNR192bitPrime" executed="True" result="Success" success="True" time="0.017" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ECNRTest.TestECNR239bitPrime" executed="True" result="Success" success="True" time="0.020" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ECNRTest.TestECNR521bitPrime" executed="True" result="Success" success="True" time="0.040" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="ElGamalTest" executed="True" result="Success" success="True" time="0.672" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.ElGamalTest.TestGP1024" executed="True" result="Success" success="True" time="0.330" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ElGamalTest.TestGP512" executed="True" result="Success" success="True" time="0.047" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ElGamalTest.TestGP768" executed="True" result="Success" success="True" time="0.146" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.ElGamalTest.TestRandom256" executed="True" result="Success" success="True" time="0.147" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="EncryptedPrivateKeyInfoTest" executed="True" result="Success" success="True" time="0.045" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.EncryptedPrivateKeyInfoTest.TestFunction" executed="True" result="Success" success="True" time="0.044" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="FipsDesTest" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.FipsDesTest.TestFunction" executed="True" result="Success" success="True" time="0.006" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="Gost28147Test" executed="True" result="Success" success="True" time="0.006" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.Gost28147Test.TestFunction" executed="True" result="Success" success="True" time="0.005" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="Gost3410Test" executed="True" result="Success" success="True" time="0.147" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.Gost3410Test.TestFunction" executed="True" result="Success" success="True" time="0.147" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="HMacTest" executed="True" result="Success" success="True" time="0.007" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.HMacTest.TestFunction" executed="True" result="Success" success="True" time="0.006" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="IesTest" executed="True" result="Success" success="True" time="0.041" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.IesTest.TestFunction" executed="True" result="Success" success="True" time="0.040" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="MacTest" executed="True" result="Success" success="True" time="0.005" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.MacTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="MqvTest" executed="True" result="Success" success="True" time="0.055" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.MqvTest.TestECMqv" executed="True" result="Success" success="True" time="0.055" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="NamedCurveTest" executed="True" result="Success" success="True" time="2.588" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.NamedCurveTest.TestFunction" executed="True" result="Success" success="True" time="2.587" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="Namespace" name="Nist" executed="True" result="Success" success="True" time="0.463" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="NistCertPathTest" executed="True" result="Success" success="True" time="0.462" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestAllCertificatesAnyPolicyTest11" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestAllCertificatesNoPoliciesTest2" executed="True" result="Success" success="True" time="0.009" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestAllCertificatesSamePoliciesTest10" executed="True" result="Success" success="True" time="0.016" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestAllCertificatesSamePoliciesTest13" executed="True" result="Success" success="True" time="0.016" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestAllCertificatesSamePolicyTest1" executed="True" result="Success" success="True" time="0.020" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestAnyPolicyTest14" executed="True" result="Success" success="True" time="0.010" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestCANotBeforeDateTest1" executed="True" result="Success" success="True" time="0.004" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest12" executed="True" result="Success" success="True" time="0.005" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest3" executed="True" result="Success" success="True" time="0.018" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest4" executed="True" result="Success" success="True" time="0.007" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest5" executed="True" result="Success" success="True" time="0.008" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest7" executed="True" result="Success" success="True" time="0.010" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest8" executed="True" result="Success" success="True" time="0.008" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestDifferentPoliciesTest9" executed="True" result="Success" success="True" time="0.009" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidCANotAfterDateTest5" executed="True" result="Success" success="True" time="0.003" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidCASignatureTest2" executed="True" result="Success" success="True" time="0.003" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvaliddistributionPointTest3" executed="True" result="Success" success="True" time="0.007" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvaliddistributionPointTest8" executed="True" result="Success" success="True" time="0.007" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvaliddistributionPointTest9" executed="True" result="Success" success="True" time="0.005" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidDSASignaturesTest6" executed="True" result="Success" success="True" time="0.010" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidEENotAfterDateTest6" executed="True" result="Success" success="True" time="0.004" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidEENotBeforeDateTest2" executed="True" result="Success" success="True" time="0.004" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidEESignatureTest3" executed="True" result="Success" success="True" time="0.004" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidInhibitPolicyMappingTest1" executed="True" result="Success" success="True" time="0.008" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidNegativeSerialNumberTest15" executed="True" result="Success" success="True" time="0.006" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidonlySomeReasonsTest17" executed="True" result="Success" success="True" time="0.007" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidUnknownCRLExtensionTest10" executed="True" result="Success" success="True" time="0.006" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestInvalidValidPre2000UTCNotAfterDateTest7" executed="True" result="Success" success="True" time="0.005" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestOverlappingPoliciesTest6" executed="True" result="Success" success="True" time="0.026" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestUserNoticeQualifierTest15" executed="True" result="Success" success="True" time="0.009" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestUserNoticeQualifierTest16" executed="True" result="Success" success="True" time="0.015" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestUserNoticeQualifierTest17" executed="True" result="Success" success="True" time="0.014" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestUserNoticeQualifierTest18" executed="True" result="Success" success="True" time="0.011" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestUserNoticeQualifierTest19" executed="True" result="Success" success="True" time="0.007" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValiddistributionPointTest5" executed="True" result="Success" success="True" time="0.006" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidDSAParameterInheritanceTest5" executed="True" result="Success" success="True" time="0.030" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidDSASignaturesTest4" executed="True" result="Success" success="True" time="0.016" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidGeneralizedTimeNotBeforeDateTest4" executed="True" result="Success" success="True" time="0.005" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidInhibitPolicyMappingTest2" executed="True" result="Success" success="True" time="0.008" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidpathLenConstraintTest13" executed="True" result="Success" success="True" time="0.011" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidPre2000UTCNotBeforeDateTest3" executed="True" result="Success" success="True" time="0.005" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidSelfIssuedInhibitAnyPolicyTest7" executed="True" result="Success" success="True" time="0.022" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidSeparateCertificateandCRLKeysTest19" executed="True" result="Success" success="True" time="0.015" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tests.Nist.NistCertPathTest.TestValidSignaturesTest1" executed="True" result="Success" success="True" time="0.005" asserts="0" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="NistCertPathTest" executed="True" result="Success" success="True" time="0.867" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.NistCertPathTest.TestFunction" executed="True" result="Success" success="True" time="0.856" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="NoekeonTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.NoekeonTest.TestFunction" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="PbeTest" executed="True" result="Success" success="True" time="0.066" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.PbeTest.TestFunction" executed="True" result="Success" success="True" time="0.064" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="Pkcs10CertRequestTest" executed="True" result="Success" success="True" time="1.623" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.Pkcs10CertRequestTest.TestFunction" executed="True" result="Success" success="True" time="1.622" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="PkixNameConstraintsTest" executed="True" result="Success" success="True" time="0.040" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.PkixNameConstraintsTest.TestFunction" executed="True" result="Success" success="True" time="0.035" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="PkixPolicyMappingTest" executed="True" result="Success" success="True" time="0.176" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.PkixPolicyMappingTest.TestFunction" executed="True" result="Success" success="True" time="0.175" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="PkixTest" executed="True" result="Success" success="True" time="0.022" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.PkixTest.TestFunction" executed="True" result="Success" success="True" time="0.021" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="PssTest" executed="True" result="Success" success="True" time="0.106" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.PssTest.TestFunction" executed="True" result="Success" success="True" time="0.105" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="Namespace" name="Rsa3" executed="True" result="Success" success="True" time="0.044" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="RSA3CertTest" executed="True" result="Success" success="True" time="0.044" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestA" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestB" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestC" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestD" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestE" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestF" executed="True" result="Success" success="True" time="0.004" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestG" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestH" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestI" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestJ" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tests.Rsa3.RSA3CertTest.TestL" executed="True" result="Success" success="True" time="0.003" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="RsaTest" executed="True" result="Success" success="True" time="0.483" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.RsaTest.TestFunction" executed="True" result="Success" success="True" time="0.481" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="SeedTest" executed="True" result="Success" success="True" time="0.008" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.SeedTest.TestCiphers" executed="True" result="Success" success="True" time="0.003" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.SeedTest.TestOids" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.SeedTest.TestWrap" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                          <test-case name="Org.BouncyCastle.Tests.SeedTest.TestWrapOids" executed="True" result="Success" success="True" time="0.000" asserts="0" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="SigTest" executed="True" result="Success" success="True" time="0.136" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.SigTest.TestFunction" executed="True" result="Success" success="True" time="0.135" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="WrapTest" executed="True" result="Success" success="True" time="0.028" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.WrapTest.TestFunction" executed="True" result="Success" success="True" time="0.028" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="X509CertificatePairTest" executed="True" result="Success" success="True" time="0.008" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.X509CertificatePairTest.TestFunction" executed="True" result="Success" success="True" time="0.008" asserts="1" />
+                        </results>
+                      </test-suite>
+                      <test-suite type="TestFixture" name="X509StoreTest" executed="True" result="Success" success="True" time="0.013" asserts="0">
+                        <results>
+                          <test-case name="Org.BouncyCastle.Tests.X509StoreTest.TestFunction" executed="True" result="Success" success="True" time="0.012" asserts="1" />
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Tsp" executed="True" result="Success" success="True" time="0.421" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.421" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="GenTimeAccuracyUnitTest" executed="True" result="Success" success="True" time="0.014" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestNullNullNull" executed="True" result="Success" success="True" time="0.004" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestOneNullOne" executed="True" result="Success" success="True" time="0.000" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestOneTwoThree" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestThreeTwoNull" executed="True" result="Success" success="True" time="0.000" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestThreeTwoOne" executed="True" result="Success" success="True" time="0.000" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestTwoThreeTwo" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestZeroNullNull" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.GenTimeAccuracyUnitTest.TestZeroTwoThree" executed="True" result="Success" success="True" time="0.001" asserts="4" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="ParseTest" executed="True" result="Success" success="True" time="0.051" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.ParseTest.TestGeneralizedTime" executed="True" result="Success" success="True" time="0.014" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.ParseTest.TestMD5" executed="True" result="Success" success="True" time="0.020" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.ParseTest.TestRipeMD160" executed="True" result="Success" success="True" time="0.001" asserts="3" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.ParseTest.TestSha1" executed="True" result="Success" success="True" time="0.003" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.ParseTest.TestUnacceptable" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.ParseTest.TestV2SigningResponseParse" executed="True" result="Success" success="True" time="0.007" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TimeStampTokenInfoUnitTest" executed="True" result="Success" success="True" time="0.010" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TimeStampTokenInfoUnitTest.TestTstInfo1" executed="True" result="Success" success="True" time="0.004" asserts="9" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TimeStampTokenInfoUnitTest.TestTstInfo2" executed="True" result="Success" success="True" time="0.002" asserts="10" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TimeStampTokenInfoUnitTest.TestTstInfo3" executed="True" result="Success" success="True" time="0.001" asserts="11" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TimeStampTokenInfoUnitTest.TestTstInfoDudDate" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                            </results>
+                          </test-suite>
+                          <test-suite type="TestFixture" name="TspTest" executed="True" result="Success" success="True" time="0.344" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestAccuracyWithCertsAndOrdering" executed="True" result="Success" success="True" time="0.023" asserts="9" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestAccuracyZeroCerts" executed="True" result="Success" success="True" time="0.010" asserts="6" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestBadAlgorithm" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestBadPolicy" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestBasic" executed="True" result="Success" success="True" time="0.010" asserts="1" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestCertReq" executed="True" result="Success" success="True" time="0.010" asserts="2" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestIncorrectHash" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestNoNonce" executed="True" result="Success" success="True" time="0.009" asserts="7" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestResponseValidation" executed="True" result="Success" success="True" time="0.011" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestTimeNotAvailable" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                              <test-case name="Org.BouncyCastle.Tsp.Tests.TspTest.TestTokenEncoding" executed="True" result="Success" success="True" time="0.009" asserts="0" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="Utilities" executed="True" result="Success" success="True" time="0.011" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="IO" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                        <results>
+                          <test-suite type="Namespace" name="Pem" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                                <results>
+                                  <test-suite type="TestFixture" name="AllTests" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                                    <results>
+                                      <test-case name="Org.BouncyCastle.Utilities.IO.Pem.Tests.AllTests.TestPemLength" executed="True" result="Success" success="True" time="0.003" asserts="68" />
+                                    </results>
+                                  </test-suite>
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                      <test-suite type="Namespace" name="Net" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                        <results>
+                          <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                            <results>
+                              <test-suite type="TestFixture" name="IPTest" executed="True" result="Success" success="True" time="0.004" asserts="0">
+                                <results>
+                                  <test-case name="Org.BouncyCastle.Utilities.Net.Tests.IPTest.TestIPv4" executed="True" result="Success" success="True" time="0.002" asserts="0" />
+                                  <test-case name="Org.BouncyCastle.Utilities.Net.Tests.IPTest.TestIPv6" executed="True" result="Success" success="True" time="0.001" asserts="0" />
+                                </results>
+                              </test-suite>
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                  <test-suite type="Namespace" name="X509" executed="True" result="Success" success="True" time="0.061" asserts="0">
+                    <results>
+                      <test-suite type="Namespace" name="Tests" executed="True" result="Success" success="True" time="0.061" asserts="0">
+                        <results>
+                          <test-suite type="TestFixture" name="TestCertificateGen" executed="True" result="Success" success="True" time="0.060" asserts="0">
+                            <results>
+                              <test-case name="Org.BouncyCastle.X509.Tests.TestCertificateGen.TestCertLoading" executed="True" result="Success" success="True" time="0.004" asserts="12" />
+                              <test-case name="Org.BouncyCastle.X509.Tests.TestCertificateGen.TestCreationDSA" executed="True" result="Success" success="True" time="0.005" asserts="0" />
+                              <test-case name="Org.BouncyCastle.X509.Tests.TestCertificateGen.TestCreationECDSA" executed="True" result="Success" success="True" time="0.030" asserts="0" />
+                              <test-case name="Org.BouncyCastle.X509.Tests.TestCertificateGen.TestCreationRSA" executed="True" result="Success" success="True" time="0.010" asserts="0" />
+                              <test-case name="Org.BouncyCastle.X509.Tests.TestCertificateGen.TestRsaDigestSigner" executed="True" result="Success" success="True" time="0.009" asserts="1" />
+                            </results>
+                          </test-suite>
+                        </results>
+                      </test-suite>
+                    </results>
+                  </test-suite>
+                </results>
+              </test-suite>
+            </results>
+          </test-suite>
+        </results>
+      </test-suite>
+    </results>
+  </test-suite>
+</test-results>
\ No newline at end of file
diff --git a/crypto/src/crypto/tls/AbstractTlsServer.cs b/crypto/src/crypto/tls/AbstractTlsServer.cs
index 7fe3fcbe5..c3e250fd8 100644
--- a/crypto/src/crypto/tls/AbstractTlsServer.cs
+++ b/crypto/src/crypto/tls/AbstractTlsServer.cs
@@ -140,7 +140,11 @@ namespace Org.BouncyCastle.Crypto.Tls
             if (clientExtensions != null)
             {
                 this.mEncryptThenMacOffered = TlsExtensionsUtilities.HasEncryptThenMacExtension(clientExtensions);
+
                 this.mMaxFragmentLengthOffered = TlsExtensionsUtilities.GetMaxFragmentLengthExtension(clientExtensions);
+                if (mMaxFragmentLengthOffered >= 0 && !MaxFragmentLength.IsValid((byte)mMaxFragmentLengthOffered))
+                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+
                 this.mTruncatedHMacOffered = TlsExtensionsUtilities.HasTruncatedHMacExtension(clientExtensions);
 
                 this.mSupportedSignatureAlgorithms = TlsUtilities.GetSignatureAlgorithmsExtension(clientExtensions);
diff --git a/crypto/src/crypto/tls/DtlsClientProtocol.cs b/crypto/src/crypto/tls/DtlsClientProtocol.cs
index 76635065c..411e7cca2 100644
--- a/crypto/src/crypto/tls/DtlsClientProtocol.cs
+++ b/crypto/src/crypto/tls/DtlsClientProtocol.cs
@@ -112,41 +112,12 @@ namespace Org.BouncyCastle.Crypto.Tls
                 throw new TlsFatalAlert(AlertDescription.unexpected_message);
             }
 
-            if (state.maxFragmentLength >= 0)
-            {
-                int plainTextLimit = 1 << (8 + state.maxFragmentLength);
-                recordLayer.SetPlaintextLimit(plainTextLimit);
-            }
-
-            securityParameters.cipherSuite = state.selectedCipherSuite;
-            securityParameters.compressionAlgorithm = (byte)state.selectedCompressionMethod;
-            securityParameters.prfAlgorithm = TlsProtocol.GetPrfAlgorithm(state.clientContext, state.selectedCipherSuite);
-
-            /*
-             * RFC 5264 7.4.9. Any cipher suite which does not explicitly specify verify_data_length has
-             * a verify_data_length equal to 12. This includes all existing cipher suites.
-             */
-            securityParameters.verifyDataLength = 12;
-
             handshake.NotifyHelloComplete();
 
-            bool resumedSession = state.selectedSessionID.Length > 0 && state.tlsSession != null
-                && Arrays.AreEqual(state.selectedSessionID, state.tlsSession.SessionID);
+            ApplyMaxFragmentLengthExtension(recordLayer, securityParameters.maxFragmentLength);
 
-            if (resumedSession)
+            if (state.resumedSession)
             {
-                if (securityParameters.CipherSuite != state.sessionParameters.CipherSuite
-                    || securityParameters.CompressionAlgorithm != state.sessionParameters.CompressionAlgorithm)
-                {
-                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
-                }
-
-                IDictionary sessionServerExtensions = state.sessionParameters.ReadServerExtensions();
-
-                // TODO Check encrypt-then-MAC extension and maybe others
-
-                securityParameters.extendedMasterSecret = TlsExtensionsUtilities.HasExtendedMasterSecretExtension(sessionServerExtensions);
-
                 securityParameters.masterSecret = Arrays.Clone(state.sessionParameters.MasterSecret);
                 recordLayer.InitPendingEpoch(state.client.GetCipher());
 
@@ -366,12 +337,14 @@ namespace Org.BouncyCastle.Crypto.Tls
             if (state.tlsSession != null)
             {
                 state.sessionParameters = new SessionParameters.Builder()
-                    .SetCipherSuite(securityParameters.cipherSuite)
-                    .SetCompressionAlgorithm(securityParameters.compressionAlgorithm)
-                    .SetMasterSecret(securityParameters.masterSecret)
+                    .SetCipherSuite(securityParameters.CipherSuite)
+                    .SetCompressionAlgorithm(securityParameters.CompressionAlgorithm)
+                    .SetMasterSecret(securityParameters.MasterSecret)
                     .SetPeerCertificate(serverCertificate)
-                    .SetPskIdentity(securityParameters.pskIdentity)
-                    .SetSrpIdentity(securityParameters.srpIdentity)
+                    .SetPskIdentity(securityParameters.PskIdentity)
+                    .SetSrpIdentity(securityParameters.SrpIdentity)
+                    // TODO Consider filtering extensions that aren't relevant to resumed sessions
+                    .SetServerExtensions(state.serverExtensions)
                     .Build();
 
                 state.tlsSession = TlsUtilities.ImportSession(state.tlsSession.SessionID, state.sessionParameters);
@@ -599,8 +572,10 @@ namespace Org.BouncyCastle.Crypto.Tls
 
             MemoryStream buf = new MemoryStream(body, false);
 
-            ProtocolVersion server_version = TlsUtilities.ReadVersion(buf);
-            ReportServerVersion(state, server_version);
+            {
+                ProtocolVersion server_version = TlsUtilities.ReadVersion(buf);
+                ReportServerVersion(state, server_version);
+            }
 
             securityParameters.serverRandom = TlsUtilities.ReadFully(32, buf);
 
@@ -608,24 +583,24 @@ namespace Org.BouncyCastle.Crypto.Tls
             if (state.selectedSessionID.Length > 32)
                 throw new TlsFatalAlert(AlertDescription.illegal_parameter);
             state.client.NotifySessionID(state.selectedSessionID);
+            state.resumedSession = state.selectedSessionID.Length > 0 && state.tlsSession != null
+                && Arrays.AreEqual(state.selectedSessionID, state.tlsSession.SessionID);
 
-            state.selectedCipherSuite = TlsUtilities.ReadUint16(buf);
-            if (!Arrays.Contains(state.offeredCipherSuites, state.selectedCipherSuite)
-                || state.selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL
-                || CipherSuite.IsScsv(state.selectedCipherSuite)
-                || !TlsUtilities.IsValidCipherSuiteForVersion(state.selectedCipherSuite, server_version))
+            int selectedCipherSuite = TlsUtilities.ReadUint16(buf);
+            if (!Arrays.Contains(state.offeredCipherSuites, selectedCipherSuite)
+                || selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL
+                || CipherSuite.IsScsv(selectedCipherSuite)
+                || !TlsUtilities.IsValidCipherSuiteForVersion(selectedCipherSuite, state.clientContext.ServerVersion))
             {
                 throw new TlsFatalAlert(AlertDescription.illegal_parameter);
             }
+            ValidateSelectedCipherSuite(selectedCipherSuite, AlertDescription.illegal_parameter);
+            state.client.NotifySelectedCipherSuite(selectedCipherSuite);
 
-            ValidateSelectedCipherSuite(state.selectedCipherSuite, AlertDescription.illegal_parameter);
-
-            state.client.NotifySelectedCipherSuite(state.selectedCipherSuite);
-
-            state.selectedCompressionMethod = TlsUtilities.ReadUint8(buf);
-            if (!Arrays.Contains(state.offeredCompressionMethods, (byte)state.selectedCompressionMethod))
+            byte selectedCompressionMethod = TlsUtilities.ReadUint8(buf);
+            if (!Arrays.Contains(state.offeredCompressionMethods, selectedCompressionMethod))
                 throw new TlsFatalAlert(AlertDescription.illegal_parameter);
-            state.client.NotifySelectedCompressionMethod((byte)state.selectedCompressionMethod);
+            state.client.NotifySelectedCompressionMethod(selectedCompressionMethod);
 
             /*
              * RFC3546 2.2 The extended server hello message format MAY be sent in place of the server
@@ -643,16 +618,16 @@ namespace Org.BouncyCastle.Crypto.Tls
              */
 
             // Integer -> byte[]
-            IDictionary serverExtensions = TlsProtocol.ReadExtensions(buf);
+            state.serverExtensions = TlsProtocol.ReadExtensions(buf);
 
             /*
              * RFC 3546 2.2 Note that the extended server hello message is only sent in response to an
              * extended client hello message. However, see RFC 5746 exception below. We always include
              * the SCSV, so an Extended Server Hello is always allowed.
              */
-            if (serverExtensions != null)
+            if (state.serverExtensions != null)
             {
-                foreach (int extType in serverExtensions.Keys)
+                foreach (int extType in state.serverExtensions.Keys)
                 {
                     /*
                      * RFC 5746 3.6. Note that sending a "renegotiation_info" extension in response to a
@@ -679,64 +654,92 @@ namespace Org.BouncyCastle.Crypto.Tls
                      * extensions appearing in the client hello, and send a server hello containing no
                      * extensions[.]
                      */
-                    // TODO[sessions]
-    //                if (this.mResumedSession)
-    //                {
-    //                    // TODO[compat-gnutls] GnuTLS test server sends server extensions e.g. ec_point_formats
-    //                    // TODO[compat-openssl] OpenSSL test server sends server extensions e.g. ec_point_formats
-    //                    // TODO[compat-polarssl] PolarSSL test server sends server extensions e.g. ec_point_formats
-    ////                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
-    //                }
+                    if (state.resumedSession)
+                    {
+                        // TODO[compat-gnutls] GnuTLS test server sends server extensions e.g. ec_point_formats
+                        // TODO[compat-openssl] OpenSSL test server sends server extensions e.g. ec_point_formats
+                        // TODO[compat-polarssl] PolarSSL test server sends server extensions e.g. ec_point_formats
+                        //throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+                    }
                 }
+            }
 
+            /*
+             * RFC 5746 3.4. Client Behavior: Initial Handshake
+             */
+            {
                 /*
-                 * RFC 5746 3.4. Client Behavior: Initial Handshake
+                 * When a ServerHello is received, the client MUST check if it includes the
+                 * "renegotiation_info" extension:
                  */
+                byte[] renegExtData = TlsUtilities.GetExtensionData(state.serverExtensions, ExtensionType.renegotiation_info);
+                if (renegExtData != null)
                 {
                     /*
-                     * When a ServerHello is received, the client MUST check if it includes the
-                     * "renegotiation_info" extension:
-                     */
-                    byte[] renegExtData = (byte[])serverExtensions[ExtensionType.renegotiation_info];
-                    if (renegExtData != null)
-                    {
-                        /*
-                         * If the extension is present, set the secure_renegotiation flag to TRUE. The
-                         * client MUST then verify that the length of the "renegotiated_connection"
-                         * field is zero, and if it is not, MUST abort the handshake (by sending a fatal
-                         * handshake_failure alert).
-                         */
-                        state.secure_renegotiation = true;
-
-                        if (!Arrays.ConstantTimeAreEqual(renegExtData, TlsProtocol.CreateRenegotiationInfo(TlsUtilities.EmptyBytes)))
-                            throw new TlsFatalAlert(AlertDescription.handshake_failure);
-                    }
+                        * If the extension is present, set the secure_renegotiation flag to TRUE. The
+                        * client MUST then verify that the length of the "renegotiated_connection"
+                        * field is zero, and if it is not, MUST abort the handshake (by sending a fatal
+                        * handshake_failure alert).
+                        */
+                    state.secure_renegotiation = true;
+
+                    if (!Arrays.ConstantTimeAreEqual(renegExtData, TlsProtocol.CreateRenegotiationInfo(TlsUtilities.EmptyBytes)))
+                        throw new TlsFatalAlert(AlertDescription.handshake_failure);
                 }
+            }
 
-                /*
-                 * RFC 7366 3. If a server receives an encrypt-then-MAC request extension from a client
-                 * and then selects a stream or Authenticated Encryption with Associated Data (AEAD)
-                 * ciphersuite, it MUST NOT send an encrypt-then-MAC response extension back to the
-                 * client.
-                 */
-                bool serverSentEncryptThenMAC = TlsExtensionsUtilities.HasEncryptThenMacExtension(serverExtensions);
-                if (serverSentEncryptThenMAC && !TlsUtilities.IsBlockCipherSuite(state.selectedCipherSuite))
+            // TODO[compat-gnutls] GnuTLS test server fails to send renegotiation_info extension when resuming
+            state.client.NotifySecureRenegotiation(state.secure_renegotiation);
+
+            IDictionary sessionClientExtensions = state.clientExtensions, sessionServerExtensions = state.serverExtensions;
+            if (state.resumedSession)
+            {
+                if (selectedCipherSuite != state.sessionParameters.CipherSuite
+                    || selectedCompressionMethod != state.sessionParameters.CompressionAlgorithm)
+                {
                     throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+                }
 
-                securityParameters.encryptThenMac = serverSentEncryptThenMAC;
+                sessionClientExtensions = null;
+                sessionServerExtensions = state.sessionParameters.ReadServerExtensions();
+            }
 
-                securityParameters.extendedMasterSecret = TlsExtensionsUtilities.HasExtendedMasterSecretExtension(serverExtensions);
+            securityParameters.cipherSuite = selectedCipherSuite;
+            securityParameters.compressionAlgorithm = selectedCompressionMethod;
 
-                state.maxFragmentLength = EvaluateMaxFragmentLengthExtension(state.clientExtensions, serverExtensions,
-                    AlertDescription.illegal_parameter);
+            if (sessionServerExtensions != null)
+            {
+                {
+                    /*
+                     * RFC 7366 3. If a server receives an encrypt-then-MAC request extension from a client
+                     * and then selects a stream or Authenticated Encryption with Associated Data (AEAD)
+                     * ciphersuite, it MUST NOT send an encrypt-then-MAC response extension back to the
+                     * client.
+                     */
+                    bool serverSentEncryptThenMAC = TlsExtensionsUtilities.HasEncryptThenMacExtension(sessionServerExtensions);
+                    if (serverSentEncryptThenMAC && !TlsUtilities.IsBlockCipherSuite(securityParameters.CipherSuite))
+                        throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+                    securityParameters.encryptThenMac = serverSentEncryptThenMAC;
+                }
 
-                securityParameters.truncatedHMac = TlsExtensionsUtilities.HasTruncatedHMacExtension(serverExtensions);
+                securityParameters.extendedMasterSecret = TlsExtensionsUtilities.HasExtendedMasterSecretExtension(sessionServerExtensions);
+
+                securityParameters.maxFragmentLength = EvaluateMaxFragmentLengthExtension(state.resumedSession,
+                    sessionClientExtensions, sessionServerExtensions, AlertDescription.illegal_parameter);
 
-                state.allowCertificateStatus = TlsUtilities.HasExpectedEmptyExtensionData(serverExtensions,
-                    ExtensionType.status_request, AlertDescription.illegal_parameter);
+                securityParameters.truncatedHMac = TlsExtensionsUtilities.HasTruncatedHMacExtension(sessionServerExtensions);
+
+                /*
+                 * TODO It's surprising that there's no provision to allow a 'fresh' CertificateStatus to be
+                 * sent in a session resumption handshake.
+                 */
+                state.allowCertificateStatus = !state.resumedSession
+                    && TlsUtilities.HasExpectedEmptyExtensionData(sessionServerExtensions, ExtensionType.status_request,
+                        AlertDescription.illegal_parameter);
 
-                state.expectSessionTicket = TlsUtilities.HasExpectedEmptyExtensionData(serverExtensions,
-                    ExtensionType.session_ticket, AlertDescription.illegal_parameter);
+                state.expectSessionTicket = !state.resumedSession
+                    && TlsUtilities.HasExpectedEmptyExtensionData(sessionServerExtensions, ExtensionType.session_ticket,
+                        AlertDescription.illegal_parameter);
             }
 
             /*
@@ -746,12 +749,19 @@ namespace Org.BouncyCastle.Crypto.Tls
              * that do not use the extended master secret [..]. (and see 5.2, 5.3)
              */
 
-            state.client.NotifySecureRenegotiation(state.secure_renegotiation);
-
-            if (state.clientExtensions != null)
+            if (sessionClientExtensions != null)
             {
-                state.client.ProcessServerExtensions(serverExtensions);
+                state.client.ProcessServerExtensions(sessionServerExtensions);
             }
+
+            securityParameters.prfAlgorithm = TlsProtocol.GetPrfAlgorithm(state.clientContext,
+                securityParameters.CipherSuite);
+
+            /*
+             * RFC 5264 7.4.9. Any cipher suite which does not explicitly specify verify_data_length has
+             * a verify_data_length equal to 12. This includes all existing cipher suites.
+             */
+            securityParameters.verifyDataLength = 12;
         }
 
         protected virtual void ProcessServerKeyExchange(ClientHandshakeState state, byte[] body)
@@ -813,11 +823,10 @@ namespace Org.BouncyCastle.Crypto.Tls
             internal int[] offeredCipherSuites = null;
             internal byte[] offeredCompressionMethods = null;
             internal IDictionary clientExtensions = null;
+            internal IDictionary serverExtensions = null;
             internal byte[] selectedSessionID = null;
-            internal int selectedCipherSuite = -1;
-            internal short selectedCompressionMethod = -1;
+            internal bool resumedSession = false;
             internal bool secure_renegotiation = false;
-            internal short maxFragmentLength = -1;
             internal bool allowCertificateStatus = false;
             internal bool expectSessionTicket = false;
             internal TlsKeyExchange keyExchange = null;
diff --git a/crypto/src/crypto/tls/DtlsProtocol.cs b/crypto/src/crypto/tls/DtlsProtocol.cs
index 6d62c5a90..e4ebd436c 100644
--- a/crypto/src/crypto/tls/DtlsProtocol.cs
+++ b/crypto/src/crypto/tls/DtlsProtocol.cs
@@ -33,12 +33,32 @@ namespace Org.BouncyCastle.Crypto.Tls
         }
 
         /// <exception cref="IOException"/>
-        protected static short EvaluateMaxFragmentLengthExtension(IDictionary clientExtensions, IDictionary serverExtensions,
-            byte alertDescription)
+        internal static void ApplyMaxFragmentLengthExtension(DtlsRecordLayer recordLayer, short maxFragmentLength)
+        {
+            if (maxFragmentLength >= 0)
+            {
+                if (!MaxFragmentLength.IsValid((byte)maxFragmentLength))
+                    throw new TlsFatalAlert(AlertDescription.internal_error); 
+
+                int plainTextLimit = 1 << (8 + maxFragmentLength);
+                recordLayer.SetPlaintextLimit(plainTextLimit);
+            }
+        }
+
+        /// <exception cref="IOException"/>
+        protected static short EvaluateMaxFragmentLengthExtension(bool resumedSession, IDictionary clientExtensions,
+            IDictionary serverExtensions, byte alertDescription)
         {
             short maxFragmentLength = TlsExtensionsUtilities.GetMaxFragmentLengthExtension(serverExtensions);
-            if (maxFragmentLength >= 0 && maxFragmentLength != TlsExtensionsUtilities.GetMaxFragmentLengthExtension(clientExtensions))
-                throw new TlsFatalAlert(alertDescription);
+            if (maxFragmentLength >= 0)
+            {
+                if (!MaxFragmentLength.IsValid((byte)maxFragmentLength)
+                    || (!resumedSession && maxFragmentLength != TlsExtensionsUtilities
+                        .GetMaxFragmentLengthExtension(clientExtensions)))
+                {
+                    throw new TlsFatalAlert(alertDescription);
+                }
+            }
             return maxFragmentLength;
         }
 
diff --git a/crypto/src/crypto/tls/DtlsServerProtocol.cs b/crypto/src/crypto/tls/DtlsServerProtocol.cs
index f148eb7d7..9c7caf290 100644
--- a/crypto/src/crypto/tls/DtlsServerProtocol.cs
+++ b/crypto/src/crypto/tls/DtlsServerProtocol.cs
@@ -94,24 +94,9 @@ namespace Org.BouncyCastle.Crypto.Tls
 
             {
                 byte[] serverHelloBody = GenerateServerHello(state);
-    
-                if (state.maxFragmentLength >= 0)
-                {
-                    int plainTextLimit = 1 << (8 + state.maxFragmentLength);
-                    recordLayer.SetPlaintextLimit(plainTextLimit);
-                }
-    
-                securityParameters.cipherSuite = state.selectedCipherSuite;
-                securityParameters.compressionAlgorithm = (byte)state.selectedCompressionMethod;
-                securityParameters.prfAlgorithm = TlsProtocol.GetPrfAlgorithm(state.serverContext,
-                    state.selectedCipherSuite);
 
-                /*
-                 * RFC 5264 7.4.9. Any cipher suite which does not explicitly specify verify_data_length
-                 * has a verify_data_length equal to 12. This includes all existing cipher suites.
-                 */
-                securityParameters.verifyDataLength = 12;
-    
+                ApplyMaxFragmentLengthExtension(recordLayer, securityParameters.maxFragmentLength);
+
                 handshake.SendMessage(HandshakeType.server_hello, serverHelloBody);
             }
 
@@ -302,17 +287,19 @@ namespace Org.BouncyCastle.Crypto.Tls
 
             MemoryStream buf = new MemoryStream();
 
-            ProtocolVersion server_version = state.server.GetServerVersion();
-            if (!server_version.IsEqualOrEarlierVersionOf(state.serverContext.ClientVersion))
-                throw new TlsFatalAlert(AlertDescription.internal_error);
+            {
+                ProtocolVersion server_version = state.server.GetServerVersion();
+                if (!server_version.IsEqualOrEarlierVersionOf(state.serverContext.ClientVersion))
+                    throw new TlsFatalAlert(AlertDescription.internal_error);
 
-            // TODO Read RFCs for guidance on the expected record layer version number
-            // recordStream.setReadVersion(server_version);
-            // recordStream.setWriteVersion(server_version);
-            // recordStream.setRestrictReadVersion(true);
-            state.serverContext.SetServerVersion(server_version);
+                // TODO Read RFCs for guidance on the expected record layer version number
+                // recordStream.setReadVersion(server_version);
+                // recordStream.setWriteVersion(server_version);
+                // recordStream.setRestrictReadVersion(true);
+                state.serverContext.SetServerVersion(server_version);
 
-            TlsUtilities.WriteVersion(state.serverContext.ServerVersion, buf);
+                TlsUtilities.WriteVersion(state.serverContext.ServerVersion, buf);
+            }
 
             buf.Write(securityParameters.ServerRandom, 0, securityParameters.ServerRandom.Length);
 
@@ -322,23 +309,24 @@ namespace Org.BouncyCastle.Crypto.Tls
              */
             TlsUtilities.WriteOpaque8(TlsUtilities.EmptyBytes, buf);
 
-            state.selectedCipherSuite = state.server.GetSelectedCipherSuite();
-            if (!Arrays.Contains(state.offeredCipherSuites, state.selectedCipherSuite)
-                || state.selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL
-                || CipherSuite.IsScsv(state.selectedCipherSuite)
-                || !TlsUtilities.IsValidCipherSuiteForVersion(state.selectedCipherSuite, server_version))
+            int selectedCipherSuite = state.server.GetSelectedCipherSuite();
+            if (!Arrays.Contains(state.offeredCipherSuites, selectedCipherSuite)
+                || selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL
+                || CipherSuite.IsScsv(selectedCipherSuite)
+                || !TlsUtilities.IsValidCipherSuiteForVersion(selectedCipherSuite, state.serverContext.ServerVersion))
             {
                 throw new TlsFatalAlert(AlertDescription.internal_error);
             }
+            ValidateSelectedCipherSuite(selectedCipherSuite, AlertDescription.internal_error);
+            securityParameters.cipherSuite = selectedCipherSuite;
 
-            ValidateSelectedCipherSuite(state.selectedCipherSuite, AlertDescription.internal_error);
-
-            state.selectedCompressionMethod = state.server.GetSelectedCompressionMethod();
-            if (!Arrays.Contains(state.offeredCompressionMethods, (byte)state.selectedCompressionMethod))
+            byte selectedCompressionMethod = state.server.GetSelectedCompressionMethod();
+            if (!Arrays.Contains(state.offeredCompressionMethods, selectedCompressionMethod))
                 throw new TlsFatalAlert(AlertDescription.internal_error);
+            securityParameters.compressionAlgorithm = selectedCompressionMethod;
 
-            TlsUtilities.WriteUint16(state.selectedCipherSuite, buf);
-            TlsUtilities.WriteUint8((byte)state.selectedCompressionMethod, buf);
+            TlsUtilities.WriteUint16(selectedCipherSuite, buf);
+            TlsUtilities.WriteUint8(selectedCompressionMethod, buf);
 
             state.serverExtensions = state.server.GetServerExtensions();
 
@@ -375,24 +363,45 @@ namespace Org.BouncyCastle.Crypto.Tls
                 TlsExtensionsUtilities.AddExtendedMasterSecretExtension(state.serverExtensions);
             }
 
+            /*
+             * TODO RFC 3546 2.3 If [...] the older session is resumed, then the server MUST ignore
+             * extensions appearing in the client hello, and send a server hello containing no
+             * extensions.
+             */
+
             if (state.serverExtensions != null)
             {
                 securityParameters.encryptThenMac = TlsExtensionsUtilities.HasEncryptThenMacExtension(state.serverExtensions);
 
-                state.maxFragmentLength = EvaluateMaxFragmentLengthExtension(state.clientExtensions, state.serverExtensions,
-                    AlertDescription.internal_error);
+                securityParameters.maxFragmentLength = EvaluateMaxFragmentLengthExtension(state.resumedSession,
+                    state.clientExtensions, state.serverExtensions, AlertDescription.internal_error);
 
                 securityParameters.truncatedHMac = TlsExtensionsUtilities.HasTruncatedHMacExtension(state.serverExtensions);
 
-                state.allowCertificateStatus = TlsUtilities.HasExpectedEmptyExtensionData(state.serverExtensions,
-                    ExtensionType.status_request, AlertDescription.internal_error);
+                /*
+                 * TODO It's surprising that there's no provision to allow a 'fresh' CertificateStatus to be sent in
+                 * a session resumption handshake.
+                 */
+                state.allowCertificateStatus = !state.resumedSession
+                    && TlsUtilities.HasExpectedEmptyExtensionData(state.serverExtensions, ExtensionType.status_request,
+                        AlertDescription.internal_error);
 
-                state.expectSessionTicket = TlsUtilities.HasExpectedEmptyExtensionData(state.serverExtensions,
-                    ExtensionType.session_ticket, AlertDescription.internal_error);
+                state.expectSessionTicket = !state.resumedSession
+                    && TlsUtilities.HasExpectedEmptyExtensionData(state.serverExtensions, ExtensionType.session_ticket,
+                        AlertDescription.internal_error);
 
                 TlsProtocol.WriteExtensions(buf, state.serverExtensions);
             }
 
+            securityParameters.prfAlgorithm = TlsProtocol.GetPrfAlgorithm(state.serverContext,
+                securityParameters.CipherSuite);
+
+            /*
+             * RFC 5264 7.4.9. Any cipher suite which does not explicitly specify verify_data_length
+             * has a verify_data_length equal to 12. This includes all existing cipher suites.
+             */
+            securityParameters.verifyDataLength = 12;
+
             return buf.ToArray();
         }
 
@@ -628,16 +637,14 @@ namespace Org.BouncyCastle.Crypto.Tls
         {
             internal TlsServer server = null;
             internal TlsServerContextImpl serverContext = null;
-            internal int[] offeredCipherSuites;
-            internal byte[] offeredCompressionMethods;
-            internal IDictionary clientExtensions;
-            internal int selectedCipherSuite = -1;
-            internal short selectedCompressionMethod = -1;
+            internal int[] offeredCipherSuites = null;
+            internal byte[] offeredCompressionMethods = null;
+            internal IDictionary clientExtensions = null;
+            internal IDictionary serverExtensions = null;
+            internal bool resumedSession = false;
             internal bool secure_renegotiation = false;
-            internal short maxFragmentLength = -1;
             internal bool allowCertificateStatus = false;
             internal bool expectSessionTicket = false;
-            internal IDictionary serverExtensions = null;
             internal TlsKeyExchange keyExchange = null;
             internal TlsCredentials serverCredentials = null;
             internal CertificateRequest certificateRequest = null;
diff --git a/crypto/src/crypto/tls/TlsClientProtocol.cs b/crypto/src/crypto/tls/TlsClientProtocol.cs
index 5b9e81b3f..7b8439acc 100644
--- a/crypto/src/crypto/tls/TlsClientProtocol.cs
+++ b/crypto/src/crypto/tls/TlsClientProtocol.cs
@@ -224,24 +224,10 @@ namespace Org.BouncyCastle.Crypto.Tls
                     ReceiveServerHelloMessage(buf);
                     this.mConnectionState = CS_SERVER_HELLO;
 
-                    if (this.mSecurityParameters.maxFragmentLength >= 0)
-                    {
-                        int plainTextLimit = 1 << (8 + this.mSecurityParameters.maxFragmentLength);
-                        mRecordStream.SetPlaintextLimit(plainTextLimit);
-                    }
-
-                    this.mSecurityParameters.prfAlgorithm = GetPrfAlgorithm(Context,
-                        this.mSecurityParameters.CipherSuite);
-
-                    /*
-                     * RFC 5264 7.4.9. Any cipher suite which does not explicitly specify
-                     * verify_data_length has a verify_data_length equal to 12. This includes all
-                     * existing cipher suites.
-                     */
-                    this.mSecurityParameters.verifyDataLength = 12;
-
                     this.mRecordStream.NotifyHelloComplete();
 
+                    ApplyMaxFragmentLengthExtension();
+
                     if (this.mResumedSession)
                     {
                         this.mSecurityParameters.masterSecret = Arrays.Clone(this.mSessionParameters.MasterSecret);
@@ -558,21 +544,23 @@ namespace Org.BouncyCastle.Crypto.Tls
 
         protected virtual void ReceiveServerHelloMessage(MemoryStream buf)
         {
-            ProtocolVersion server_version = TlsUtilities.ReadVersion(buf);
-            if (server_version.IsDtls)
-                throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+            {
+                ProtocolVersion server_version = TlsUtilities.ReadVersion(buf);
+                if (server_version.IsDtls)
+                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
 
-            // Check that this matches what the server is Sending in the record layer
-            if (!server_version.Equals(this.mRecordStream.ReadVersion))
-                throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+                // Check that this matches what the server is Sending in the record layer
+                if (!server_version.Equals(this.mRecordStream.ReadVersion))
+                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
 
-            ProtocolVersion client_version = Context.ClientVersion;
-            if (!server_version.IsEqualOrEarlierVersionOf(client_version))
-                throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+                ProtocolVersion client_version = Context.ClientVersion;
+                if (!server_version.IsEqualOrEarlierVersionOf(client_version))
+                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
 
-            this.mRecordStream.SetWriteVersion(server_version);
-            ContextAdmin.SetServerVersion(server_version);
-            this.mTlsClient.NotifyServerVersion(server_version);
+                this.mRecordStream.SetWriteVersion(server_version);
+                ContextAdmin.SetServerVersion(server_version);
+                this.mTlsClient.NotifyServerVersion(server_version);
+            }
 
             /*
              * Read the server random
@@ -582,9 +570,7 @@ namespace Org.BouncyCastle.Crypto.Tls
             this.mSelectedSessionID = TlsUtilities.ReadOpaque8(buf);
             if (this.mSelectedSessionID.Length > 32)
                 throw new TlsFatalAlert(AlertDescription.illegal_parameter);
-
             this.mTlsClient.NotifySessionID(this.mSelectedSessionID);
-
             this.mResumedSession = this.mSelectedSessionID.Length > 0 && this.mTlsSession != null
                 && Arrays.AreEqual(this.mSelectedSessionID, this.mTlsSession.SessionID);
 
@@ -596,11 +582,10 @@ namespace Org.BouncyCastle.Crypto.Tls
             if (!Arrays.Contains(this.mOfferedCipherSuites, selectedCipherSuite)
                 || selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL
                 || CipherSuite.IsScsv(selectedCipherSuite)
-                || !TlsUtilities.IsValidCipherSuiteForVersion(selectedCipherSuite, server_version))
+                || !TlsUtilities.IsValidCipherSuiteForVersion(selectedCipherSuite, Context.ServerVersion))
             {
                 throw new TlsFatalAlert(AlertDescription.illegal_parameter);
             }
-
             this.mTlsClient.NotifySelectedCipherSuite(selectedCipherSuite);
 
             /*
@@ -610,7 +595,6 @@ namespace Org.BouncyCastle.Crypto.Tls
             byte selectedCompressionMethod = TlsUtilities.ReadUint8(buf);
             if (!Arrays.Contains(this.mOfferedCompressionMethods, selectedCompressionMethod))
                 throw new TlsFatalAlert(AlertDescription.illegal_parameter);
-
             this.mTlsClient.NotifySelectedCompressionMethod(selectedCompressionMethod);
 
             /*
@@ -714,17 +698,19 @@ namespace Org.BouncyCastle.Crypto.Tls
 
             if (sessionServerExtensions != null)
             {
-                /*
-                 * RFC 7366 3. If a server receives an encrypt-then-MAC request extension from a client
-                 * and then selects a stream or Authenticated Encryption with Associated Data (AEAD)
-                 * ciphersuite, it MUST NOT send an encrypt-then-MAC response extension back to the
-                 * client.
-                 */
-                bool serverSentEncryptThenMAC = TlsExtensionsUtilities.HasEncryptThenMacExtension(sessionServerExtensions);
-                if (serverSentEncryptThenMAC && !TlsUtilities.IsBlockCipherSuite(selectedCipherSuite))
-                    throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+                {
+                    /*
+                     * RFC 7366 3. If a server receives an encrypt-then-MAC request extension from a client
+                     * and then selects a stream or Authenticated Encryption with Associated Data (AEAD)
+                     * ciphersuite, it MUST NOT send an encrypt-then-MAC response extension back to the
+                     * client.
+                     */
+                    bool serverSentEncryptThenMAC = TlsExtensionsUtilities.HasEncryptThenMacExtension(sessionServerExtensions);
+                    if (serverSentEncryptThenMAC && !TlsUtilities.IsBlockCipherSuite(selectedCipherSuite))
+                        throw new TlsFatalAlert(AlertDescription.illegal_parameter);
 
-                this.mSecurityParameters.encryptThenMac = serverSentEncryptThenMAC;
+                    this.mSecurityParameters.encryptThenMac = serverSentEncryptThenMAC;
+                }
 
                 this.mSecurityParameters.extendedMasterSecret = TlsExtensionsUtilities.HasExtendedMasterSecretExtension(sessionServerExtensions);
 
@@ -757,6 +743,15 @@ namespace Org.BouncyCastle.Crypto.Tls
             {
                 this.mTlsClient.ProcessServerExtensions(sessionServerExtensions);
             }
+
+            this.mSecurityParameters.prfAlgorithm = GetPrfAlgorithm(Context, this.mSecurityParameters.CipherSuite);
+
+            /*
+             * RFC 5264 7.4.9. Any cipher suite which does not explicitly specify
+             * verify_data_length has a verify_data_length equal to 12. This includes all
+             * existing cipher suites.
+             */
+            this.mSecurityParameters.verifyDataLength = 12;
         }
 
         protected virtual void SendCertificateVerifyMessage(DigitallySigned certificateVerify)
diff --git a/crypto/src/crypto/tls/TlsProtocol.cs b/crypto/src/crypto/tls/TlsProtocol.cs
index 4ea72cd57..8eb7beb3f 100644
--- a/crypto/src/crypto/tls/TlsProtocol.cs
+++ b/crypto/src/crypto/tls/TlsProtocol.cs
@@ -99,6 +99,18 @@ namespace Org.BouncyCastle.Crypto.Tls
         {
         }
 
+        protected virtual void ApplyMaxFragmentLengthExtension()
+        {
+            if (mSecurityParameters.maxFragmentLength >= 0)
+            {
+                if (!MaxFragmentLength.IsValid((byte)mSecurityParameters.maxFragmentLength))
+                    throw new TlsFatalAlert(AlertDescription.internal_error);
+
+                int plainTextLimit = 1 << (8 + mSecurityParameters.maxFragmentLength);
+                mRecordStream.SetPlaintextLimit(plainTextLimit);
+            }
+        }
+
         protected virtual void CheckReceivedChangeCipherSpec(bool expected)
         {
             if (expected != mReceivedChangeCipherSpec)
@@ -164,12 +176,12 @@ namespace Org.BouncyCastle.Crypto.Tls
                     if (this.mSessionParameters == null)
                     {
                         this.mSessionParameters = new SessionParameters.Builder()
-                            .SetCipherSuite(this.mSecurityParameters.cipherSuite)
-                            .SetCompressionAlgorithm(this.mSecurityParameters.compressionAlgorithm)
-                            .SetMasterSecret(this.mSecurityParameters.masterSecret)
+                            .SetCipherSuite(this.mSecurityParameters.CipherSuite)
+                            .SetCompressionAlgorithm(this.mSecurityParameters.CompressionAlgorithm)
+                            .SetMasterSecret(this.mSecurityParameters.MasterSecret)
                             .SetPeerCertificate(this.mPeerCertificate)
-                            .SetPskIdentity(this.mSecurityParameters.pskIdentity)
-                            .SetSrpIdentity(this.mSecurityParameters.srpIdentity)
+                            .SetPskIdentity(this.mSecurityParameters.PskIdentity)
+                            .SetSrpIdentity(this.mSecurityParameters.SrpIdentity)
                             // TODO Consider filtering extensions that aren't relevant to resumed sessions
                             .SetServerExtensions(this.mServerExtensions)
                             .Build();
@@ -761,10 +773,14 @@ namespace Org.BouncyCastle.Crypto.Tls
             byte alertDescription)
         {
             short maxFragmentLength = TlsExtensionsUtilities.GetMaxFragmentLengthExtension(serverExtensions);
-            if (maxFragmentLength >= 0 && !this.mResumedSession)
+            if (maxFragmentLength >= 0)
             {
-                if (maxFragmentLength != TlsExtensionsUtilities.GetMaxFragmentLengthExtension(clientExtensions))
+                if (!MaxFragmentLength.IsValid((byte)maxFragmentLength)
+                    || (!this.mResumedSession && maxFragmentLength != TlsExtensionsUtilities
+                        .GetMaxFragmentLengthExtension(clientExtensions)))
+                {
                     throw new TlsFatalAlert(alertDescription);
+                }
             }
             return maxFragmentLength;
         }
diff --git a/crypto/src/crypto/tls/TlsServerProtocol.cs b/crypto/src/crypto/tls/TlsServerProtocol.cs
index fd6808382..b73cb5a30 100644
--- a/crypto/src/crypto/tls/TlsServerProtocol.cs
+++ b/crypto/src/crypto/tls/TlsServerProtocol.cs
@@ -106,6 +106,8 @@ namespace Org.BouncyCastle.Crypto.Tls
                     SendServerHelloMessage();
                     this.mConnectionState = CS_SERVER_HELLO;
 
+                    mRecordStream.NotifyHelloComplete();
+
                     IList serverSupplementalData = mTlsServer.GetServerSupplementalData();
                     if (serverSupplementalData != null)
                     {
@@ -618,16 +620,18 @@ namespace Org.BouncyCastle.Crypto.Tls
         {
             HandshakeMessage message = new HandshakeMessage(HandshakeType.server_hello);
 
-            ProtocolVersion server_version = mTlsServer.GetServerVersion();
-            if (!server_version.IsEqualOrEarlierVersionOf(Context.ClientVersion))
-                throw new TlsFatalAlert(AlertDescription.internal_error);
+            {
+                ProtocolVersion server_version = mTlsServer.GetServerVersion();
+                if (!server_version.IsEqualOrEarlierVersionOf(Context.ClientVersion))
+                    throw new TlsFatalAlert(AlertDescription.internal_error);
 
-            mRecordStream.ReadVersion = server_version;
-            mRecordStream.SetWriteVersion(server_version);
-            mRecordStream.SetRestrictReadVersion(true);
-            ContextAdmin.SetServerVersion(server_version);
+                mRecordStream.ReadVersion = server_version;
+                mRecordStream.SetWriteVersion(server_version);
+                mRecordStream.SetRestrictReadVersion(true);
+                ContextAdmin.SetServerVersion(server_version);
 
-            TlsUtilities.WriteVersion(server_version, message);
+                TlsUtilities.WriteVersion(server_version, message);
+            }
 
             message.Write(this.mSecurityParameters.serverRandom);
 
@@ -641,7 +645,7 @@ namespace Org.BouncyCastle.Crypto.Tls
             if (!Arrays.Contains(mOfferedCipherSuites, selectedCipherSuite)
                 || selectedCipherSuite == CipherSuite.TLS_NULL_WITH_NULL_NULL
                 || CipherSuite.IsScsv(selectedCipherSuite)
-                || !TlsUtilities.IsValidCipherSuiteForVersion(selectedCipherSuite, server_version))
+                || !TlsUtilities.IsValidCipherSuiteForVersion(selectedCipherSuite, Context.ServerVersion))
             {
                 throw new TlsFatalAlert(AlertDescription.internal_error);
             }
@@ -722,12 +726,6 @@ namespace Org.BouncyCastle.Crypto.Tls
                 WriteExtensions(message, this.mServerExtensions);
             }
 
-            if (mSecurityParameters.maxFragmentLength >= 0)
-            {
-                int plainTextLimit = 1 << (8 + mSecurityParameters.maxFragmentLength);
-                mRecordStream.SetPlaintextLimit(plainTextLimit);
-            }
-
             mSecurityParameters.prfAlgorithm = GetPrfAlgorithm(Context, mSecurityParameters.CipherSuite);
 
             /*
@@ -736,9 +734,9 @@ namespace Org.BouncyCastle.Crypto.Tls
              */
             mSecurityParameters.verifyDataLength = 12;
 
-            message.WriteToRecordStream(this);
+            ApplyMaxFragmentLengthExtension();
 
-            this.mRecordStream.NotifyHelloComplete();
+            message.WriteToRecordStream(this);
         }
 
         protected virtual void SendServerHelloDoneMessage()