Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
242b2b13
Commit
242b2b13
authored
May 28, 2015
by
gauthier
Browse files
clean commented code
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7485
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
1b03104f
Changes
2
Hide whitespace changes
Inline
Side-by-side
openair-cn/OPENAIRHSS/auc/fx.c
View file @
242b2b13
...
...
@@ -65,11 +65,6 @@ void f1 ( const uint8_t const opc[16], const uint8_t const k[16], const uint8_t
uint8_t
rijndaelInput
[
16
];
uint8_t
i
;
RijndaelKeySchedule
(
k
);
/*
if (hss_config.valid_op > 0) {
SetOP(hss_config.operator_key);
ComputeOPc( opc );
}*/
for
(
i
=
0
;
i
<
16
;
i
++
)
rijndaelInput
[
i
]
=
_rand
[
i
]
^
opc
[
i
];
...
...
@@ -123,11 +118,6 @@ void f2345 ( const uint8_t const opc[16], const uint8_t const k[16], const uint8
uint8_t
i
;
RijndaelKeySchedule
(
k
);
/*if (hss_config.valid_op > 0) {
SetOP(hss_config.operator_key);
ComputeOPc( opc );
}*/
for
(
i
=
0
;
i
<
16
;
i
++
)
rijndaelInput
[
i
]
=
_rand
[
i
]
^
opc
[
i
];
...
...
@@ -203,14 +193,6 @@ void f1star( const uint8_t const opc[16], const uint8_t const k[16], const uint8
uint8_t
rijndaelInput
[
16
];
uint8_t
i
;
RijndaelKeySchedule
(
k
);
/*if (hss_config.valid_opc == 0) {
SetOP(hss_config.operator_key);
ComputeOPc( opc );
} else {
printf("Using opc: %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n",
opc[0],opc[1],opc[2],opc[3],opc[4],opc[5],opc[6],opc[7],
opc[8],opc[9],opc[10],opc[11],opc[12],opc[13],opc[14],opc[15] );
}*/
for
(
i
=
0
;
i
<
16
;
i
++
)
rijndaelInput
[
i
]
=
_rand
[
i
]
^
opc
[
i
];
...
...
@@ -264,14 +246,6 @@ void f5star( const uint8_t const opc[16], const uint8_t const k[16], const uint8
uint8_t
i
;
RijndaelKeySchedule
(
k
);
/*if (hss_config.valid_opc == 0) {
SetOP(hss_config.operator_key);
ComputeOPc(opc);
} else {
printf("Using OPc: %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n",
opc[0],opc[1],opc[2],opc[3],opc[4],opc[5],opc[6],opc[7],
opc[8],opc[9],opc[10],opc[11],opc[12],opc[13],opc[14],opc[15]);
}*/
for
(
i
=
0
;
i
<
16
;
i
++
)
rijndaelInput
[
i
]
=
_rand
[
i
]
^
opc
[
i
];
...
...
openair-cn/OPENAIRHSS/auc/kdf.c
View file @
242b2b13
...
...
@@ -138,8 +138,7 @@ int generate_vector(const uint8_t const opc[16], uint64_t imsi, uint8_t key[16],
* - KASME
*/
//uint8_t amf[] = { 0x80, 0x00 };
uint8_t
amf
[]
=
{
0x90
,
0x01
};
uint8_t
amf
[]
=
{
0x80
,
0x00
};
uint8_t
mac_a
[
8
];
uint8_t
ck
[
16
];
uint8_t
ik
[
16
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment