|
<!-- saved from url=(0007)http:// -->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>GemCard.APDUPlayer.APDUFromXml</TITLE>
<LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css">
</HEAD>
<BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" >
<DIV CLASS="PageHeading">GemCard.APDUPlayer.APDUFromXml Function</DIV>
<DIV CLASS="Description">
Builds an APDUCommand object from an XmlNode representing the command.
This command uses the result of a previous command to fill some paramaters
<pre>
Le = "R,0:SW1?xx"
m_bReplay is set to true
m_bSW1Cond is set with the value xx
m_bCheckSW1 is set to true
When the command is called, if SW1 == xx, the command is played a
second time with Le = resp.SW2
</pre>
<pre>
Le = "R,xx:DRyy"
m_bReplay is set to true
m_bLeData is set to true
m_nDataId is set to yy
Le is set to xx for the first call of the command
Then the command is replayed with Le = Le + resp.Data[m_nDataId - 1]
</pre>
<pre>
Le = "SW2"
if SW1 == 0x9F on the previous call to a command, m_bLeSW2 is set to true
if m_bLeSW2 if true, Le is replaced with resp.SW2
</pre>
<pre>
Le = "Dxx"
if resp.Data id not null from the previous command,
xx is used as the index of the byte that gives Le in the response data
Le = Data[xx]
</pre>
<P>
</DIV>
<IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2">
<IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1">
<DIV CLASS="Remarks">
<SPAN CLASS="RemarkHdrX">Private GemCard.APDUCommand APDUFromXml (System.Xml.XmlNode)</SPAN></DIV>
<TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0>
<TR height=20>
<TD width=20> </TD>
<TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD>
<TD CLASS="TableLightLabel" >Type</TD>
<TD CLASS="TableLightLabel" >Name</TD>
<TD CLASS="TableLightLabel" >Description</TD>
<TD width=20> </TD>
</TR>
<TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc">System.Xml.XmlNode</TD>
<TD CLASS="TableLightDesc">xmlApdu</TD>
<TD CLASS="TableLightDesc">XML representation of the command</TD>
<TD width=20> </TD>
</TR></TABLE>
<TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0>
<TR height=20>
<TD width=20> </TD>
<TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD>
<TD CLASS="TableLightLabel" WIDTH=206>Return</TD>
<TD CLASS="TableLightLabel" >Description</TD>
<TD width=20> </TD>
</TR>
<TR height=20>
<TD width=20> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"><A HREF="CWP3.HTM">APDUCommand</A></TD>
<TD CLASS="TableLightDesc"> </TD>
<TD CLASS="TableLightDesc"> </TD>
<TD width=20> </TD>
</TR></TABLE>
</BODY>
</HTML>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Software Architect, COM, .NET and Smartcard based security specialist.
I've been working in the software industry since I graduated in Electrical and Electronics Engineering. I chose software because I preferred digital to analog.
I started to program with 6802 machine code and evolved to the current .NET technologies... that was a long way.
For more than 20 years I have always worked in technical positions as I simply like to get my hands dirty and crack my brain when things don't go right!
After 12 years in the smart card industry I can claim a strong knowledge in security solutions based on those really small computers!
I've been back into business to design the licensing system for the enterprise solution for Consistel using a .NET smart card (yes they can run .NET CLR!)
I'm currently designing a micro-payment solution using the NXP DESFire EV1 with the ACSO6 SAM of ACS. I can then add a full proficient expertise on those systems and NFC payments.
This technology being under strict NDA by NXP I cannot publish any related article about it, however I can provide professional consulting for it.
You can contact me for professional matter by using the forum or via my
LinkedIn profile.