summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/crypt/auth.h4
-rw-r--r--src/gsm/auth_core.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h
index 37b8a8ad..7c6072b2 100644
--- a/include/osmocom/crypt/auth.h
+++ b/include/osmocom/crypt/auth.h
@@ -74,7 +74,7 @@ struct osmo_auth_impl {
/* \brief callback for generationg auth vectors + re-sync */
int (*gen_vec_auts)(struct osmo_auth_vector *vec,
struct osmo_sub_auth_data *aud,
- const uint8_t *rand_auts, const uint8_t *auts,
+ const uint8_t *auts, const uint8_t *rand_auts,
const uint8_t *_rand);
};
@@ -83,7 +83,7 @@ int osmo_auth_gen_vec(struct osmo_auth_vector *vec,
int osmo_auth_gen_vec_auts(struct osmo_auth_vector *vec,
struct osmo_sub_auth_data *aud,
- const uint8_t *rand_auts, const uint8_t *auts,
+ const uint8_t *auts, const uint8_t *rand_auts,
const uint8_t *_rand);
int osmo_auth_register(struct osmo_auth_impl *impl);
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c
index 3aac0694..3b1a5c6e 100644
--- a/src/gsm/auth_core.c
+++ b/src/gsm/auth_core.c
@@ -170,8 +170,8 @@ int osmo_auth_gen_vec(struct osmo_auth_vector *vec,
/*! \brief Generate authentication vector and re-sync sequence
* \param[out] vec Generated authentication vector
* \param[in] aud Subscriber-specific key material
- * \param[in] rand_auts RAND value sent by the SIM/MS
* \param[in] auts AUTS value sent by the SIM/MS
+ * \param[in] rand_auts RAND value sent by the SIM/MS
* \param[in] _rand Random challenge to be used to generate vector
* \returns 0 on success, negative error on failure
*
@@ -184,7 +184,7 @@ int osmo_auth_gen_vec(struct osmo_auth_vector *vec,
*/
int osmo_auth_gen_vec_auts(struct osmo_auth_vector *vec,
struct osmo_sub_auth_data *aud,
- const uint8_t *rand_auts, const uint8_t *auts,
+ const uint8_t *auts, const uint8_t *rand_auts,
const uint8_t *_rand)
{
struct osmo_auth_impl *impl = selected_auths[aud->algo];
@@ -192,7 +192,7 @@ int osmo_auth_gen_vec_auts(struct osmo_auth_vector *vec,
if (!impl || !impl->gen_vec_auts)
return -ENOENT;
- return impl->gen_vec_auts(vec, aud, rand_auts, auts, _rand);
+ return impl->gen_vec_auts(vec, aud, auts, rand_auts, _rand);
}
static const struct value_string auth_alg_vals[] = {