<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LaForge's home page (Posts about crypto)</title><link>https://laforge.gnumonks.org/</link><description></description><atom:link href="https://laforge.gnumonks.org/blog/tags/crypto.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Oct 2024 20:08:49 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Gory details of USIM authentication sequence numbers</title><link>https://laforge.gnumonks.org/blog/20170307-usim_sequence_numbers/</link><dc:creator>Harald Welte</dc:creator><description>&lt;p&gt;I always though I understood UMTS AKA (authentication and key
agreement), including the re-synchronization procedure.  It's been years
since I wrote tools like &lt;a class="reference external" href="http://osmocom.org/projects/osmo-sim-auth/wiki"&gt;osmo-sim-auth&lt;/a&gt; which you can use to
perform UMTS AKA with a SIM card inserted into a PC reader, i.e.
simulate what happens between the AUC (authentication center) in a
network and the USIM card.&lt;/p&gt;
&lt;p&gt;However, it is only now as the sysmocom team works on 3G support of the
dedicated &lt;a class="reference external" href="http://osmocom.org/projects/osmo-hlr"&gt;OsmoHLR&lt;/a&gt; (outside of
OsmoNITB!), that I seem to understand all the nasty little details.&lt;/p&gt;
&lt;p&gt;I always thought for re-synchronization it is sufficient to simply
increment the SQN (sequence number).  It turns out, it isn't as there is
a MSB-portion called SEQ and a lower-bit portion called IND, used for
some fancy array indexing scheme of buckets of highest-used-SEQ within
that IND bucket.&lt;/p&gt;
&lt;p&gt;If you're interested in all the dirty details and associated spec
references (the always hide the important parts in some Annex) see the
discussion between Neels and me in &lt;a class="reference external" href="https://osmocom.org/issues/1965"&gt;Osmocom redmine issue 1965&lt;/a&gt;.&lt;/p&gt;</description><category>crypto</category><category>gsm</category><category>osmocom</category><category>umts</category><guid>https://laforge.gnumonks.org/blog/20170307-usim_sequence_numbers/</guid><pubDate>Tue, 07 Mar 2017 16:00:00 GMT</pubDate></item></channel></rss>