equal
deleted
inserted
replaced
23 // 4. Use this to find RAND AUTN |
23 // 4. Use this to find RAND AUTN |
24 // 5. Execute SIM auth, get back SRES, IK,CK |
24 // 5. Execute SIM auth, get back SRES, IK,CK |
25 // 6. return SRES |
25 // 6. return SRES |
26 // 7. Store keymaterial to a token |
26 // 7. Store keymaterial to a token |
27 |
27 |
28 #include <imcvcodc.h> //for base64 en/decoding |
28 #include <s32stor.h> |
|
29 #include <s32file.h> |
|
30 #include <tconvbase64.h> //for base64 en/decoding |
|
31 |
29 #include <ecom.h> |
32 #include <ecom.h> |
30 #include "dataretriever.h" |
33 #include "dataretriever.h" |
31 #include "bootstrap.h" |
34 #include "bootstrap.h" |
32 #include "GbaCommon.h" |
35 #include "GbaCommon.h" |
33 #include "GBALogger.h" |
36 #include "GBALogger.h" |
697 |
700 |
698 //fill the buffer with zeros. |
701 //fill the buffer with zeros. |
699 ptrDecNonce.FillZ(); |
702 ptrDecNonce.FillZ(); |
700 |
703 |
701 // decodes the base64 nonce |
704 // decodes the base64 nonce |
702 TImCodecB64 b64coder; |
705 TBase64 b64coder; |
703 b64coder.Initialise(); |
|
704 b64coder.Decode( *nonce, ptrDecNonce ); |
706 b64coder.Decode( *nonce, ptrDecNonce ); |
705 |
707 |
706 GBA_TRACE_DEBUG((" The decoded nonce value in binary")); |
708 GBA_TRACE_DEBUG((" The decoded nonce value in binary")); |
707 GBA_TRACE_DEBUG_BINARY( *decodedNonce ); |
709 GBA_TRACE_DEBUG_BINARY( *decodedNonce ); |
708 |
710 |
1035 { |
1037 { |
1036 iSmartCardInterface->NotifyCardChangeL(); |
1038 iSmartCardInterface->NotifyCardChangeL(); |
1037 } |
1039 } |
1038 |
1040 |
1039 GBA_TRACE_DEBUG(("Cached IMPI = ")); |
1041 GBA_TRACE_DEBUG(("Cached IMPI = ")); |
1040 GBA_TRACE_DEBUG(*tmpIdentity); |
1042 if(tmpIdentity != NULL) |
|
1043 GBA_TRACE_DEBUG(*tmpIdentity); |
1041 GBA_TRACE_DEBUG(("IMPI from smart card = ")); |
1044 GBA_TRACE_DEBUG(("IMPI from smart card = ")); |
1042 GBA_TRACE_DEBUG(*iIdentity); |
1045 GBA_TRACE_DEBUG(*iIdentity); |
1043 |
1046 |
1044 // this has served its purpose |
1047 // this has served its purpose |
1045 delete tmpIdentity; |
1048 delete tmpIdentity; |