rtp/srtpstack/tsrc/ut_srtpstack/src/UT_CSRTPCryptoHandlerSRTP.cpp
branchRCL_3
changeset 43 b5e99d8877c7
parent 0 307788aac0a8
child 44 0dcb073356a5
equal deleted inserted replaced
41:f54bfd820e04 43:b5e99d8877c7
   219     {
   219     {
   220     delete iDecryptedPayload;
   220     delete iDecryptedPayload;
   221     delete iTestPayload160Bits;
   221     delete iTestPayload160Bits;
   222     delete iTestMKI128Bits;
   222     delete iTestMKI128Bits;
   223     delete iTestAuthTag80Bits;
   223     delete iTestAuthTag80Bits;
       
   224 	
       
   225     iDecryptedPayload = NULL;
       
   226     iTestPayload160Bits = NULL;
       
   227     iTestMKI128Bits = NULL;
       
   228     iTestAuthTag80Bits = NULL;
   224 
   229 
   225     delete iStreamIn;
   230     delete iStreamIn;
   226     delete iSRTPSession;    
   231     delete iSRTPSession;    
       
   232 	
       
   233 	iStreamIn = NULL;
       
   234     iSRTPSession = NULL; 
   227 
   235 
   228     
   236     
   229     delete iRFC3711_SessionEncrKey128bits;
   237     delete iRFC3711_SessionEncrKey128bits;
   230     delete iRFC3711_SessionSaltKey128bits;
   238     delete iRFC3711_SessionSaltKey128bits;
   231     delete iRFC3711_SessionAuthKey128bits;    
   239     delete iRFC3711_SessionAuthKey128bits;    
       
   240 	
       
   241 	iRFC3711_SessionEncrKey128bits = NULL;
       
   242     iRFC3711_SessionSaltKey128bits = NULL;
       
   243     iRFC3711_SessionAuthKey128bits = NULL;  
   232 
   244 
   233     }
   245     }
   234 
   246 
   235 
   247 
   236 void UT_CSRTPCryptoHandlerSRTP::Hex(HBufC8& aString)
   248 void UT_CSRTPCryptoHandlerSRTP::Hex(HBufC8& aString)
   426     CleanupStack::PopAndDestroy(mki);                                   
   438     CleanupStack::PopAndDestroy(mki);                                   
   427     }
   439     }
   428 
   440 
   429 
   441 
   430 
   442 
   431 void UT_CSRTPCryptoHandlerSRTP::UT_DeriveSessionKeysL_1L(  )
   443 void UT_CSRTPCryptoHandlerSRTP::UT_DeriveSessionKeysL_OneL(  )
   432     {
   444     {
   433     //Create the packet firest 
   445     //Create the packet firest 
   434      TInt authTagLenInBytes = iContext->CryptoParams().iSrtpAuthTagLen/8;
   446      TInt authTagLenInBytes = iContext->CryptoParams().iSrtpAuthTagLen/8;
   435         
   447         
   436     TBuf8<32> payload;
   448     TBuf8<32> payload;
  1626 EUNIT_TEST(
  1638 EUNIT_TEST(
  1627     "DeriveSessionKeysL - 1 ",
  1639     "DeriveSessionKeysL - 1 ",
  1628     "CSRTPCryptoHandlerSRTP",
  1640     "CSRTPCryptoHandlerSRTP",
  1629     "DeriveSessionKeysL",
  1641     "DeriveSessionKeysL",
  1630     "FUNCTIONALITY",
  1642     "FUNCTIONALITY",
  1631     SetupL, UT_DeriveSessionKeysL_1L, Teardown)
  1643     SetupL, UT_DeriveSessionKeysL_OneL, Teardown)
  1632 
  1644 
  1633 EUNIT_TEST(
  1645 EUNIT_TEST(
  1634     "UpdateROC - 1 ",
  1646     "UpdateROC - 1 ",
  1635     "CSRTPCryptoHandlerSRTP",
  1647     "CSRTPCryptoHandlerSRTP",
  1636     "UpdateROC",
  1648     "UpdateROC",