gba/gbaserver/src/bootstrap.cpp
branchRCL_3
changeset 10 ece4bbb094df
parent 0 164170e6151a
child 12 a005fc61b02a
equal deleted inserted replaced
9:6e226572c5f0 10:ece4bbb094df
    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