How can I send the RAND to the SIM card and get the SRES?

How can I send the RAND to the SIM card and get the SRES. The RIL's function maybe can send a command to the SIM card, but there were something wrong when I call the RIL_SendSimCmd(). Is there any other functions in Smartphone SDK 5.0 to get the SRES by passing it with a random number   I mean that how can I call the "RUN GSM ALGORITHM" which is descript in the GSM11.11.

The follow are the description in GSM11.11

8.16 RUN GSM ALGORITHM
This function is used during the procedure for authenticating the SIM to a GSM network and to calculate a
cipher key. The card runs the specified algorithms A3 and A8 using a 16 byte random number and the
subscriber authentication key Ki, which is stored in the SIM. The function returns the calculated response
SRES and the cipher key Kc.
The function shall not be executable unless DFGSM has been selected as the Current Directory and a
successful CHV1 verification procedure has been performed (see 11.3.1).
Input:
- RAND.
Output:
- SRES, Kc.

Thanks.



Answer this question

How can I send the RAND to the SIM card and get the SRES?

  • AtomZ .be

    hi spcoder,
    I am also facing this same issue. I am also trying the RIL_SenSimCmd( )..but not success. Did you get any result please let me know if you get any. I request your valuable help / suggestion for this... please

    thanks
    sanalpsp

  • How can I send the RAND to the SIM card and get the SRES?