Hello everybody,
 
I'm trying to make a testbed for EAP-SIM with freeradius to authenticate on a WLAN network.
it works well thanks to the patch provided by seek-for-android : you can see the details here :
but you need to store IMSI, RAND, SRES, KC in a flat file as by default, we don't have the Ki of SIM cards
and don't have a HLR so we need to precalculate these values.
 
For our testbed, we're using some MagicSIM we've programmed with our own Ki.
So I wonder if anybody has already done some integration of freeradius with openbsc HLR to do EAP-SIM ?
 
Or is there a tool to calculate the triplets (RAND, SRES, KC) with input the IMSI (and Ki stored in the database) ?
If not, could someone points me where to start to write my own tool ? I don't think pysim can do it...
 
I found an entry about A3/A8 authentication here 
     int get_authtuple_by_subscr(struct gsm_auth_tuple *atuple, struct gsm_subscriber *subscr)  
...but I want to calculate gsm_auth_tuple, not retreive it from the database...
 
 
Thanks for any information :) 
 
-- 
Thus0