bts: add first a5/4 tests

Not much to do here, bts just passes the key.

Related: SYS#5324
Change-Id: I38e8a1cf15eb41a621b457b39024283a767c94be
changes/46/24246/3
Eric Wild 2 years ago committed by laforge
parent aed9f94db4
commit b926039772
  1. 10
      bts/BTS_Tests.ttcn
  2. 2
      bts/expected-results.xml

@ -6706,6 +6706,11 @@ testcase TC_chan_act_a53() runs on test_CT {
pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_3, f_rnd_octstring(8)));
f_testmatrix_each_chan(pars, refers(f_TC_chan_act_encr));
}
testcase TC_chan_act_a54() runs on test_CT {
var ConnHdlrPars pars := valueof(t_Pars(t_RslChanNr_Bm(1), ts_RSL_ChanMode_SIGN));
pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_4, f_rnd_octstring(16)));
f_testmatrix_each_chan(pars, refers(f_TC_chan_act_encr));
}
/* Test channel activation with A5/n right from the beginning and RSL MODE MODIFY
which should break the en/decryption on purpose by supplying a new key that is unknown to the MS*/
@ -6827,6 +6832,11 @@ testcase TC_encr_cmd_a53() runs on test_CT {
pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_3, f_rnd_octstring(8)));
f_testmatrix_each_chan(pars, refers(f_TC_encr_cmd));
}
testcase TC_encr_cmd_a54() runs on test_CT {
var ConnHdlrPars pars := valueof(t_Pars(t_RslChanNr_Bm(1), ts_RSL_ChanMode_SIGN));
pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_4, f_rnd_octstring(16)));
f_testmatrix_each_chan(pars, refers(f_TC_encr_cmd));
}
private function f_assert_lapdm(octetstring enc, template LapdmFrame exp_match, charstring name := "") {
var LapdmFrame lf;

@ -124,9 +124,11 @@
<testcase classname='BTS_Tests' name='TC_chan_act_a51' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_chan_act_a52' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_chan_act_a53' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_chan_act_a54' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_encr_cmd_a51' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_encr_cmd_a52' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_encr_cmd_a53' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_encr_cmd_a54' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_err_rep_wrong_mdisc' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_err_rep_wrong_msg_type' time='MASKED'/>
<testcase classname='BTS_Tests' name='TC_err_rep_wrong_sequence' time='MASKED'/>

Loading…
Cancel
Save