1799 lines
110 KiB
HTML
1799 lines
110 KiB
HTML
<!DOCTYPE html>
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title>SmartcardFilesystem Module — vsmartcard 2016-10-12 documentation</title>
|
|
|
|
<link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
|
|
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
|
<link rel="stylesheet" href="../../_static/bootswatch-3.3.4/flatly/bootstrap.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="../../_static/bootstrap-sphinx.css" type="text/css" />
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT: '../../',
|
|
VERSION: '2016-10-12',
|
|
COLLAPSE_INDEX: false,
|
|
FILE_SUFFIX: '.html',
|
|
HAS_SOURCE: true
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
|
<script type="text/javascript" src="../../_static/underscore.js"></script>
|
|
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
|
<script type="text/javascript" src="../../_static/js/jquery-1.11.0.min.js"></script>
|
|
<script type="text/javascript" src="../../_static/js/jquery-fix.js"></script>
|
|
<script type="text/javascript" src="../../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="../../_static/bootstrap-sphinx.js"></script>
|
|
<link rel="shortcut icon" href="../../_static/chip.ico"/>
|
|
<link rel="top" title="vsmartcard 2016-10-12 documentation" href="../../index.html" />
|
|
<link rel="up" title="virtualsmartcard Package" href="virtualsmartcard.html" />
|
|
<link rel="next" title="SmartcardSAM Module" href="virtualsmartcard.SmartcardSAM.html" />
|
|
<link rel="prev" title="SWutils Module" href="virtualsmartcard.SWutils.html" />
|
|
<meta charset='utf-8'>
|
|
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
</head>
|
|
<body role="document">
|
|
|
|
<a href="https://github.com/frankmorgner/vsmartcard"
|
|
class="visible-desktop hidden-xs"><img
|
|
id="gh-banner"
|
|
style="position: absolute; top: 50px; right: 0; border: 0;"
|
|
src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png"
|
|
alt="Fork me on GitHub"></a>
|
|
<script>
|
|
// Adjust banner height.
|
|
$(function () {
|
|
var navHeight = $(".navbar .container").css("height");
|
|
$("#gh-banner").css("top", navHeight);
|
|
});
|
|
</script>
|
|
|
|
|
|
<div id="navbar" class="navbar navbar-default ">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="../../index.html">
|
|
vsmartcard</a>
|
|
<span class="navbar-text navbar-version pull-left"><b></b></span>
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse nav-collapse">
|
|
<ul class="nav navbar-nav">
|
|
|
|
|
|
<li class="dropdown globaltoc-container">
|
|
<a role="button"
|
|
id="dLabelGlobalToc"
|
|
data-toggle="dropdown"
|
|
data-target="#"
|
|
href="../../index.html">Site <b class="caret"></b></a>
|
|
<ul class="dropdown-menu globaltoc"
|
|
role="menu"
|
|
aria-labelledby="dLabelGlobalToc"><ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../README.html">Virtual Smart Card</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../../remote-reader/README.html">Remote Smart Card Reader</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../../ACardEmulator/README.html">Android Smart Card Emulator</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../../pcsc-relay/README.html">PC/SC Relay</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../../ccid/README.html">USB CCID Emulator</a></li>
|
|
</ul>
|
|
<ul class="current">
|
|
<li class="toctree-l1 current"><a class="reference internal" href="../api.html">Creating a Virtual Smart Card</a></li>
|
|
</ul>
|
|
</ul>
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
<a role="button"
|
|
id="dLabelLocalToc"
|
|
data-toggle="dropdown"
|
|
data-target="#"
|
|
href="#">Page <b class="caret"></b></a>
|
|
<ul class="dropdown-menu localtoc"
|
|
role="menu"
|
|
aria-labelledby="dLabelLocalToc"><ul>
|
|
<li><a class="reference internal" href="#">SmartcardFilesystem Module</a></li>
|
|
</ul>
|
|
</ul>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
<a href="virtualsmartcard.SWutils.html" title="Previous Chapter: SWutils Module"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« SWutils Module</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="virtualsmartcard.SmartcardSAM.html" title="Next Chapter: SmartcardSAM Module"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">SmartcardSAM Mod... »</span>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li class="hidden-sm"></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<form class="navbar-form navbar-right" action="../../search.html" method="get">
|
|
<div class="form-group">
|
|
<input type="text" name="q" class="form-control" placeholder="Search" />
|
|
</div>
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-12 content">
|
|
|
|
<div class="section" id="smartcardfilesystem-module">
|
|
<h1>SmartcardFilesystem Module<a class="headerlink" href="#smartcardfilesystem-module" title="Permalink to this headline">¶</a></h1>
|
|
<p class="graphviz">
|
|
<img src="../../_images/inheritance-6200e2d9c7f43138ee8cae247df739aec4d9e742.png" alt="Inheritance diagram of virtualsmartcard.SmartcardFilesystem" usemap="#inheritance498eda02c2" class="inheritance"/>
|
|
<map id="inheritance498eda02c2" name="inheritance498eda02c2">
|
|
<area shape="rect" id="node1" href="#virtualsmartcard.SmartcardFilesystem.DF" title="Class for a dedicated file" alt="" coords="250,20,446,37"/>
|
|
<area shape="rect" id="node4" href="#virtualsmartcard.SmartcardFilesystem.MF" title="Class for a master file" alt="" coords="523,20,719,37"/>
|
|
<area shape="rect" id="node2" href="#virtualsmartcard.SmartcardFilesystem.File" title="Template class for a smartcard file." alt="" coords="12,37,209,54"/>
|
|
<area shape="rect" id="node3" href="#virtualsmartcard.SmartcardFilesystem.EF" title="Template class for an elementary file." alt="" coords="250,53,445,71"/>
|
|
<area shape="rect" id="node6" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF" title="Class for an elementary file with record structure." alt="" coords="489,53,754,71"/>
|
|
<area shape="rect" id="node7" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF" title="Class for an elementary file with transparent structure." alt="" coords="478,87,764,104"/>
|
|
<area shape="rect" id="node5" href="#virtualsmartcard.SmartcardFilesystem.Record" title="virtualsmartcard.SmartcardFilesystem.Record" alt="" coords="4,4,217,21"/>
|
|
</map>
|
|
</p>
|
|
<span class="target" id="module-virtualsmartcard.SmartcardFilesystem"></span><dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">DF</code><span class="sig-paren">(</span><em>parent</em>, <em>fid</em>, <em>filedescriptor=56</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>dfname=None</em>, <em>data=''</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.File" title="virtualsmartcard.SmartcardFilesystem.File"><code class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.File</span></code></a></p>
|
|
<p>Class for a dedicated file</p>
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.append">
|
|
<code class="descname">append</code><span class="sig-paren">(</span><em>file</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.append" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Appends ‘file’ to the content of the DF.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.appendrecord">
|
|
<code class="descname">appendrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.appendrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.bertlv_data">
|
|
<code class="descname">bertlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.bertlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.content">
|
|
<code class="descname">content</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.content" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of files of the DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.data">
|
|
<code class="descname">data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>unknown</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.decrypt">
|
|
<code class="descname">decrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.decrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.dfname">
|
|
<code class="descname">dfname</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.dfname" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>string with up to 16 bytes. DF name,which can also be used as applicationidentifier.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.encrypt">
|
|
<code class="descname">encrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.encrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.erasebinary">
|
|
<code class="descname">erasebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.erasebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.fid">
|
|
<code class="descname">fid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.fid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file identifier</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.filedescriptor">
|
|
<code class="descname">filedescriptor</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.filedescriptor" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file descriptor byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.getdata">
|
|
<code class="descname">getdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>requestedTL</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.getdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of either the file’s BER-TLV or the file’s SIMPLE-TLV
|
|
coded data objects depending on the bool ‘isSimpleTlv’. ‘requestedTL’
|
|
is a list of (tag, length)-tuples that specify which tags should be
|
|
returned in what size.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.getpath">
|
|
<code class="descname">getpath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.getpath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to this file beginning with the MF’s fid.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.lifecycle">
|
|
<code class="descname">lifecycle</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.lifecycle" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>life cycle byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.parent">
|
|
<code class="descname">parent</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.parent" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>parent DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.putdata">
|
|
<code class="descname">putdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>newtlvlist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.putdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets either the file’s BER-TLV or the file’s SIMPLE-TLV coded data
|
|
objects depending on the bool ‘isSimpleTlv’. ‘newtlvlist’ is a list of
|
|
(tag, length, value)-tuples of new data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.readbinary">
|
|
<code class="descname">readbinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.readbinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.readrecord">
|
|
<code class="descname">readrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.readrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.remove">
|
|
<code class="descname">remove</code><span class="sig-paren">(</span><em>file</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.remove" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Removes ‘file’ from the content of the DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.select">
|
|
<code class="descname">select</code><span class="sig-paren">(</span><em>attribute</em>, <em>value</em>, <em>reference=0</em>, <em>index_current=0</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.select" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the first file of the DF, that has the ‘attribute’ with the
|
|
specified ‘value’. For partial DF name selection you must specify the
|
|
first/last/next or previous occurence with ‘reference’ and the index of
|
|
the current file ‘index_current’ (-1 for None).</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.simpletlv_data">
|
|
<code class="descname">simpletlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.updatebinary">
|
|
<code class="descname">updatebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.updatebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.updaterecord">
|
|
<code class="descname">updaterecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.updaterecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.writebinary">
|
|
<code class="descname">writebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.writebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.DF.writerecord">
|
|
<code class="descname">writerecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.writerecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">EF</code><span class="sig-paren">(</span><em>parent</em>, <em>fid</em>, <em>filedescriptor</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>datacoding=0</em>, <em>shortfid=0</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.File" title="virtualsmartcard.SmartcardFilesystem.File"><code class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.File</span></code></a></p>
|
|
<p>Template class for an elementary file.</p>
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.appendrecord">
|
|
<code class="descname">appendrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.appendrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.bertlv_data">
|
|
<code class="descname">bertlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.bertlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.datacoding">
|
|
<code class="descname">datacoding</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.datacoding" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer. Data coding byte.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.decrypt">
|
|
<code class="descname">decrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.decrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.encrypt">
|
|
<code class="descname">encrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.encrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.erasebinary">
|
|
<code class="descname">erasebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.erasebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.fid">
|
|
<code class="descname">fid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.fid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file identifier</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.filedescriptor">
|
|
<code class="descname">filedescriptor</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.filedescriptor" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file descriptor byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.getdata">
|
|
<code class="descname">getdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>requestedTL</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.getdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of either the file’s BER-TLV or the file’s SIMPLE-TLV
|
|
coded data objects depending on the bool ‘isSimpleTlv’. ‘requestedTL’
|
|
is a list of (tag, length)-tuples that specify which tags should be
|
|
returned in what size.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.getpath">
|
|
<code class="descname">getpath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.getpath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to this file beginning with the MF’s fid.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.lifecycle">
|
|
<code class="descname">lifecycle</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.lifecycle" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>life cycle byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.parent">
|
|
<code class="descname">parent</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.parent" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>parent DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.putdata">
|
|
<code class="descname">putdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>newtlvlist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.putdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets either the file’s BER-TLV or the file’s SIMPLE-TLV coded data
|
|
objects depending on the bool ‘isSimpleTlv’. ‘newtlvlist’ is a list of
|
|
(tag, length, value)-tuples of new data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.readbinary">
|
|
<code class="descname">readbinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.readbinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.readrecord">
|
|
<code class="descname">readrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.readrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.select">
|
|
<code class="descname">select</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.select" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.shortfid">
|
|
<code class="descname">shortfid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.shortfid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer with 1<=shortfid<=30.Short EF identifier.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.simpletlv_data">
|
|
<code class="descname">simpletlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.updatebinary">
|
|
<code class="descname">updatebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.updatebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.updaterecord">
|
|
<code class="descname">updaterecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.updaterecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.writebinary">
|
|
<code class="descname">writebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.writebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.EF.writerecord">
|
|
<code class="descname">writerecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.writerecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">File</code><span class="sig-paren">(</span><em>parent</em>, <em>fid</em>, <em>filedescriptor</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>SAM=None</em>, <em>extra_fci_data=''</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
|
|
<p>Template class for a smartcard file.</p>
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.appendrecord">
|
|
<code class="descname">appendrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.appendrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.bertlv_data">
|
|
<code class="descname">bertlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.bertlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.decrypt">
|
|
<code class="descname">decrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.decrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.encrypt">
|
|
<code class="descname">encrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.encrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.erasebinary">
|
|
<code class="descname">erasebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.erasebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.fid">
|
|
<code class="descname">fid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.fid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file identifier</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.filedescriptor">
|
|
<code class="descname">filedescriptor</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.filedescriptor" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file descriptor byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.getdata">
|
|
<code class="descname">getdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>requestedTL</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.getdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of either the file’s BER-TLV or the file’s SIMPLE-TLV
|
|
coded data objects depending on the bool ‘isSimpleTlv’. ‘requestedTL’
|
|
is a list of (tag, length)-tuples that specify which tags should be
|
|
returned in what size.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.getpath">
|
|
<code class="descname">getpath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.getpath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to this file beginning with the MF’s fid.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.lifecycle">
|
|
<code class="descname">lifecycle</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.lifecycle" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>life cycle byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.parent">
|
|
<code class="descname">parent</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.parent" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>parent DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.putdata">
|
|
<code class="descname">putdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>newtlvlist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.putdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets either the file’s BER-TLV or the file’s SIMPLE-TLV coded data
|
|
objects depending on the bool ‘isSimpleTlv’. ‘newtlvlist’ is a list of
|
|
(tag, length, value)-tuples of new data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.readbinary">
|
|
<code class="descname">readbinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.readbinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.readrecord">
|
|
<code class="descname">readrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.readrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.select">
|
|
<code class="descname">select</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.select" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.simpletlv_data">
|
|
<code class="descname">simpletlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.simpletlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.updatebinary">
|
|
<code class="descname">updatebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.updatebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.updaterecord">
|
|
<code class="descname">updaterecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.updaterecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.writebinary">
|
|
<code class="descname">writebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.writebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.File.writerecord">
|
|
<code class="descname">writerecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.writerecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">MF</code><span class="sig-paren">(</span><em>filedescriptor=56</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>dfname=None</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.DF" title="virtualsmartcard.SmartcardFilesystem.DF"><code class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.DF</span></code></a></p>
|
|
<p>Class for a master file</p>
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF._selectFile">
|
|
<code class="descname">_selectFile</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF._selectFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the file specified by ‘p1’ and ‘data’ from the select
|
|
file command APDU.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.append">
|
|
<code class="descname">append</code><span class="sig-paren">(</span><em>file</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.append" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Appends ‘file’ to the content of the DF.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.appendRecord">
|
|
<code class="descname">appendRecord</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.appendRecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xe2. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.appendrecord">
|
|
<code class="descname">appendrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.appendrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.bertlv_data">
|
|
<code class="descname">bertlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.bertlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.content">
|
|
<code class="descname">content</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.content" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of files of the DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="staticmethod">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.create">
|
|
<em class="property">static </em><code class="descname">create</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.create" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Creates and returns a list of files according to the parameters of a
|
|
create file command.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.createFile">
|
|
<code class="descname">createFile</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.createFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xe0. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.current">
|
|
<code class="descname">current</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.current" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>the currently selected file</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.currentDF">
|
|
<code class="descname">currentDF</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.currentDF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the current DF.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.currentEF">
|
|
<code class="descname">currentEF</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.currentEF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the current EF or None if not available.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.data">
|
|
<code class="descname">data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>unknown</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodeEncapsulated">
|
|
<code class="descname">dataObjectHandlingDecodeEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodeEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Decodes ‘p1’, ‘p2’ and ‘data’ from a data object handling command (i.
|
|
e. get/put data) with <em>odd</em> instruction code.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified file, True if the following list regards
|
|
SIMPLE-TLV data objects False otherwise and a list of
|
|
(tag, length, value)-tuples.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodePlain">
|
|
<code class="descname">dataObjectHandlingDecodePlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodePlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Decodes ‘p1’, ‘p2’ and ‘data’ from a data object handling command (i.
|
|
e. get/put data) with <em>even</em> instruction code.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified file, True if the following list regards
|
|
SIMPLE-TLV data objects False otherwise and a list of
|
|
(tag, length, value)-tuples.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodeEncapsulated">
|
|
<code class="descname">dataUnitsDecodeEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodeEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Decodes ‘p1’, ‘p2’ and ‘data’ from a data unit command (i. e.
|
|
read/write/update/search/erase binary) with <em>odd</em> instruction code.</p>
|
|
<dl class="docutils">
|
|
<dt>:returns the specified TransparentStructureEF, a list of offsets and a</dt>
|
|
<dd>list of data strings.</dd>
|
|
</dl>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodePlain">
|
|
<code class="descname">dataUnitsDecodePlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodePlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Decodes ‘p1’, ‘p2’ and ‘data’ from a data unit command (i. e.
|
|
read/write/update/search/erase binary) with <em>even</em> instruction code.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified TransparentStructureEF, a list of offsets and a
|
|
list of data strings.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.decrypt">
|
|
<code class="descname">decrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.decrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.deleteFile">
|
|
<code class="descname">deleteFile</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.deleteFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xe4. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dfname">
|
|
<code class="descname">dfname</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dfname" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>string with up to 16 bytes. DF name,which can also be used as applicationidentifier.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="staticmethod">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.encodeFileControlParameter">
|
|
<em class="property">static </em><code class="descname">encodeFileControlParameter</code><span class="sig-paren">(</span><em>file</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.encodeFileControlParameter" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of TLV-coded file control information of ‘file’. Note:
|
|
The result is not prepended with tag and length for neither TCP, FMD
|
|
nor FCI template.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.encrypt">
|
|
<code class="descname">encrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.encrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryEncapsulated">
|
|
<code class="descname">eraseBinaryEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0x0f. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryPlain">
|
|
<code class="descname">eraseBinaryPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0x0e. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.eraseRecord">
|
|
<code class="descname">eraseRecord</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.eraseRecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0x0c. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.erasebinary">
|
|
<code class="descname">erasebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.erasebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.fid">
|
|
<code class="descname">fid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.fid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file identifier</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.filedescriptor">
|
|
<code class="descname">filedescriptor</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.filedescriptor" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file descriptor byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.firstSFT">
|
|
<code class="descname">firstSFT</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.firstSFT" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>string of length 1. The firstsoftware function table from thehistorical bytes.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getDataEncapsulated">
|
|
<code class="descname">getDataEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getDataEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xcb. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getDataPlain">
|
|
<code class="descname">getDataPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getDataPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xca. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getdata">
|
|
<code class="descname">getdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>requestedTL</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of either the file’s BER-TLV or the file’s SIMPLE-TLV
|
|
coded data objects depending on the bool ‘isSimpleTlv’. ‘requestedTL’
|
|
is a list of (tag, length)-tuples that specify which tags should be
|
|
returned in what size.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getpath">
|
|
<code class="descname">getpath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getpath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to this file beginning with the MF’s fid.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.lifecycle">
|
|
<code class="descname">lifecycle</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.lifecycle" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>life cycle byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="staticmethod">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.makeFirstSoftwareFunctionTable">
|
|
<em class="property">static </em><code class="descname">makeFirstSoftwareFunctionTable</code><span class="sig-paren">(</span><em>DFSelectionByFullDFName=True</em>, <em>DFSelectionByPartialDFName=True</em>, <em>DFSelectionByPath=True</em>, <em>DFSelectionByFID=True</em>, <em>DFSelectionByApplication_implicite=True</em>, <em>ShortFIDSupported=True</em>, <em>RecordNumberSupported=True</em>, <em>RecordIdentifierSupported=True</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.makeFirstSoftwareFunctionTable" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a byte according to the first software function table from the
|
|
historical bytes of the card capabilities.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="staticmethod">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.makeSecondSoftwareFunctionTable">
|
|
<em class="property">static </em><code class="descname">makeSecondSoftwareFunctionTable</code><span class="sig-paren">(</span><em>DCB=1</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.makeSecondSoftwareFunctionTable" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>The second software function table from the historical bytes contains
|
|
the data coding byte.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.parent">
|
|
<code class="descname">parent</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.parent" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>parent DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.putDataEncapsulated">
|
|
<code class="descname">putDataEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.putDataEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xdb. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.putDataPlain">
|
|
<code class="descname">putDataPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.putDataPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xda. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.putdata">
|
|
<code class="descname">putdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>newtlvlist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.putdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets either the file’s BER-TLV or the file’s SIMPLE-TLV coded data
|
|
objects depending on the bool ‘isSimpleTlv’. ‘newtlvlist’ is a list of
|
|
(tag, length, value)-tuples of new data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readBinaryEncapsulated">
|
|
<code class="descname">readBinaryEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xb1. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readBinaryPlain">
|
|
<code class="descname">readBinaryPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readBinaryPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xb0. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readRecordEncapsulated">
|
|
<code class="descname">readRecordEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readRecordEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xb3. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readRecordPlain">
|
|
<code class="descname">readRecordPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readRecordPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xb2. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readbinary">
|
|
<code class="descname">readbinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readbinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readrecord">
|
|
<code class="descname">readrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.recordHandlingDecode">
|
|
<code class="descname">recordHandlingDecode</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.recordHandlingDecode" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Decodes ‘p1’ and ‘p2’ from a record handling command (i. e.
|
|
read/write/update/append/search/erase record).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified RecordStructureEF, the number or identifier of
|
|
the record and a reference, that specifies which record to select
|
|
(i. e. the last 3 bits of ‘p1’).</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.remove">
|
|
<code class="descname">remove</code><span class="sig-paren">(</span><em>file</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.remove" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Removes ‘file’ from the content of the DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.searchBinaryEncapsulated">
|
|
<code class="descname">searchBinaryEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.searchBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.searchBinaryPlain">
|
|
<code class="descname">searchBinaryPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.searchBinaryPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.secondSFT">
|
|
<code class="descname">secondSFT</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.secondSFT" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>string of length 1. The secondsoftware function table from thehistorical bytes.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.select">
|
|
<code class="descname">select</code><span class="sig-paren">(</span><em>attribute</em>, <em>value</em>, <em>reference=0</em>, <em>index_current=0</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.select" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the first file of the DF, that has the ‘attribute’ with the
|
|
specified ‘value’. For partial DF name selection you must specify the
|
|
first/last/next or previous occurence with ‘reference’ and the index of
|
|
the current file ‘index_current’ (-1 for None).</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.selectFile">
|
|
<code class="descname">selectFile</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.selectFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xa4. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.simpletlv_data">
|
|
<code class="descname">simpletlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateBinaryEncapsulated">
|
|
<code class="descname">updateBinaryEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xd7. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateBinaryPlain">
|
|
<code class="descname">updateBinaryPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateBinaryPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xd6. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateRecordEncapsulated">
|
|
<code class="descname">updateRecordEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateRecordEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xdd. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateRecordPlain">
|
|
<code class="descname">updateRecordPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateRecordPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xdc. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updatebinary">
|
|
<code class="descname">updatebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updatebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updaterecord">
|
|
<code class="descname">updaterecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updaterecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writeBinaryEncapsulated">
|
|
<code class="descname">writeBinaryEncapsulated</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writeBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xd1. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string. Returns the status bytes as two
|
|
byte long integer and the response data as binary string.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writeBinaryPlain">
|
|
<code class="descname">writeBinaryPlain</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writeBinaryPlain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xd0. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writeRecord">
|
|
<code class="descname">writeRecord</code><span class="sig-paren">(</span><em>p1</em>, <em>p2</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writeRecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function for instruction 0xd2. Takes the parameter bytes ‘p1’, ‘p2’ as
|
|
integers and ‘data’ as binary string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
|
|
data as binary string.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writebinary">
|
|
<code class="descname">writebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writerecord">
|
|
<code class="descname">writerecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writerecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.Record">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">Record</code><span class="sig-paren">(</span><em>identifier=None</em>, <em>data=''</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.Record" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.Record.data">
|
|
<code class="descname">data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.Record.data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>string. The record’s data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.Record.identifier">
|
|
<code class="descname">identifier</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.Record.identifier" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Class for a Record of an elementary of record structure</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">RecordStructureEF</code><span class="sig-paren">(</span><em>parent</em>, <em>fid</em>, <em>filedescriptor</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>datacoding=0</em>, <em>shortfid=0</em>, <em>maxrecordsize=65535</em>, <em>records=[]</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.EF" title="virtualsmartcard.SmartcardFilesystem.EF"><code class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.EF</span></code></a></p>
|
|
<p>Class for an elementary file with record structure.</p>
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecords">
|
|
<code class="descname">_RecordStructureEF__getRecords</code><span class="sig-paren">(</span><em>num_id</em>, <em>reference</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecords" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a list of records.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>num_id</strong> – The requested record’s number or identifier</li>
|
|
<li><strong>reference</strong> – Specifies which record to select (usually the last 3
|
|
bits of ‘p1’ of a record handling command)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByIdentifier">
|
|
<code class="descname">_RecordStructureEF__getRecordsByIdentifier</code><span class="sig-paren">(</span><em>id</em>, <em>reference</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByIdentifier" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a list of records and sets the recordpointer to the first
|
|
record, that matched. Is to be involved by __getRecords.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>id</strong> – The requested record’s identifier</li>
|
|
<li><strong>reference</strong> – Specifies which record to select (usually the last 3
|
|
bits of ‘p1’ of a record handling command)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByNumber">
|
|
<code class="descname">_RecordStructureEF__getRecordsByNumber</code><span class="sig-paren">(</span><em>number</em>, <em>reference</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByNumber" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a list of records. Is to be involved by __getRecords.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>number</strong> – The requested record’s number</li>
|
|
<li><strong>reference</strong> – Specifies which record to select (usually the last 3
|
|
bits of ‘p1’ of a record handling command)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.appendrecord">
|
|
<code class="descname">appendrecord</code><span class="sig-paren">(</span><em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.appendrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Appends a new record to the file, initializing it with the given data
|
|
string. Sets the recordpointer to the newly created record.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.bertlv_data">
|
|
<code class="descname">bertlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.bertlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.datacoding">
|
|
<code class="descname">datacoding</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.datacoding" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer. Data coding byte.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.decrypt">
|
|
<code class="descname">decrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.decrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.encrypt">
|
|
<code class="descname">encrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.encrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.erasebinary">
|
|
<code class="descname">erasebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.erasebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.eraserecord">
|
|
<code class="descname">eraserecord</code><span class="sig-paren">(</span><em>num_id</em>, <em>reference</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.eraserecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Removes a record from the file. ‘num_id’ and ‘reference’ specify the
|
|
record (see __getRecords).</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.fid">
|
|
<code class="descname">fid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.fid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file identifier</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.filedescriptor">
|
|
<code class="descname">filedescriptor</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.filedescriptor" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file descriptor byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getdata">
|
|
<code class="descname">getdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>requestedTL</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of either the file’s BER-TLV or the file’s SIMPLE-TLV
|
|
coded data objects depending on the bool ‘isSimpleTlv’. ‘requestedTL’
|
|
is a list of (tag, length)-tuples that specify which tags should be
|
|
returned in what size.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getpath">
|
|
<code class="descname">getpath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getpath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to this file beginning with the MF’s fid.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasFixedRecordSize">
|
|
<code class="descname">hasFixedRecordSize</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasFixedRecordSize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns True if the records are of fixed size, False otherwise.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasSimpleTlv">
|
|
<code class="descname">hasSimpleTlv</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasSimpleTlv" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns True if the EF is of TLV structure, False otherwise.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.isCyclic">
|
|
<code class="descname">isCyclic</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.isCyclic" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns True if the EF is of cyclic structure, False otherwise.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.lifecycle">
|
|
<code class="descname">lifecycle</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.lifecycle" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>life cycle byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.maxrecordsize">
|
|
<code class="descname">maxrecordsize</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.maxrecordsize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer. maximum length of a record’s data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.parent">
|
|
<code class="descname">parent</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.parent" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>parent DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.putdata">
|
|
<code class="descname">putdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>newtlvlist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.putdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets either the file’s BER-TLV or the file’s SIMPLE-TLV coded data
|
|
objects depending on the bool ‘isSimpleTlv’. ‘newtlvlist’ is a list of
|
|
(tag, length, value)-tuples of new data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readbinary">
|
|
<code class="descname">readbinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readbinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readrecord">
|
|
<code class="descname">readrecord</code><span class="sig-paren">(</span><em>offset</em>, <em>num_id</em>, <em>reference</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a data string from the given ‘offset’. ‘num_id’ and ‘reference’
|
|
specify the record (see __getRecords).</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.recordpointer">
|
|
<code class="descname">recordpointer</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.recordpointer" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer. Points to the current record (i. e. index of records).</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.records">
|
|
<code class="descname">records</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.records" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of records (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.resetRecordPointer">
|
|
<code class="descname">resetRecordPointer</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.resetRecordPointer" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Resets the record pointer.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.select">
|
|
<code class="descname">select</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.select" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.shortfid">
|
|
<code class="descname">shortfid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.shortfid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer with 1<=shortfid<=30.Short EF identifier.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.simpletlv_data">
|
|
<code class="descname">simpletlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updatebinary">
|
|
<code class="descname">updatebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updatebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updaterecord">
|
|
<code class="descname">updaterecord</code><span class="sig-paren">(</span><em>num_id</em>, <em>reference</em>, <em>offset</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updaterecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>x.updaterecord(num_id, reference, offset, data) <==>
|
|
x.writerecord(num_id, reference, offset, data, DCB[“ONETIMEWRITE”])</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writebinary">
|
|
<code class="descname">writebinary</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writerecord">
|
|
<code class="descname">writerecord</code><span class="sig-paren">(</span><em>num_id</em>, <em>reference</em>, <em>offset</em>, <em>data</em>, <em>datacoding=None</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writerecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Writes a data string to the ‘offset’ of a record using the given data
|
|
coding byte. ‘num_id’ and ‘reference’ specify the record (see
|
|
__getRecords).</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF">
|
|
<em class="property">class </em><code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">TransparentStructureEF</code><span class="sig-paren">(</span><em>parent</em>, <em>fid</em>, <em>filedescriptor=1</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>datacoding=0</em>, <em>shortfid=0</em>, <em>data=''</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.EF" title="virtualsmartcard.SmartcardFilesystem.EF"><code class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.EF</span></code></a></p>
|
|
<p>Class for an elementary file with transparent structure.</p>
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.appendrecord">
|
|
<code class="descname">appendrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.appendrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.bertlv_data">
|
|
<code class="descname">bertlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.bertlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.data">
|
|
<code class="descname">data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>string (encrypted). The file’s data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.datacoding">
|
|
<code class="descname">datacoding</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.datacoding" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer. Data coding byte.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.decrypt">
|
|
<code class="descname">decrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.decrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.encrypt">
|
|
<code class="descname">encrypt</code><span class="sig-paren">(</span><em>path</em>, <em>data</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.encrypt" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.erasebinary">
|
|
<code class="descname">erasebinary</code><span class="sig-paren">(</span><em>erasefrom</em>, <em>eraseto</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.erasebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets (part of) the content of an EF to its logical erased state,
|
|
sequentially starting from ‘erasefrom’ ending at ‘eraseto’.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.fid">
|
|
<code class="descname">fid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.fid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file identifier</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.filedescriptor">
|
|
<code class="descname">filedescriptor</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.filedescriptor" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>file descriptor byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getdata">
|
|
<code class="descname">getdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>requestedTL</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a string of either the file’s BER-TLV or the file’s SIMPLE-TLV
|
|
coded data objects depending on the bool ‘isSimpleTlv’. ‘requestedTL’
|
|
is a list of (tag, length)-tuples that specify which tags should be
|
|
returned in what size.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getpath">
|
|
<code class="descname">getpath</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getpath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to this file beginning with the MF’s fid.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.lifecycle">
|
|
<code class="descname">lifecycle</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.lifecycle" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>life cycle byte</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.parent">
|
|
<code class="descname">parent</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.parent" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>parent DF</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.putdata">
|
|
<code class="descname">putdata</code><span class="sig-paren">(</span><em>isSimpleTlv</em>, <em>newtlvlist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.putdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Sets either the file’s BER-TLV or the file’s SIMPLE-TLV coded data
|
|
objects depending on the bool ‘isSimpleTlv’. ‘newtlvlist’ is a list of
|
|
(tag, length, value)-tuples of new data.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readbinary">
|
|
<code class="descname">readbinary</code><span class="sig-paren">(</span><em>offset</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readbinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the string of decrypted data beginning at ‘offset’.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readrecord">
|
|
<code class="descname">readrecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readrecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.select">
|
|
<code class="descname">select</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.select" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.shortfid">
|
|
<code class="descname">shortfid</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.shortfid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>integer with 1<=shortfid<=30.Short EF identifier.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.simpletlv_data">
|
|
<code class="descname">simpletlv_data</code><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updatebinary">
|
|
<code class="descname">updatebinary</code><span class="sig-paren">(</span><em>offsets</em>, <em>datalist</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updatebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>x.updatebinary(offsets, datalist) <==>
|
|
x.writebinary(offsets, datalist, DCB[“ONETIMEWRITE”])</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updaterecord">
|
|
<code class="descname">updaterecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updaterecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writebinary">
|
|
<code class="descname">writebinary</code><span class="sig-paren">(</span><em>offsets</em>, <em>datalist</em>, <em>datacoding=None</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writebinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Writes pieces of data to the specified offsets honoring the given
|
|
coding byte.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>offsets</strong> – list of integers. Offsets.</li>
|
|
<li><strong>datalist</strong> – list of strings. Data pieces.</li>
|
|
<li><strong>datacoding</strong> – the data coding byte to use for writing</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writerecord">
|
|
<code class="descname">writerecord</code><span class="sig-paren">(</span><em>*argz</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writerecord" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Only a template, will raise an error.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.get_indexes">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">get_indexes</code><span class="sig-paren">(</span><em>items</em>, <em>reference=0</em>, <em>index_current=0</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.get_indexes" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns all indexes of the list, which are specified by ‘reference’ and by
|
|
the current index ‘index_current’ (-1 for no current item) in the correct
|
|
order. I. e.:</p>
|
|
<p>REF[“IDENTIFIER_FIRST”]: all indexes from first to the last item
|
|
REF[“IDENTIFIER_LAST”]: all indexes from the last to first item
|
|
REF[“IDENTIFIER_NEXT”]: all indexes from the next to the last item
|
|
REF[“IDENTIFIER_PREVIOUS”]: all indexes from the previous to the first item</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.getfile_byrefdataobj">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">getfile_byrefdataobj</code><span class="sig-paren">(</span><em>mf</em>, <em>refdataobjs</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.getfile_byrefdataobj" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a list of files according to the given list of reference data
|
|
objects.</p>
|
|
<p>param mf: the MF
|
|
param refdataobjs: a list of 3-tuples (tag, length, newvalue)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.isEqual">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">isEqual</code><span class="sig-paren">(</span><em>list</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.isEqual" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns True, if all items are equal, otherwise False</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.make_property">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">make_property</code><span class="sig-paren">(</span><em>prop</em>, <em>doc</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.make_property" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Assigns a property to the calling object. This is used to decorate instance
|
|
variables with docstrings.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.prettyprint_anything">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">prettyprint_anything</code><span class="sig-paren">(</span><em>indent</em>, <em>thing</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.prettyprint_anything" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a recursively generated string representation of an object and its
|
|
attributes.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.walk">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">walk</code><span class="sig-paren">(</span><em>start</em>, <em>path</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.walk" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Walks a path of fids and returns the last file (EF or DF).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>start</strong> – DF, where to look for the first fid</li>
|
|
<li><strong>path</strong> – a string of fids</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="virtualsmartcard.SmartcardFilesystem.write">
|
|
<code class="descclassname">virtualsmartcard.SmartcardFilesystem.</code><code class="descname">write</code><span class="sig-paren">(</span><em>old</em>, <em>newlist</em>, <em>offsets</em>, <em>datacoding</em>, <em>maxsize=None</em><span class="sig-paren">)</span><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the status bytes and the result of a write operation according to
|
|
the given data coding.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>old</strong> – string of old data</li>
|
|
<li><strong>newlist</strong> – a list of new data string</li>
|
|
<li><strong>offsets</strong> – a list of offsets, each for one new data strings</li>
|
|
<li><strong>datacoding</strong> – DCB[“ONETIMEWRITE”] (replace) or DCB[“WRITEOR”]
|
|
(logical or) or DCB[“WRITEAND”] (logical and) or
|
|
DCB[“PROPRIETARY”] (logical xor)</li>
|
|
<li><strong>maxsize</strong> – the maximum number of bytes in the result</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<p class="pull-right">
|
|
<a href="#">Back to top</a>
|
|
|
|
</p>
|
|
<p>
|
|
© Copyright 2009-2016 by Dominik Oepen and Frank Morgner.<br/>
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html> |