<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Guardant &mdash; Запись маски с использованием writemask API (Sign)]]></title>
	<link rel="self" href="https://forum.guardant.ru/feed/atom/topic/89" />
	<updated>2012-07-25T13:00:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.guardant.ru/topic/89/</id>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/988/#p988" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br /></p><div class="quotebox"><cite>vityusha пишет:</cite><blockquote><p>А каким образом записать пользовательские поля (не алгоритмы) в ключ?</p></blockquote></div><p>Поля свободного назначения не защищенные аппаратными запретами записываются при помощи функции GrdWrite, после того как были записаны все необходимые поля защищенные аппаратными запретами (аппаратные алгоритмы, защищенные ячейки и<br />таблица лицензий).</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2012-07-25T13:00:58Z</updated>
			<id>https://forum.guardant.ru/post/988/#p988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/987/#p987" />
			<content type="html"><![CDATA[<p>А каким образом записать пользовательские поля (не алгоритмы) в ключ?</p>]]></content>
			<author>
				<name><![CDATA[vityusha]]></name>
				<uri>https://forum.guardant.ru/user/422/</uri>
			</author>
			<updated>2012-07-24T13:37:11Z</updated>
			<id>https://forum.guardant.ru/post/987/#p987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/878/#p878" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kamerer пишет:</cite><blockquote><p>Возник вопрос на такую же тему.  Запись маски с использованием writemask API.<br />Сколько алгоритмов/ячеек можно добавить в маску с помощью writemask AddAlgorithm ?<br />У меня получается не более 2-х. Алгоритмы, добавленные 3-м, 4-м и далее по счету при последующем обращении к ним выдают &quot;Для данного алгоритма/ячейки не предусмотрен данный вид сервиса&quot;. Первые два работают.</p></blockquote></div><p>Ответ отправил Вам на почту.</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2012-05-02T12:30:51Z</updated>
			<id>https://forum.guardant.ru/post/878/#p878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/875/#p875" />
			<content type="html"><![CDATA[<p>Возник вопрос на такую же тему.&nbsp; Запись маски с использованием writemask API.<br />Сколько алгоритмов/ячеек можно добавить в маску с помощью writemask AddAlgorithm ?<br />У меня получается не более 2-х. Алгоритмы, добавленные 3-м, 4-м и далее по счету при последующем обращении к ним выдают &quot;Для данного алгоритма/ячейки не предусмотрен данный вид сервиса&quot;. Первые два работают.</p>]]></content>
			<author>
				<name><![CDATA[kamerer]]></name>
				<uri>https://forum.guardant.ru/user/381/</uri>
			</author>
			<updated>2012-04-30T06:42:50Z</updated>
			<id>https://forum.guardant.ru/post/875/#p875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/353/#p353" />
			<content type="html"><![CDATA[<p>В них передаются тип и модель ключа (соответственно), с которым работаем. Сами значения могут быть взяты из структуры TGrdFindInfo, содержащей информацию о найденном ключе после вызова GrdFind().<br /></p><div class="codebox"><pre><code>СWritemask(FindInfo.wType, FindInfo.dwModel,...)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Алексей Перепелов]]></name>
				<uri>https://forum.guardant.ru/user/6/</uri>
			</author>
			<updated>2011-08-05T12:59:44Z</updated>
			<id>https://forum.guardant.ru/post/353/#p353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/352/#p352" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Алексей Перепелов пишет:</cite><blockquote><p>Может при инициализации задали некорректный тип ключа?</p><p>См. первые два параметра конструктора CWritemask или параметры WriteMaskInit() (в зависимости от версии использованной writemask).</p></blockquote></div><p>А можно по подробнее описать эти параметры и их значения?</p>]]></content>
			<author>
				<name><![CDATA[Анатолий]]></name>
				<uri>https://forum.guardant.ru/user/65/</uri>
			</author>
			<updated>2011-08-05T12:53:52Z</updated>
			<id>https://forum.guardant.ru/post/352/#p352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/351/#p351" />
			<content type="html"><![CDATA[<p>Может при инициализации задали некорректный тип ключа?</p><p>См. первые два параметра конструктора CWritemask или параметры WriteMaskInit() (в зависимости от версии использованной writemask).</p>]]></content>
			<author>
				<name><![CDATA[Алексей Перепелов]]></name>
				<uri>https://forum.guardant.ru/user/6/</uri>
			</author>
			<updated>2011-08-05T12:51:09Z</updated>
			<id>https://forum.guardant.ru/post/351/#p351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/350/#p350" />
			<content type="html"><![CDATA[<p>Пишу на Delphi. И, наверно, что-то не так сделал так как при добавлении ячеек, алгоритмов переменная обозначающая рост размера&nbsp; &nbsp;AST { pointer to variables, contains AST size } не увеличивается, а также заглавие маски { pointer to a buffer to return generated mask header } остается пустым. </p><p>&nbsp; &nbsp; &nbsp; &nbsp; AddAlgorithm(<br />&nbsp; &nbsp; &nbsp; &nbsp; @abyMask[1],&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;{ pointer to a buffer to return generated mask }<br />&nbsp; &nbsp; &nbsp; &nbsp; @abyMaskHeader[1],&nbsp; { pointer to a buffer to return generated mask header }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $0000,<br />&nbsp; &nbsp; &nbsp; &nbsp; nsafl_ST_III + nsafl_ActivationSrv + nsafl_UpdateSrv + nsafl_InactiveFlag,<br />&nbsp; &nbsp; &nbsp; &nbsp; nsafh_ReadSrv + nsafh_ReadPwd,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs_algo_PI,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 108,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0,<br />&nbsp; &nbsp; &nbsp; &nbsp; dwActivatePsw,&nbsp; &nbsp; { activation service password }<br />&nbsp; &nbsp; &nbsp; &nbsp; 0,&nbsp; &nbsp; { deactivation service password }<br />&nbsp; &nbsp; &nbsp; &nbsp; dwReadPsw,&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; { read service password }<br />&nbsp; &nbsp; &nbsp; &nbsp; dwUpdatePsw,&nbsp; &nbsp;&nbsp; &nbsp; { update service password }<br />&nbsp; &nbsp; &nbsp; &nbsp; NIL,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NIL,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NIL,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NIL,<br />&nbsp; &nbsp; &nbsp; &nbsp; $FFFF,&nbsp; &nbsp; { GP counter of algorithm/PI }<br />&nbsp; &nbsp; &nbsp; &nbsp; $FFFF,&nbsp; &nbsp; { error counter of algorithm/PI }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @buf_PI_det[1],<br />&nbsp; &nbsp; &nbsp; &nbsp; @wMaskSize,&nbsp; &nbsp;&nbsp; &nbsp;{ pointer to variables, contains mask size }<br />&nbsp; &nbsp; &nbsp; &nbsp; @wAST_Size,&nbsp; &nbsp;&nbsp; &nbsp;{ pointer to variables, contains AST size }<br />&nbsp; &nbsp; &nbsp; &nbsp; @wNumberOfItems); { pointer to variables, contains number of items in mask }</p><p>Подскажите в чем может быть проблема?</p>]]></content>
			<author>
				<name><![CDATA[Анатолий]]></name>
				<uri>https://forum.guardant.ru/user/65/</uri>
			</author>
			<updated>2011-08-05T12:38:27Z</updated>
			<id>https://forum.guardant.ru/post/350/#p350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/349/#p349" />
			<content type="html"><![CDATA[<p>В качестве определителя (determinant) алгоритма ECC160 выступает закрытый ключ (private key). В дескриптор нужно записывать именно его. Открытый ключ (public key) помещается в защищенное приложение.</p><p>GrdUtil при этом для удобства хранит и отображает ключевую пару полностью.</p><p>Кстати, в <a href="https://forum.guardant.ru/post/291/#p291">этом</a> примере (sample.cpp) есть образец записи ECC160.</p>]]></content>
			<author>
				<name><![CDATA[Алексей Перепелов]]></name>
				<uri>https://forum.guardant.ru/user/6/</uri>
			</author>
			<updated>2011-08-05T09:25:20Z</updated>
			<id>https://forum.guardant.ru/post/349/#p349</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/348/#p348" />
			<content type="html"><![CDATA[<p>Спасибо. С этим вопросом понятно.<br />А как записать алгоритм ECC160? В утилите GrdUtil показывает не детерминатор а пару ключей. Как записать эту пару ключей?</p>]]></content>
			<author>
				<name><![CDATA[Анатолий]]></name>
				<uri>https://forum.guardant.ru/user/65/</uri>
			</author>
			<updated>2011-08-05T08:48:54Z</updated>
			<id>https://forum.guardant.ru/post/348/#p348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/346/#p346" />
			<content type="html"><![CDATA[<p>Да, собственно, также, как и дескриптор аппаратного алгоритма (дескриптор защищенной ячейки в этом смысле от дескриптора алгоритма ничем не отличается).</p><p>Т.о. необходимо в начало маски (первым вызовом по порядку) добавить AddAlgorithm() с типом создаваемой ячейки rs_algo_PI.</p>]]></content>
			<author>
				<name><![CDATA[Алексей Перепелов]]></name>
				<uri>https://forum.guardant.ru/user/6/</uri>
			</author>
			<updated>2011-08-04T12:29:29Z</updated>
			<id>https://forum.guardant.ru/post/346/#p346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Запись маски с использованием writemask API (Sign)]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/345/#p345" />
			<content type="html"><![CDATA[<p>Как записать алгоритм в маску более-менее понятно с приведенных примеров.<br />А как записать вначале защищенную ячейку в маску (writemask), используя Guardant API?</p>]]></content>
			<author>
				<name><![CDATA[Анатолий]]></name>
				<uri>https://forum.guardant.ru/user/65/</uri>
			</author>
			<updated>2011-08-04T12:18:09Z</updated>
			<id>https://forum.guardant.ru/post/345/#p345</id>
		</entry>
</feed>
