<?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-4C: A basic password manager</title>
	<atom:link href="http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/feed/" rel="self" type="application/rss+xml" />
	<link>http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/</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: Eric VÃ©tillard</title>
		<link>http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/#comment-3125</link>
		<dc:creator><![CDATA[Eric VÃ©tillard]]></dc:creator>
		<pubDate>Mon, 07 Jan 2008 09:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/#comment-3125</guid>
		<description><![CDATA[I finally created the project, and I found more compilation errors. This time, it is a missing cast. Gee, I hate those ...

I have once again corrected the post.

Good resolution for 2008: Create projects and compile (run?) before posting.]]></description>
		<content:encoded><![CDATA[<p>I finally created the project, and I found more compilation errors. This time, it is a missing cast. Gee, I hate those &#8230;</p>
<p>I have once again corrected the post.</p>
<p>Good resolution for 2008: Create projects and compile (run?) before posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric VÃ©tillard</title>
		<link>http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/#comment-473</link>
		<dc:creator><![CDATA[Eric VÃ©tillard]]></dc:creator>
		<pubDate>Sun, 11 Feb 2007 20:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/#comment-473</guid>
		<description><![CDATA[First, sorry for the mishap. I have not created the Java project, so I let this very real compilation error go slip through.

Actually, the idea was rather to make the method return the length of the object. It is quite common in Java to return a value even when it is not strictly required, since return values can easily be ignored. I here chose to return the length, because it may be a useful data, but another commonly used possibility is to return the new offset (the sum of argument ofs and of the length of the thing copied in the buffer). This is very useful to build long sequences of things.

I have corrected the code in the post.]]></description>
		<content:encoded><![CDATA[<p>First, sorry for the mishap. I have not created the Java project, so I let this very real compilation error go slip through.</p>
<p>Actually, the idea was rather to make the method return the length of the object. It is quite common in Java to return a value even when it is not strictly required, since return values can easily be ignored. I here chose to return the length, because it may be a useful data, but another commonly used possibility is to return the new offset (the sum of argument ofs and of the length of the thing copied in the buffer). This is very useful to build long sequences of things.</p>
<p>I have corrected the code in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lexdabear</title>
		<link>http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/#comment-463</link>
		<dc:creator><![CDATA[lexdabear]]></dc:creator>
		<pubDate>Fri, 09 Feb 2007 14:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://javacard.vetilles.com/2007/02/06/jc101-4c-a-basic-password-manager/#comment-463</guid>
		<description><![CDATA[I do not know if I am missing here something or not:

You mention that the getter method is not declared public. The entry shows it is public. The next thing is that the getters have a return value (byte), but there is no return xx included. Since the content is copied to a byte array, there is no need for a return value. Should it not be:
[code]
 public void getId(byte[] buf, short ofs) {
    Util.arrayCopy(id, 0, buf, ofs, idLength) ;
  }
[/code] ?]]></description>
		<content:encoded><![CDATA[<p>I do not know if I am missing here something or not:</p>
<p>You mention that the getter method is not declared public. The entry shows it is public. The next thing is that the getters have a return value (byte), but there is no return xx included. Since the content is copied to a byte array, there is no need for a return value. Should it not be:<br />
[code]<br />
 public void getId(byte[] buf, short ofs) {<br />
    Util.arrayCopy(id, 0, buf, ofs, idLength) ;<br />
  }<br />
[/code] ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
