summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-09-04 18:10:59 +0200
committerAlexander Couzens <lynxis@fe80.eu>2018-09-11 18:04:14 +0200
commit387f7f37b1354e0657e234b96c6ce911afda18a7 (patch)
tree80953859065eb7588197ff7ca9f5574d73198dd1 /library
parent2068f43d68c90ef2742040e28395e7512b29c41b (diff)
L3_Common: extend the AuthVector to contain AUTS
AUTS is used in the UMTS AKA resync procedure. Change-Id: Id1afa47778e6220cab375ae4b54b251801724fdb
Diffstat (limited to 'library')
-rw-r--r--library/L3_Common.ttcn7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/L3_Common.ttcn b/library/L3_Common.ttcn
index bf7818a..57db6b3 100644
--- a/library/L3_Common.ttcn
+++ b/library/L3_Common.ttcn
@@ -11,7 +11,11 @@ type record AuthVector {
OCT16 ik,
OCT16 ck,
OCT16 autn,
- OCT8 res
+ OCT8 res,
+ /* auts is usally calculated from autn + rand on the MS.
+ * To simplify the test case, auts is generated instead calculated here.
+ */
+ OCT14 auts
}
private function f_rnd_oct(integer len) return octetstring {
@@ -37,6 +41,7 @@ function f_gen_auth_vec_3g() return AuthVector {
vec.ck := f_rnd_oct(16);
vec.autn := f_rnd_oct(16);
vec.res := f_rnd_oct(8);
+ vec.auts := f_rnd_oct(14);
return vec;
}