<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://miac.volmed.org.ru/wiki/index.php?action=history&amp;feed=atom&amp;title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94</id>
	<title>Получение хэша от строки по гост 94 - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://miac.volmed.org.ru/wiki/index.php?action=history&amp;feed=atom&amp;title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94"/>
	<link rel="alternate" type="text/html" href="https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;action=history"/>
	<updated>2026-04-11T12:12:07Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3578&amp;oldid=prev</id>
		<title>Dmitriy в 07:07, 6 мая 2015</title>
		<link rel="alternate" type="text/html" href="https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3578&amp;oldid=prev"/>
		<updated>2015-05-06T07:07:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 10:07, 6 мая 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Строка 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             string canonicalHashedSignedInfo = Convert.ToBase64String(hashResult);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             string canonicalHashedSignedInfo = Convert.ToBase64String(hashResult);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             Console.WriteLine(canonicalHashedSignedInfo); Console.ReadKey();&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             Console.WriteLine(canonicalHashedSignedInfo); Console.ReadKey();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        static void hash_from_file_not_full(string _filenameXML, string _filenameTXT)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            StreamWriter sw = new StreamWriter(_filenameTXT);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            Gost3411 gost3411 = new Gost3411CryptoServiceProvider();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string Envelope = &quot;/SOAP-ENV:Envelope&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string Header = Envelope + &quot;/SOAP-ENV:Header&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string Action = Header + &quot;/wsa:Action&quot;;       //wsa300&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string MessageID = Header + &quot;/wsa:MessageID&quot;; //wsa301&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string ReplyTo = Header + &quot;/wsa:ReplyTo&quot;;     //wsa302&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string To = Header + &quot;/wsa:To&quot;;               //wsa303&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string transportHeader = Header + &quot;/egisz:transportHeader&quot;;               //TRHEAD&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string Security = Header + &quot;/wsse:Security&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string ClinicalDocument = Envelope + &quot;/SOAP-ENV:Body/ClinicalDocument&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            const string Body = Envelope + &quot;/SOAP-ENV:Body&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            XmlDocument doc = new XmlDocument();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            doc.Load(new XmlTextReader(_filenameXML));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            var ns = new XmlNamespaceManager(doc.NameTable);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            ns.AddNamespace(&quot;SOAP-ENV&quot;, &quot;http://www.w3.org/2003/05/soap-envelope&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            ns.AddNamespace(&quot;wsa&quot;, &quot;http://www.w3.org/2005/08/addressing&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            ns.AddNamespace(&quot;egisz&quot;, &quot;http://egisz.rosminzdrav.ru&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            XmlElement root = doc.DocumentElement;                      // Полный xml файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//            Console.WriteLine(root.InnerXml); Console.ReadKey();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    // Ищем тег Body, с нэмспейсом&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    XmlNode BodyInfo = doc.SelectSingleNode(Body, ns);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    String BodyFile = BodyInfo.OuterXml;        // Получаем полное содержимое тега Body&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;BodyFromFile=      &quot;); sw.WriteLine(BodyFile); // Пишем исходное body в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    byte[] result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(BodyFile));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;HashBodyFile=      &quot;); sw.WriteLine(Convert.ToBase64String(result)); // Пишем хэш исходного body&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    // Приводим тэг Body  к канонической форме&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    String BodyCan2 = Canonicalization(BodyInfo);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;CanonicalBody=     &quot;); sw.WriteLine(BodyCan2);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(BodyCan2));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;HashCanonicalBody= &quot;); sw.WriteLine(Convert.ToBase64String(result));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    export_can_node(BodyCan2, &quot;doc/Body_cann&quot;);   // экспорт результата каноникализации в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.WriteLine(&quot;********************************&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        // Ищем тег Action, с нэмспейсом&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        XmlNode Wsa300Info = doc.SelectSingleNode(Action, ns);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        String WSA300File = Wsa300Info.OuterXml;        // Получаем полное содержимое тега &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;WSA300FromFile=      &quot;); sw.WriteLine(WSA300File); // Пишем исходное в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(WSA300File));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;HashWSA300File=      &quot;); sw.WriteLine(Convert.ToBase64String(result)); // Пишем хэш исходного body&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        // Приводим тэг к канонической форме&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        String WSACan2 = Canonicalization(Wsa300Info);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;CanonicalWSA300=     &quot;); sw.WriteLine(WSACan2);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(WSACan2));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;HashCanonicalWSA300= &quot;); sw.WriteLine(Convert.ToBase64String(result));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        export_can_node(WSACan2, &quot;doc/WSA300_cann&quot;);   // экспорт результата каноникализации в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.WriteLine(&quot;********************************&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    XmlNode WSA301Info = doc.SelectSingleNode(MessageID, ns);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;WSA301FromFile=      &quot;); sw.WriteLine(WSA301Info.OuterXml); // Пишем исходное в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(WSA301Info.OuterXml));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;HashWSA301File=      &quot;); sw.WriteLine(Convert.ToBase64String(result)); // Пишем хэш исходного&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    // Приводим тэг к канонической форме&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;CanonicalWSA301=     &quot;); sw.WriteLine(Canonicalization(WSA301Info));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(Canonicalization(WSA301Info)));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;HashWSA301Cann=      &quot;); sw.WriteLine(Convert.ToBase64String(result));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    export_can_node(Canonicalization(WSA301Info), &quot;doc/WSA301_cann&quot;);   // экспорт результата каноникализации в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.WriteLine(&quot;********************************&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        XmlNode WSA302Info = doc.SelectSingleNode(ReplyTo, ns);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;WSA302FromFile=      &quot;); sw.WriteLine(WSA302Info.OuterXml); // Пишем исходное в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(WSA302Info.OuterXml));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;HashWSA302File=      &quot;); sw.WriteLine(Convert.ToBase64String(result)); // Пишем хэш исходного&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        // Приводим тэг к канонической форме&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;CanonicalWSA302=     &quot;); sw.WriteLine(Canonicalization(WSA302Info));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(Canonicalization(WSA302Info)));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;HashWSA302Cann=      &quot;); sw.WriteLine(Convert.ToBase64String(result));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        export_can_node(Canonicalization(WSA302Info), &quot;doc/WSA302_cann&quot;);   // экспорт результата каноникализации в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.WriteLine(&quot;********************************&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    XmlNode WSA303Info = doc.SelectSingleNode(To, ns);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;WSA303FromFile=      &quot;); sw.WriteLine(WSA303Info.OuterXml); // Пишем исходное в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(WSA303Info.OuterXml));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;HashWSA303File=      &quot;); sw.WriteLine(Convert.ToBase64String(result)); // Пишем хэш исходного&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    // Приводим тэг к канонической форме&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;CanonicalWSA303=     &quot;); sw.WriteLine(Canonicalization(WSA303Info));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(Canonicalization(WSA303Info)));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.Write(&quot;HashWSA303Cann=      &quot;); sw.WriteLine(Convert.ToBase64String(result));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    export_can_node(Canonicalization(WSA303Info), &quot;doc/WSA303_cann&quot;);   // экспорт результата каноникализации в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                    sw.WriteLine(&quot;********************************&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        XmlNode TRHEADInfo = doc.SelectSingleNode(transportHeader, ns);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;TRHEADFromFile=      &quot;); sw.WriteLine(TRHEADInfo.OuterXml); // Пишем исходное в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(TRHEADInfo.OuterXml));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;HashTRHEADFile=      &quot;); sw.WriteLine(Convert.ToBase64String(result)); // Пишем хэш исходного&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        // Приводим тэг к канонической форме&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;CanonicalTRHEAD=     &quot;); sw.WriteLine(Canonicalization(TRHEADInfo));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        result = gost3411.ComputeHash(Encoding.UTF8.GetBytes(Canonicalization(TRHEADInfo)));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.Write(&quot;HashTRHEADCann=      &quot;); sw.WriteLine(Convert.ToBase64String(result));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        export_can_node(Canonicalization(TRHEADInfo), &quot;doc/WSATRHEAD_cann&quot;);   // экспорт результата каноникализации в файл&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        sw.WriteLine(&quot;********************************&quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//            Console.WriteLine(signedInfo.InnerXml); Console.ReadKey();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            sw.Close();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            return;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dmitriy</name></author>
	</entry>
	<entry>
		<id>https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3539&amp;oldid=prev</id>
		<title>Dmitriy в 09:32, 13 февраля 2015</title>
		<link rel="alternate" type="text/html" href="https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3539&amp;oldid=prev"/>
		<updated>2015-02-13T09:32:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 12:32, 13 февраля 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Строка 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             HashAlgorithm myhash1 = HashAlgorithm.Create(&amp;quot;Gost3411&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             HashAlgorithm myhash1 = HashAlgorithm.Create(&amp;quot;Gost3411&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             byte[] hashResult = myhash1.ComputeHash(Encoding.UTF8.GetBytes(signedInfo22));&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             byte[] hashResult = myhash1.ComputeHash(Encoding.UTF8.GetBytes(signedInfo22));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            Console.WriteLine(hashResult); Console.ReadKey();&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             string canonicalHashedSignedInfo = Convert.ToBase64String(hashResult);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             string canonicalHashedSignedInfo = Convert.ToBase64String(hashResult);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             Console.WriteLine(canonicalHashedSignedInfo); Console.ReadKey();&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             Console.WriteLine(canonicalHashedSignedInfo); Console.ReadKey();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dmitriy</name></author>
	</entry>
	<entry>
		<id>https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3538&amp;oldid=prev</id>
		<title>Dmitriy в 09:31, 13 февраля 2015</title>
		<link rel="alternate" type="text/html" href="https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3538&amp;oldid=prev"/>
		<updated>2015-02-13T09:31:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 12:31, 13 февраля 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;            string signedInfo22 = &quot;&amp;lt;SOAP-ENV:Body xmlns:SOAP-ENV=\&quot;http://www.w3.org/2003/05/soap-envelope\&quot; xmlns:wsu=\&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\&quot; wsu:Id=\&quot;BODY\&quot;&amp;gt;&amp;lt;PRPA_IN201301RU02 xmlns=\&quot;urn:hl7-org:v3\&quot; ITSVersion=\&quot;XML_1.0\&quot;&amp;gt;&amp;lt;id extension=\&quot;0\&quot; root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;creationTime value=\&quot;20150209172931\&quot;&amp;gt;&amp;lt;/creationTime&amp;gt;&amp;lt;interactionId extension=\&quot;PRPA_IN201301RU02\&quot; root=\&quot;1.2.643.5.1.13.2.7.3\&quot;&amp;gt;&amp;lt;/interactionId&amp;gt;&amp;lt;processingCode code=\&quot;P\&quot;&amp;gt;&amp;lt;/processingCode&amp;gt;&amp;lt;processingModeCode code=\&quot;T\&quot;&amp;gt;&amp;lt;/processingModeCode&amp;gt;&amp;lt;acceptAckCode code=\&quot;AL\&quot;&amp;gt;&amp;lt;/acceptAckCode&amp;gt;&amp;lt;receiver typeCode=\&quot;RCV\&quot;&amp;gt;&amp;lt;device classCode=\&quot;DEV\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;d5a0f9c0-5db4-11e3-949a-0800200c9a66\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;asAgent classCode=\&quot;ASSIGNED\&quot;&amp;gt;&amp;lt;representedOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.2.7.3\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;ИЭМК&amp;lt;/name&amp;gt;&amp;lt;/representedOrganization&amp;gt;&amp;lt;/asAgent&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/receiver&amp;gt;&amp;lt;sender typeCode=\&quot;SND\&quot;&amp;gt;&amp;lt;device classCode=\&quot;DEV\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;d84c8524-d53e-43c6-973c-5076646731d8\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;МИС Вологодской области \&quot;Статистика и счета ЛПУ\&quot;&amp;lt;/name&amp;gt;&amp;lt;asAgent classCode=\&quot;ASSIGNED\&quot;&amp;gt;&amp;lt;representedOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;/representedOrganization&amp;gt;&amp;lt;/asAgent&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/sender&amp;gt;&amp;lt;controlActProcess classCode=\&quot;CACT\&quot; moodCode=\&quot;EVN\&quot;&amp;gt;&amp;lt;subject typeCode=\&quot;SUBJ\&quot;&amp;gt;&amp;lt;registrationEvent classCode=\&quot;REG\&quot; moodCode=\&quot;EVN\&quot;&amp;gt;&amp;lt;id nullFlavor=\&quot;NA\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;statusCode code=\&quot;active\&quot;&amp;gt;&amp;lt;/statusCode&amp;gt;&amp;lt;subject1 typeCode=\&quot;SBJ\&quot;&amp;gt;&amp;lt;patient classCode=\&quot;PAT\&quot;&amp;gt;&amp;lt;id extension=\&quot;3655\&quot; root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;statusCode code=\&quot;active\&quot;&amp;gt;&amp;lt;/statusCode&amp;gt;&amp;lt;patientPerson&amp;gt;&amp;lt;name&amp;gt;&amp;lt;family&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ШУЛЕВА&lt;/del&gt;&amp;lt;/family&amp;gt;&amp;lt;given&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;НАДЕЖДА&lt;/del&gt;&amp;lt;/given&amp;gt;&amp;lt;given&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ВЛАДИМИРОВНА&lt;/del&gt;&amp;lt;/given&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;administrativeGenderCode code=\&quot;2\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.156\&quot;&amp;gt;&amp;lt;/administrativeGenderCode&amp;gt;&amp;lt;birthTime value=\&quot;19590928\&quot;&amp;gt;&amp;lt;/birthTime&amp;gt;&amp;lt;addr&amp;gt;&amp;lt;streetAddressLine&amp;gt;г. ВОЛОГДА, ул. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;БЕЛЯЕВА дом.7 &lt;/del&gt;кв.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;39&lt;/del&gt;&amp;lt;/streetAddressLine&amp;gt;&amp;lt;city&amp;gt;ВОЛОГДА&amp;lt;/city&amp;gt;&amp;lt;state&amp;gt;ВОЛОГОДСКАЯ&amp;lt;/state&amp;gt;&amp;lt;country&amp;gt;Российская Федерация&amp;lt;/country&amp;gt;&amp;lt;/addr&amp;gt;&amp;lt;asMember classCode=\&quot;MBR\&quot;&amp;gt;&amp;lt;group classCode=\&quot;PUB\&quot;&amp;gt;&amp;lt;code code=\&quot;5\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.366\&quot; displayName=\&quot;Неработающий\&quot;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/asMember&amp;gt;&amp;lt;asMember classCode=\&quot;MBR\&quot;&amp;gt;&amp;lt;group classCode=\&quot;PUB\&quot;&amp;gt;&amp;lt;code code=\&quot;2\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.358\&quot; displayName=\&quot;инвалиды войны\&quot;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/asMember&amp;gt;&amp;lt;asOtherIDs classCode=\&quot;IDENT\&quot;&amp;gt;&amp;lt;documentType code=\&quot;3\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.7.1.62\&quot;&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&quot;06377932094\&quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;scopingOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id nullFlavor=\&quot;NI\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;asOtherIDs classCode=\&quot;HLD\&quot;&amp;gt;&amp;lt;documentType code=\&quot;1\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.7.1.62\&quot;&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&quot;3550040871001818\&quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;effectiveTime value=\&quot;20120416\&quot;&amp;gt;&amp;lt;/effectiveTime&amp;gt;&amp;lt;scopingOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id extension=\&quot;35003\&quot; root=\&quot;1.2.643.5.1.13.2.1.1.635\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;ОАО\&quot;СТРАХОВАЯ КОМПАНИЯ \&quot;СОГАЗ-МЕД\&quot;&amp;lt;/name&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;asOtherIDs classCode=\&quot;IDENT\&quot;&amp;gt;&amp;lt;documentType code=\&quot;5\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.7.1.62\&quot;&amp;gt;&amp;lt;qualifier&amp;gt;&amp;lt;name code=\&quot;14\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.498\&quot; codeSystemName=\&quot;Классификатор документов, удостоверяющих личность гражданина Российской Федерации\&quot; displayName=\&quot;Паспорт гражданина РФ\&quot;&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;/qualifier&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&quot;1909614992\&quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;scopingOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id nullFlavor=\&quot;NI\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;УФМС Г.ВОЛОГДА&amp;lt;/name&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;birthPlace&amp;gt;&amp;lt;addr&amp;gt;&amp;lt;city&amp;gt;Вологда&amp;lt;/city&amp;gt;&amp;lt;state&amp;gt;Российская Федерация&amp;lt;/state&amp;gt;&amp;lt;/addr&amp;gt;&amp;lt;/birthPlace&amp;gt;&amp;lt;/patientPerson&amp;gt;&amp;lt;providerOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;contactParty classCode=\&quot;CON\&quot;&amp;gt;&amp;lt;telecom value=\&quot;+8(8202)74-13-06\&quot;&amp;gt;&amp;lt;/telecom&amp;gt;&amp;lt;/contactParty&amp;gt;&amp;lt;/providerOrganization&amp;gt;&amp;lt;/patient&amp;gt;&amp;lt;/subject1&amp;gt;&amp;lt;custodian typeCode=\&quot;CST\&quot;&amp;gt;&amp;lt;assignedEntity classCode=\&quot;ASSIGNED\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;assignedOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;/assignedOrganization&amp;gt;&amp;lt;/assignedEntity&amp;gt;&amp;lt;/custodian&amp;gt;&amp;lt;/registrationEvent&amp;gt;&amp;lt;/subject&amp;gt;&amp;lt;/controlActProcess&amp;gt;&amp;lt;/PRPA_IN201301RU02&amp;gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;            string signedInfo22 = &quot;&amp;lt;SOAP-ENV:Body xmlns:SOAP-ENV=\&quot;http://www.w3.org/2003/05/soap-envelope\&quot; xmlns:wsu=\&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\&quot; wsu:Id=\&quot;BODY\&quot;&amp;gt;&amp;lt;PRPA_IN201301RU02 xmlns=\&quot;urn:hl7-org:v3\&quot; ITSVersion=\&quot;XML_1.0\&quot;&amp;gt;&amp;lt;id extension=\&quot;0\&quot; root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;creationTime value=\&quot;20150209172931\&quot;&amp;gt;&amp;lt;/creationTime&amp;gt;&amp;lt;interactionId extension=\&quot;PRPA_IN201301RU02\&quot; root=\&quot;1.2.643.5.1.13.2.7.3\&quot;&amp;gt;&amp;lt;/interactionId&amp;gt;&amp;lt;processingCode code=\&quot;P\&quot;&amp;gt;&amp;lt;/processingCode&amp;gt;&amp;lt;processingModeCode code=\&quot;T\&quot;&amp;gt;&amp;lt;/processingModeCode&amp;gt;&amp;lt;acceptAckCode code=\&quot;AL\&quot;&amp;gt;&amp;lt;/acceptAckCode&amp;gt;&amp;lt;receiver typeCode=\&quot;RCV\&quot;&amp;gt;&amp;lt;device classCode=\&quot;DEV\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;d5a0f9c0-5db4-11e3-949a-0800200c9a66\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;asAgent classCode=\&quot;ASSIGNED\&quot;&amp;gt;&amp;lt;representedOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.2.7.3\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;ИЭМК&amp;lt;/name&amp;gt;&amp;lt;/representedOrganization&amp;gt;&amp;lt;/asAgent&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/receiver&amp;gt;&amp;lt;sender typeCode=\&quot;SND\&quot;&amp;gt;&amp;lt;device classCode=\&quot;DEV\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;d84c8524-d53e-43c6-973c-5076646731d8\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;МИС Вологодской области \&quot;Статистика и счета ЛПУ\&quot;&amp;lt;/name&amp;gt;&amp;lt;asAgent classCode=\&quot;ASSIGNED\&quot;&amp;gt;&amp;lt;representedOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;/representedOrganization&amp;gt;&amp;lt;/asAgent&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/sender&amp;gt;&amp;lt;controlActProcess classCode=\&quot;CACT\&quot; moodCode=\&quot;EVN\&quot;&amp;gt;&amp;lt;subject typeCode=\&quot;SUBJ\&quot;&amp;gt;&amp;lt;registrationEvent classCode=\&quot;REG\&quot; moodCode=\&quot;EVN\&quot;&amp;gt;&amp;lt;id nullFlavor=\&quot;NA\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;statusCode code=\&quot;active\&quot;&amp;gt;&amp;lt;/statusCode&amp;gt;&amp;lt;subject1 typeCode=\&quot;SBJ\&quot;&amp;gt;&amp;lt;patient classCode=\&quot;PAT\&quot;&amp;gt;&amp;lt;id extension=\&quot;3655\&quot; root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;statusCode code=\&quot;active\&quot;&amp;gt;&amp;lt;/statusCode&amp;gt;&amp;lt;patientPerson&amp;gt;&amp;lt;name&amp;gt;&amp;lt;family&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;XXXXXX&lt;/ins&gt;&amp;lt;/family&amp;gt;&amp;lt;given&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;YYYYYYYY&lt;/ins&gt;&amp;lt;/given&amp;gt;&amp;lt;given&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ZZZZZZZZZZZZZZ&lt;/ins&gt;&amp;lt;/given&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;administrativeGenderCode code=\&quot;2\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.156\&quot;&amp;gt;&amp;lt;/administrativeGenderCode&amp;gt;&amp;lt;birthTime value=\&quot;19590928\&quot;&amp;gt;&amp;lt;/birthTime&amp;gt;&amp;lt;addr&amp;gt;&amp;lt;streetAddressLine&amp;gt;г. ВОЛОГДА, ул. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFFFFFFFFF &lt;/ins&gt;кв.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;31&lt;/ins&gt;&amp;lt;/streetAddressLine&amp;gt;&amp;lt;city&amp;gt;ВОЛОГДА&amp;lt;/city&amp;gt;&amp;lt;state&amp;gt;ВОЛОГОДСКАЯ&amp;lt;/state&amp;gt;&amp;lt;country&amp;gt;Российская Федерация&amp;lt;/country&amp;gt;&amp;lt;/addr&amp;gt;&amp;lt;asMember classCode=\&quot;MBR\&quot;&amp;gt;&amp;lt;group classCode=\&quot;PUB\&quot;&amp;gt;&amp;lt;code code=\&quot;5\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.366\&quot; displayName=\&quot;Неработающий\&quot;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/asMember&amp;gt;&amp;lt;asMember classCode=\&quot;MBR\&quot;&amp;gt;&amp;lt;group classCode=\&quot;PUB\&quot;&amp;gt;&amp;lt;code code=\&quot;2\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.358\&quot; displayName=\&quot;инвалиды войны\&quot;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/asMember&amp;gt;&amp;lt;asOtherIDs classCode=\&quot;IDENT\&quot;&amp;gt;&amp;lt;documentType code=\&quot;3\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.7.1.62\&quot;&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&quot;06377932094\&quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;scopingOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id nullFlavor=\&quot;NI\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;asOtherIDs classCode=\&quot;HLD\&quot;&amp;gt;&amp;lt;documentType code=\&quot;1\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.7.1.62\&quot;&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&quot;3550040871001818\&quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;effectiveTime value=\&quot;20120416\&quot;&amp;gt;&amp;lt;/effectiveTime&amp;gt;&amp;lt;scopingOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id extension=\&quot;35003\&quot; root=\&quot;1.2.643.5.1.13.2.1.1.635\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;ОАО\&quot;СТРАХОВАЯ КОМПАНИЯ \&quot;СОГАЗ-МЕД\&quot;&amp;lt;/name&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;asOtherIDs classCode=\&quot;IDENT\&quot;&amp;gt;&amp;lt;documentType code=\&quot;5\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.7.1.62\&quot;&amp;gt;&amp;lt;qualifier&amp;gt;&amp;lt;name code=\&quot;14\&quot; codeSystem=\&quot;1.2.643.5.1.13.2.1.1.498\&quot; codeSystemName=\&quot;Классификатор документов, удостоверяющих личность гражданина Российской Федерации\&quot; displayName=\&quot;Паспорт гражданина РФ\&quot;&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;/qualifier&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&quot;1909614992\&quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;scopingOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id nullFlavor=\&quot;NI\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;УФМС Г.ВОЛОГДА&amp;lt;/name&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;birthPlace&amp;gt;&amp;lt;addr&amp;gt;&amp;lt;city&amp;gt;Вологда&amp;lt;/city&amp;gt;&amp;lt;state&amp;gt;Российская Федерация&amp;lt;/state&amp;gt;&amp;lt;/addr&amp;gt;&amp;lt;/birthPlace&amp;gt;&amp;lt;/patientPerson&amp;gt;&amp;lt;providerOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;contactParty classCode=\&quot;CON\&quot;&amp;gt;&amp;lt;telecom value=\&quot;+8(8202)74-13-06\&quot;&amp;gt;&amp;lt;/telecom&amp;gt;&amp;lt;/contactParty&amp;gt;&amp;lt;/providerOrganization&amp;gt;&amp;lt;/patient&amp;gt;&amp;lt;/subject1&amp;gt;&amp;lt;custodian typeCode=\&quot;CST\&quot;&amp;gt;&amp;lt;assignedEntity classCode=\&quot;ASSIGNED\&quot;&amp;gt;&amp;lt;id root=\&quot;1.2.643.5.1.13.3.25.35.11\&quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;assignedOrganization classCode=\&quot;ORG\&quot; determinerCode=\&quot;INSTANCE\&quot;&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;/assignedOrganization&amp;gt;&amp;lt;/assignedEntity&amp;gt;&amp;lt;/custodian&amp;gt;&amp;lt;/registrationEvent&amp;gt;&amp;lt;/subject&amp;gt;&amp;lt;/controlActProcess&amp;gt;&amp;lt;/PRPA_IN201301RU02&amp;gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             HashAlgorithm myhash1 = HashAlgorithm.Create(&amp;quot;Gost3411&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             HashAlgorithm myhash1 = HashAlgorithm.Create(&amp;quot;Gost3411&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             byte[] hashResult = myhash1.ComputeHash(Encoding.UTF8.GetBytes(signedInfo22));&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             byte[] hashResult = myhash1.ComputeHash(Encoding.UTF8.GetBytes(signedInfo22));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dmitriy</name></author>
	</entry>
	<entry>
		<id>https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3537&amp;oldid=prev</id>
		<title>Dmitriy: Новая страница: «&lt;pre&gt;            string signedInfo22 = &quot;&lt;SOAP-ENV:Body xmlns:SOAP-ENV=\&quot;http://www.w3.org/2003/05/soap-envelope\&quot; xmlns:wsu=\&quot;http://docs.oasis-open.org/wss/2004/…»</title>
		<link rel="alternate" type="text/html" href="https://miac.volmed.org.ru/wiki/index.php?title=%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D0%B5_%D1%85%D1%8D%D1%88%D0%B0_%D0%BE%D1%82_%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B8_%D0%BF%D0%BE_%D0%B3%D0%BE%D1%81%D1%82_94&amp;diff=3537&amp;oldid=prev"/>
		<updated>2015-02-13T09:29:02Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&amp;lt;pre&amp;gt;            string signedInfo22 = &amp;quot;&amp;lt;SOAP-ENV:Body xmlns:SOAP-ENV=\&amp;quot;http://www.w3.org/2003/05/soap-envelope\&amp;quot; xmlns:wsu=\&amp;quot;http://docs.oasis-open.org/wss/2004/…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;            string signedInfo22 = &amp;quot;&amp;lt;SOAP-ENV:Body xmlns:SOAP-ENV=\&amp;quot;http://www.w3.org/2003/05/soap-envelope\&amp;quot; xmlns:wsu=\&amp;quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\&amp;quot; wsu:Id=\&amp;quot;BODY\&amp;quot;&amp;gt;&amp;lt;PRPA_IN201301RU02 xmlns=\&amp;quot;urn:hl7-org:v3\&amp;quot; ITSVersion=\&amp;quot;XML_1.0\&amp;quot;&amp;gt;&amp;lt;id extension=\&amp;quot;0\&amp;quot; root=\&amp;quot;1.2.643.5.1.13.3.25.35.11\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;creationTime value=\&amp;quot;20150209172931\&amp;quot;&amp;gt;&amp;lt;/creationTime&amp;gt;&amp;lt;interactionId extension=\&amp;quot;PRPA_IN201301RU02\&amp;quot; root=\&amp;quot;1.2.643.5.1.13.2.7.3\&amp;quot;&amp;gt;&amp;lt;/interactionId&amp;gt;&amp;lt;processingCode code=\&amp;quot;P\&amp;quot;&amp;gt;&amp;lt;/processingCode&amp;gt;&amp;lt;processingModeCode code=\&amp;quot;T\&amp;quot;&amp;gt;&amp;lt;/processingModeCode&amp;gt;&amp;lt;acceptAckCode code=\&amp;quot;AL\&amp;quot;&amp;gt;&amp;lt;/acceptAckCode&amp;gt;&amp;lt;receiver typeCode=\&amp;quot;RCV\&amp;quot;&amp;gt;&amp;lt;device classCode=\&amp;quot;DEV\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id root=\&amp;quot;d5a0f9c0-5db4-11e3-949a-0800200c9a66\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;asAgent classCode=\&amp;quot;ASSIGNED\&amp;quot;&amp;gt;&amp;lt;representedOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id root=\&amp;quot;1.2.643.5.1.13.2.7.3\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;ИЭМК&amp;lt;/name&amp;gt;&amp;lt;/representedOrganization&amp;gt;&amp;lt;/asAgent&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/receiver&amp;gt;&amp;lt;sender typeCode=\&amp;quot;SND\&amp;quot;&amp;gt;&amp;lt;device classCode=\&amp;quot;DEV\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id root=\&amp;quot;d84c8524-d53e-43c6-973c-5076646731d8\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;МИС Вологодской области \&amp;quot;Статистика и счета ЛПУ\&amp;quot;&amp;lt;/name&amp;gt;&amp;lt;asAgent classCode=\&amp;quot;ASSIGNED\&amp;quot;&amp;gt;&amp;lt;representedOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id root=\&amp;quot;1.2.643.5.1.13.3.25.35.11\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;/representedOrganization&amp;gt;&amp;lt;/asAgent&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/sender&amp;gt;&amp;lt;controlActProcess classCode=\&amp;quot;CACT\&amp;quot; moodCode=\&amp;quot;EVN\&amp;quot;&amp;gt;&amp;lt;subject typeCode=\&amp;quot;SUBJ\&amp;quot;&amp;gt;&amp;lt;registrationEvent classCode=\&amp;quot;REG\&amp;quot; moodCode=\&amp;quot;EVN\&amp;quot;&amp;gt;&amp;lt;id nullFlavor=\&amp;quot;NA\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;statusCode code=\&amp;quot;active\&amp;quot;&amp;gt;&amp;lt;/statusCode&amp;gt;&amp;lt;subject1 typeCode=\&amp;quot;SBJ\&amp;quot;&amp;gt;&amp;lt;patient classCode=\&amp;quot;PAT\&amp;quot;&amp;gt;&amp;lt;id extension=\&amp;quot;3655\&amp;quot; root=\&amp;quot;1.2.643.5.1.13.3.25.35.11\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;statusCode code=\&amp;quot;active\&amp;quot;&amp;gt;&amp;lt;/statusCode&amp;gt;&amp;lt;patientPerson&amp;gt;&amp;lt;name&amp;gt;&amp;lt;family&amp;gt;ШУЛЕВА&amp;lt;/family&amp;gt;&amp;lt;given&amp;gt;НАДЕЖДА&amp;lt;/given&amp;gt;&amp;lt;given&amp;gt;ВЛАДИМИРОВНА&amp;lt;/given&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;administrativeGenderCode code=\&amp;quot;2\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.1.1.156\&amp;quot;&amp;gt;&amp;lt;/administrativeGenderCode&amp;gt;&amp;lt;birthTime value=\&amp;quot;19590928\&amp;quot;&amp;gt;&amp;lt;/birthTime&amp;gt;&amp;lt;addr&amp;gt;&amp;lt;streetAddressLine&amp;gt;г. ВОЛОГДА, ул. БЕЛЯЕВА дом.7 кв.39&amp;lt;/streetAddressLine&amp;gt;&amp;lt;city&amp;gt;ВОЛОГДА&amp;lt;/city&amp;gt;&amp;lt;state&amp;gt;ВОЛОГОДСКАЯ&amp;lt;/state&amp;gt;&amp;lt;country&amp;gt;Российская Федерация&amp;lt;/country&amp;gt;&amp;lt;/addr&amp;gt;&amp;lt;asMember classCode=\&amp;quot;MBR\&amp;quot;&amp;gt;&amp;lt;group classCode=\&amp;quot;PUB\&amp;quot;&amp;gt;&amp;lt;code code=\&amp;quot;5\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.1.1.366\&amp;quot; displayName=\&amp;quot;Неработающий\&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/asMember&amp;gt;&amp;lt;asMember classCode=\&amp;quot;MBR\&amp;quot;&amp;gt;&amp;lt;group classCode=\&amp;quot;PUB\&amp;quot;&amp;gt;&amp;lt;code code=\&amp;quot;2\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.1.1.358\&amp;quot; displayName=\&amp;quot;инвалиды войны\&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/group&amp;gt;&amp;lt;/asMember&amp;gt;&amp;lt;asOtherIDs classCode=\&amp;quot;IDENT\&amp;quot;&amp;gt;&amp;lt;documentType code=\&amp;quot;3\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.7.1.62\&amp;quot;&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&amp;quot;06377932094\&amp;quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;scopingOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id nullFlavor=\&amp;quot;NI\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;asOtherIDs classCode=\&amp;quot;HLD\&amp;quot;&amp;gt;&amp;lt;documentType code=\&amp;quot;1\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.7.1.62\&amp;quot;&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&amp;quot;3550040871001818\&amp;quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;effectiveTime value=\&amp;quot;20120416\&amp;quot;&amp;gt;&amp;lt;/effectiveTime&amp;gt;&amp;lt;scopingOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id extension=\&amp;quot;35003\&amp;quot; root=\&amp;quot;1.2.643.5.1.13.2.1.1.635\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;ОАО\&amp;quot;СТРАХОВАЯ КОМПАНИЯ \&amp;quot;СОГАЗ-МЕД\&amp;quot;&amp;lt;/name&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;asOtherIDs classCode=\&amp;quot;IDENT\&amp;quot;&amp;gt;&amp;lt;documentType code=\&amp;quot;5\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.7.1.62\&amp;quot;&amp;gt;&amp;lt;qualifier&amp;gt;&amp;lt;name code=\&amp;quot;14\&amp;quot; codeSystem=\&amp;quot;1.2.643.5.1.13.2.1.1.498\&amp;quot; codeSystemName=\&amp;quot;Классификатор документов, удостоверяющих личность гражданина Российской Федерации\&amp;quot; displayName=\&amp;quot;Паспорт гражданина РФ\&amp;quot;&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;/qualifier&amp;gt;&amp;lt;/documentType&amp;gt;&amp;lt;documentNumber number=\&amp;quot;1909614992\&amp;quot;&amp;gt;&amp;lt;/documentNumber&amp;gt;&amp;lt;scopingOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id nullFlavor=\&amp;quot;NI\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;УФМС Г.ВОЛОГДА&amp;lt;/name&amp;gt;&amp;lt;/scopingOrganization&amp;gt;&amp;lt;/asOtherIDs&amp;gt;&amp;lt;birthPlace&amp;gt;&amp;lt;addr&amp;gt;&amp;lt;city&amp;gt;Вологда&amp;lt;/city&amp;gt;&amp;lt;state&amp;gt;Российская Федерация&amp;lt;/state&amp;gt;&amp;lt;/addr&amp;gt;&amp;lt;/birthPlace&amp;gt;&amp;lt;/patientPerson&amp;gt;&amp;lt;providerOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;id root=\&amp;quot;1.2.643.5.1.13.3.25.35.11\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;contactParty classCode=\&amp;quot;CON\&amp;quot;&amp;gt;&amp;lt;telecom value=\&amp;quot;+8(8202)74-13-06\&amp;quot;&amp;gt;&amp;lt;/telecom&amp;gt;&amp;lt;/contactParty&amp;gt;&amp;lt;/providerOrganization&amp;gt;&amp;lt;/patient&amp;gt;&amp;lt;/subject1&amp;gt;&amp;lt;custodian typeCode=\&amp;quot;CST\&amp;quot;&amp;gt;&amp;lt;assignedEntity classCode=\&amp;quot;ASSIGNED\&amp;quot;&amp;gt;&amp;lt;id root=\&amp;quot;1.2.643.5.1.13.3.25.35.11\&amp;quot;&amp;gt;&amp;lt;/id&amp;gt;&amp;lt;assignedOrganization classCode=\&amp;quot;ORG\&amp;quot; determinerCode=\&amp;quot;INSTANCE\&amp;quot;&amp;gt;&amp;lt;name&amp;gt;БУЗ ВО ВОЛОГОДСКАЯ ГОРОДСКАЯ ПОЛИКЛИНИКА 3&amp;lt;/name&amp;gt;&amp;lt;/assignedOrganization&amp;gt;&amp;lt;/assignedEntity&amp;gt;&amp;lt;/custodian&amp;gt;&amp;lt;/registrationEvent&amp;gt;&amp;lt;/subject&amp;gt;&amp;lt;/controlActProcess&amp;gt;&amp;lt;/PRPA_IN201301RU02&amp;gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&amp;quot;;&lt;br /&gt;
            HashAlgorithm myhash1 = HashAlgorithm.Create(&amp;quot;Gost3411&amp;quot;);&lt;br /&gt;
            byte[] hashResult = myhash1.ComputeHash(Encoding.UTF8.GetBytes(signedInfo22));&lt;br /&gt;
            Console.WriteLine(hashResult); Console.ReadKey();&lt;br /&gt;
            string canonicalHashedSignedInfo = Convert.ToBase64String(hashResult);&lt;br /&gt;
            Console.WriteLine(canonicalHashedSignedInfo); Console.ReadKey();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dmitriy</name></author>
	</entry>
</feed>