Change in osmo-ttcn3-hacks[master]: bsc: add TC_ciph_mode_a5_4

laforge gerrit-no-reply at lists.osmocom.org
Mon Jun 21 16:26:10 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24672 )

Change subject: bsc: add TC_ciph_mode_a5_4
......................................................................

bsc: add TC_ciph_mode_a5_4

Establish a Signalling channel with A5/4 encryption.

Related: SYS#5324
Change-Id: I2428c21663dfa7d67e769da0127f74e8c01dfb97
---
M bsc/BSC_Tests.ttcn
M bsc/expected-results.xml
2 files changed, 13 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index a2a7804..4ae90bb 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -3326,7 +3326,18 @@
 	vc_conn.done;
 	f_shutdown_helper();
 }
+/* Establish a Signalling channel with A5/4 encryption. */
+testcase TC_ciph_mode_a5_4() runs on test_CT {
+	var MSC_ConnHdlr vc_conn;
+	var TestHdlrParams pars := f_gen_test_hdlr_pars();
+	pars.encr := valueof(t_EncrParams('10'O, f_rnd_octstring(8), f_rnd_octstring(16)));
 
+	f_init(1, true);
+	f_sleep(1.0);
+	vc_conn := f_start_handler(refers(f_tc_ciph_mode_a5), pars);
+	vc_conn.done;
+	f_shutdown_helper();
+}
 /* establish initial channel, enable ciphering followed by assignment to ciphered channel */
 private function f_tc_assignment_aoip_tla_v6(charstring id) runs on MSC_ConnHdlr {
 	var template PDU_BSSAP exp_compl := f_gen_exp_compl();
@@ -8923,6 +8934,7 @@
 	execute( TC_ciph_mode_a5_0() );
 	execute( TC_ciph_mode_a5_1() );
 	execute( TC_ciph_mode_a5_3() );
+	execute( TC_ciph_mode_a5_4() );
 
 	execute( TC_assignment_codec_fr() );
 	execute( TC_assignment_codec_fr_by_mode_modify() );
diff --git a/bsc/expected-results.xml b/bsc/expected-results.xml
index f91de19..ab1a9e4 100644
--- a/bsc/expected-results.xml
+++ b/bsc/expected-results.xml
@@ -51,6 +51,7 @@
   <testcase classname='BSC_Tests' name='TC_ciph_mode_a5_0' time='MASKED'/>
   <testcase classname='BSC_Tests' name='TC_ciph_mode_a5_1' time='MASKED'/>
   <testcase classname='BSC_Tests' name='TC_ciph_mode_a5_3' time='MASKED'/>
+  <testcase classname='BSC_Tests' name='TC_ciph_mode_a5_4' time='MASKED'/>
   <testcase classname='BSC_Tests' name='TC_assignment_codec_fr' time='MASKED'/>
   <testcase classname='BSC_Tests' name='TC_assignment_codec_hr' time='MASKED'/>
   <testcase classname='BSC_Tests' name='TC_assignment_codec_efr' time='MASKED'/>

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24672
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I2428c21663dfa7d67e769da0127f74e8c01dfb97
Gerrit-Change-Number: 24672
Gerrit-PatchSet: 6
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210621/dba48d0f/attachment.htm>


More information about the gerrit-log mailing list