<p>neels <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24759">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">msc: generate Milenage ck in f_get_expected_encryption()<br><br>Instead of overwriting the ck of the original auth vector, generate the<br>Milenage-on-GERAN Ck key only for the expected ciphering IEs, centrally<br>in f_get_expected_encryption().<br><br>Related: SYS#5324<br>Change-Id: Iec618ba7fddb2290fc0137d99a9b8d5e2b428b98<br>---<br>M msc/BSC_ConnectionHandler.ttcn<br>1 file changed, 7 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn</span><br><span>index 64848c5..3fa5fac 100644</span><br><span>--- a/msc/BSC_ConnectionHandler.ttcn</span><br><span>+++ b/msc/BSC_ConnectionHandler.ttcn</span><br><span>@@ -435,7 +435,6 @@</span><br><span>                                                                 g_pars.vec.autn,</span><br><span>                                                             g_pars.vec.res));</span><br><span>            GSUP.send(ts_GSUP_SAI_RES(g_pars.imsi, auth_tuple));</span><br><span style="color: hsl(0, 100%, 40%);">-            g_pars.vec.kc := f_auth3g_kc(g_pars.vec);</span><br><span>    } else {</span><br><span>             g_pars.vec := f_gen_auth_vec_2g();</span><br><span>           auth_tuple := valueof(ts_GSUP_IE_AuthTuple2G(g_pars.vec.rand,</span><br><span>@@ -576,7 +575,13 @@</span><br><span>                 return;</span><br><span>      }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   encryptionInformation := tr_BSSMAP_IE_EncrInfo(g_pars.vec.kc, a5_perm_alg);</span><br><span style="color: hsl(120, 100%, 40%);">+   var OCT8 kc;</span><br><span style="color: hsl(120, 100%, 40%);">+  if (g_pars.use_umts_aka) {</span><br><span style="color: hsl(120, 100%, 40%);">+            kc := f_auth3g_kc(g_pars.vec);</span><br><span style="color: hsl(120, 100%, 40%);">+        } else {</span><br><span style="color: hsl(120, 100%, 40%);">+              kc := g_pars.vec.kc;</span><br><span style="color: hsl(120, 100%, 40%);">+  }</span><br><span style="color: hsl(120, 100%, 40%);">+     encryptionInformation := tr_BSSMAP_IE_EncrInfo(kc, a5_perm_alg);</span><br><span> </span><br><span>         var OCT1 chosen_alg := int2oct(f_alg_from_mask(f_best_alg_from_mask(a5_perm_alg)) + 1, 1);</span><br><span>   chosenEncryptionAlgorithm := tr_BSSMAP_IE_ChosenEncryptionAlgorithm(chosen_alg);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24759">change 24759</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24759"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iec618ba7fddb2290fc0137d99a9b8d5e2b428b98 </div>
<div style="display:none"> Gerrit-Change-Number: 24759 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>