summaryrefslogtreecommitdiffstats
path: root/library/L3_Common.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'library/L3_Common.ttcn')
-rw-r--r--library/L3_Common.ttcn16
1 files changed, 14 insertions, 2 deletions
diff --git a/library/L3_Common.ttcn b/library/L3_Common.ttcn
index 5b36056..2b39621 100644
--- a/library/L3_Common.ttcn
+++ b/library/L3_Common.ttcn
@@ -7,8 +7,11 @@ import from MobileL3_GMM_SM_Types all;
type record AuthVector {
OCT16 rand,
OCT4 sres,
- OCT8 kc
- /* FIXME: 3G elements */
+ OCT8 kc,
+ OCT16 ik,
+ OCT16 ck,
+ OCT16 autn,
+ OCT8 res
}
private function f_rnd_oct(integer len) return octetstring {
@@ -28,6 +31,15 @@ function f_gen_auth_vec_2g() return AuthVector {
return vec;
}
+function f_gen_auth_vec_3g() return AuthVector {
+ var AuthVector vec := f_gen_auth_vec_2g();
+ vec.ik := f_rnd_oct(16);
+ vec.ck := f_rnd_oct(16);
+ vec.autn := f_rnd_oct(16);
+ vec.res := f_rnd_oct(8);
+ return vec;
+}
+
/* 3GPP TS 23.003 2.6 */
type enumerated TlliType {
TLLI_LOCAL,