<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: JC101-10C: Adding a password and state management</title>
	<atom:link href="http://javacard.vetilles.com/2008/04/21/jc101-10c-adding-a-password-and-state-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://javacard.vetilles.com/2008/04/21/jc101-10c-adding-a-password-and-state-management/</link>
	<description>A weblog on Java Card, security, and other things personal</description>
	<lastBuildDate>Thu, 18 May 2017 07:26:32 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.32</generator>
	<item>
		<title>By: Wolfgang</title>
		<link>http://javacard.vetilles.com/2008/04/21/jc101-10c-adding-a-password-and-state-management/#comment-4931</link>
		<dc:creator><![CDATA[Wolfgang]]></dc:creator>
		<pubDate>Thu, 15 May 2014 14:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://javacard.vetilles.com/2008/04/21/jc101-10c-adding-a-password-and-state-management/#comment-4931</guid>
		<description><![CDATA[Hey, first of all: awesome tutorial!

I think I found a failure, in the processChangeReferenceData() method you check the value of P1 instead of P2 at the beginning of the method:

// Checks the value of P2 
if (buf[ISO7816.OFFSET_P1] != 0x80) 
ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2); 

it probably should be:

// Checks the value of P2 
if (buf[ISO7816.OFFSET_P2] != 0x80) 
ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2); 

thank you for your excellent tutorial and all the work you have put in this!]]></description>
		<content:encoded><![CDATA[<p>Hey, first of all: awesome tutorial!</p>
<p>I think I found a failure, in the processChangeReferenceData() method you check the value of P1 instead of P2 at the beginning of the method:</p>
<p>// Checks the value of P2<br />
if (buf[ISO7816.OFFSET_P1] != 0x80)<br />
ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2); </p>
<p>it probably should be:</p>
<p>// Checks the value of P2<br />
if (buf[ISO7816.OFFSET_P2] != 0x80)<br />
ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2); </p>
<p>thank you for your excellent tutorial and all the work you have put in this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
