L3_Common: extend the AuthVector to contain AUTS

AUTS is used in the UMTS AKA resync procedure.

Change-Id: Id1afa47778e6220cab375ae4b54b251801724fdb
This commit is contained in:
Alexander Couzens 2018-09-04 18:10:59 +02:00
parent 2068f43d68
commit 387f7f37b1
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}