Cryptography
============

.. Release Notes from this point.

:critical:`[Critical]` Unable to write samples when using batching and serialized data protection
-------------------------------------------------------------------------------------------------
If you had:

- A *Topic* that protected serialized data. That is, a
  `data_protection_kind <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/manuals/connext_dds_secure/users_manual/p2_core/cryptography.html#data-protection-kind-topic-rule>`__
  in the Governance Document other than ``NONE``.

- A *DataWriter* that used batching. That is,
  `DDS_DataWriterQos::batch.enable <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/api/connext_dds/api_c/structDDS__BatchQosPolicy.html#a8324371a1eb1c03c8781a783a34da35a>`__
  set to
  `DDS_BOOLEAN_TRUE <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/api/connext_dds/api_c/group__DDSCdrTypesModule.html#ga02f257a405ea7ff6774cdf4330a7eeb7>`__.

The
`FooDataWriter_write <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/api/connext_dds/api_c/group__DDSWriterModule.html#ga5326afcc07471f9589cc6f6c5c6c59b2>`__
function incorrectly returned
`DDS_RETCODE_ERROR <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/api/connext_dds/api_c/group__DDSReturnTypesModule.html#ga73f148aaf96b5f6f9fc630b7cfeb0c91>`__
after generating the following error messages:

::

   ERROR [[...]{[...]}|WRITE] COMMENDFacade_canSampleBeSent:NOT SUPPORTED | Fragment data not supported by this writer.
   ERROR [[...]{[...]}|WRITE] [...]:sample cannot be sent
   ERROR [[...]{[...]}|WRITE] PRESPsWriter_flushBatchWithCursor:FAILED TO SEND | Reliable write
   ERROR [[...]{[...]}|WRITE] PRESPsWriter_writeBatchInternal:!error flushing batch

This occurred when *Connext* attempted to flush a batch because it
reached the
`message_size_max <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/manuals/connext_dds_professional/users_manual/users_manual/Setting_Builtin_Transport_Properties_wit.htm#Table_PropertiesBuiltinUDPv4Transport>`__
of the transport (instead of other limits, such as
`batch.max_data_bytes <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/api/connext_dds/api_c/structDDS__BatchQosPolicy.html#a1a58dd062eb3b1c8c0b0f3d30d4bdfe5>`__
or
`batch.max_samples <https://community.rti.com/static/documentation/connext-dds/7.7.0/doc/api/connext_dds/api_c/structDDS__BatchQosPolicy.html#a8b334ad9988fcb016b48fd42cc5881ec>`__).


[RTI Issue ID SEC-2838]
