<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Guardant &mdash; Specifed algorithm or protected item not support requested service]]></title>
	<link rel="self" href="https://forum.guardant.ru/feed/atom/topic/811/" />
	<updated>2018-04-25T09:15:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.guardant.ru/topic/811/</id>
		<entry>
			<title type="html"><![CDATA[Re: Specifed algorithm or protected item not support requested service]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/3878/#p3878" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>li.volker пишет:</cite><blockquote><p>Добрый день.<br />Использую ключ code. В мастере по работе с ключом, создал ключ с нуля. Добавил алгоритм AES128. Затем из программы пробую вызвать и получаю ошибку &quot;Specifed algorithm or protected item not support requested service&quot;</p><p>с чем эта ошибка может быть связан, что я забыл сделать?</p><p>Пример кода:<br />&nbsp; szDataStr:=&#039;___ Test Data string for encrypt/decrypt. Length of 64 bytes____&#039;;<br />&nbsp; DataLen := Sizeof(Char)* Length(szDataStr);</p><p>&nbsp; &nbsp; // Implement data encoding by AES128 hardware algorithm<br />&nbsp; &nbsp; write(&#039;Encoding data by AES128 hardware algorithm: &#039;);<br />&nbsp; &nbsp; nRet:= GrdCryptEx(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hGrd_writer,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Handle to Guardant protected container<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 01,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Number of hardware algorithm AES128<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataLen,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Data length<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @szDataStr[1],&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Data to be crypted<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GrdAM_OFB or GrdAM_Encode,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // OFB = Output Feed Back<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lenVectorAES,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// size of init vector<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @szInitVectorAES[1],&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 128-bit init vector<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Use encryption key stored in the dongle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Context is not used<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil );&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Reserved, must be nil<br />&nbsp; &nbsp; ErrorHandling(hGrd_writer, nRet);</p></blockquote></div><p>Ошибка, возможно, связана с тем, что алгоритм отсутствует в нужной области памяти ключа. Изучив маску можно уточнить такой момент.</p><div class="quotebox"><cite>li.volker пишет:</cite><blockquote><p>Мы решили отказаться от этого алгоритма, в пользу Ecc160</p></blockquote></div><p>Да, такой способ защиты так же возможен. Если появятся новые вопросы - обращайтесь.</p>]]></content>
			<author>
				<name><![CDATA[Тимофей Ершов]]></name>
				<uri>https://forum.guardant.ru/user/1116/</uri>
			</author>
			<updated>2018-04-25T09:15:33Z</updated>
			<id>https://forum.guardant.ru/post/3878/#p3878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Specifed algorithm or protected item not support requested service]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/3874/#p3874" />
			<content type="html"><![CDATA[<p>Мы решили отказаться от этого алгоритма, в пользу Ecc160</p>]]></content>
			<author>
				<name><![CDATA[li.volker]]></name>
				<uri>https://forum.guardant.ru/user/1772/</uri>
			</author>
			<updated>2018-04-25T07:42:19Z</updated>
			<id>https://forum.guardant.ru/post/3874/#p3874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Specifed algorithm or protected item not support requested service]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/3865/#p3865" />
			<content type="html"><![CDATA[<p>Здравствуйте, пришлите, пожалуйста маску ключа в формате *.nsd на hotline@guardant.ru</p><p>Уточните версию используемого SDK. Пришлите полный отчет диагностики ключа.</p>]]></content>
			<author>
				<name><![CDATA[Тимофей Ершов]]></name>
				<uri>https://forum.guardant.ru/user/1116/</uri>
			</author>
			<updated>2018-04-17T09:57:56Z</updated>
			<id>https://forum.guardant.ru/post/3865/#p3865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Specifed algorithm or protected item not support requested service]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/3864/#p3864" />
			<content type="html"><![CDATA[<p>Добрый день.<br />Использую ключ code. В мастере по работе с ключом, создал ключ с нуля. Добавил алгоритм AES128. Затем из программы пробую вызвать и получаю ошибку &quot;Specifed algorithm or protected item not support requested service&quot;</p><p>с чем эта ошибка может быть связан, что я забыл сделать?</p><p>Пример кода:<br />&nbsp; szDataStr:=&#039;___ Test Data string for encrypt/decrypt. Length of 64 bytes____&#039;;<br />&nbsp; DataLen := Sizeof(Char)* Length(szDataStr);</p><p>&nbsp; &nbsp; // Implement data encoding by AES128 hardware algorithm<br />&nbsp; &nbsp; write(&#039;Encoding data by AES128 hardware algorithm: &#039;);<br />&nbsp; &nbsp; nRet:= GrdCryptEx(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hGrd_writer,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Handle to Guardant protected container<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 01,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Number of hardware algorithm AES128<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataLen,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Data length<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @szDataStr[1],&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Data to be crypted<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GrdAM_OFB or GrdAM_Encode,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // OFB = Output Feed Back<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lenVectorAES,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// size of init vector<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @szInitVectorAES[1],&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 128-bit init vector<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Use encryption key stored in the dongle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Context is not used<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nil );&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Reserved, must be nil<br />&nbsp; &nbsp; ErrorHandling(hGrd_writer, nRet);</p>]]></content>
			<author>
				<name><![CDATA[li.volker]]></name>
				<uri>https://forum.guardant.ru/user/1772/</uri>
			</author>
			<updated>2018-04-17T08:36:27Z</updated>
			<id>https://forum.guardant.ru/post/3864/#p3864</id>
		</entry>
</feed>
