<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Рутокен &mdash; Ошибка при создании файла. RuToken S]]></title>
	<link rel="self" href="https://forum.rutoken.ru/feed/atom/topic/2150/" />
	<updated>2014-10-24T07:35:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.rutoken.ru/topic/2150/</id>
		<entry>
			<title type="html"><![CDATA[Re: Ошибка при создании файла. RuToken S]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7697/#p7697" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>svbtest пишет:</cite><blockquote><p> Подскажите, в каком месте у меня может быть ошибка? Или просто приведите успешную команду CREATE FILE для EF файла на RuTokenS, а дальше я разберусь. Заранее спасибо</p></blockquote></div><p>Здравствуйте, svbtest.</p><p>Чтобы получить документацию по командам Рутокен S нужно зарегистрироваться как технологический партнер (<a href="https://www.rutoken.ru/partners/">https://www.rutoken.ru/partners/</a>) и заключить NDA с нашей компанией</p>]]></content>
			<author>
				<name><![CDATA[Ксения Шаврова]]></name>
				<uri>https://forum.rutoken.ru/user/8982/</uri>
			</author>
			<updated>2014-10-24T07:35:03Z</updated>
			<id>https://forum.rutoken.ru/post/7697/#p7697</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ошибка при создании файла. RuToken S]]></title>
			<link rel="alternate" href="https://forum.rutoken.ru/post/7695/#p7695" />
			<content type="html"><![CDATA[<p>Здравствуйте, использую библиотеку Winscard, пытаюсь создать EF файл на RuToken S. Сначала выбираю текущим MF файл:<br />BYTE selectMF[] = <br />{<br /> /*class*/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00, <br /> /*ins*/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0xA4, <br /> /*p1*/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00, <br /> /*p2*/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00, <br /> /*data len*/&nbsp; &nbsp; &nbsp; &nbsp; 0x02, <br /> /*MF low byte*/&nbsp; 0x00, <br /> /*MF high byte*/ 0x3f<br />};<br />SCardTransmit(cardHandle, SCARD_PCI_T0, selectMF, 7, NULL, response, &amp;responseSize);<br />Команда проходит успешно. Затем пытаюсь создать:<br />BYTE create[] = <br />{ 0x0, 0xE0, 0x0, 0x0, 0xE,&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; 0x62, 0xC,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/*tlv*/<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x80, 0x2, 0xA,&nbsp; &nbsp;0x0,&nbsp; &nbsp; &nbsp; /*size*/<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;0x82, 0x2, 0x1,&nbsp; &nbsp;0x0,&nbsp; &nbsp; &nbsp; /*descriptor - binary file*/<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;0x83, 0x2, 0xA0, 0x1F };&nbsp; /*file id*/<br />SCardTransmit(cardHandle, SCARD_PCI_T0, create, 19, NULL, response, &amp;responseSize);</p><p>В результате в выходном буфере имею первые два байта 6A80, что означает &quot;Parameters in the data portion are incorrect&quot;, хотя делаю вроде бы все по документации. Подскажите, в каком месте у меня может быть ошибка? Или просто приведите успешную команду CREATE FILE для EF файла на RuTokenS, а дальше я разберусь. Заранее спасибо</p>]]></content>
			<author>
				<name><![CDATA[svbtest]]></name>
				<uri>https://forum.rutoken.ru/user/9572/</uri>
			</author>
			<updated>2014-10-23T10:45:55Z</updated>
			<id>https://forum.rutoken.ru/post/7695/#p7695</id>
		</entry>
</feed>
