From baffac980d9962290dc401f2d81c6c980e4d81b8 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 26 Oct 2023 16:28:58 +0700 Subject: DTLS: Fixed retransmission in response to re-receipt of an aggregated ChangeCipherSpec - see https://github.com/bcgit/bc-java/pull/1491 --- crypto/Readme.html | 1 + crypto/src/tls/DtlsRecordLayer.cs | 16 +- crypto/src/tls/TlsUtilities.cs | 13 +- .../DtlsAggregatedHandshakeRetransmissionTest.cs | 138 +++++++++++ .../tls/test/DtlsHandshakeRetransmissionTest.cs | 134 +++++++++++ .../test/src/tls/test/FilteredDatagramTransport.cs | 112 +++++++++ .../test/src/tls/test/LoggingDatagramTransport.cs | 15 +- .../src/tls/test/MinimalHandshakeAggregator.cs | 254 +++++++++++++++++++++ crypto/test/src/tls/test/MockDtlsClient.cs | 6 + crypto/test/src/tls/test/ServerHandshakeDropper.cs | 63 +++++ .../src/tls/test/UnreliableDatagramTransport.cs | 23 +- 11 files changed, 736 insertions(+), 39 deletions(-) create mode 100644 crypto/test/src/tls/test/DtlsAggregatedHandshakeRetransmissionTest.cs create mode 100644 crypto/test/src/tls/test/DtlsHandshakeRetransmissionTest.cs create mode 100644 crypto/test/src/tls/test/FilteredDatagramTransport.cs create mode 100644 crypto/test/src/tls/test/MinimalHandshakeAggregator.cs create mode 100644 crypto/test/src/tls/test/ServerHandshakeDropper.cs (limited to 'crypto') diff --git a/crypto/Readme.html b/crypto/Readme.html index 27745b848..91d33d20f 100644 --- a/crypto/Readme.html +++ b/crypto/Readme.html @@ -336,6 +336,7 @@
  • DTLS: Fixed an exception during server handshake when 1.2 is negotiated and the ClientHello contained no extensions.
  • HC128Engine now strictly requires 128 bits of IV.
  • DTLS: Fixed server support for client_certificate_type extension.
  • +
  • DTLS: Fixed retransmission in response to re-receipt of an aggregated ChangeCipherSpec.
  • Additional Features and Functionality