/// <exception cref="IOException"/>
        protected static byte[] GenerateSupplementalData(IList supplementalData)
        {
            MemoryStream buf = new MemoryStream();

            TlsProtocol.WriteSupplementalData(buf, supplementalData);
            return(buf.ToArray());
        }