rtp/srtpstack/tsrc/ut_srtpstack/src/UT_CSrtpAuthentication_RCC.cpp
branchRCL_3
changeset 43 b5e99d8877c7
parent 9 1e1cc61f56c3
child 44 0dcb073356a5
equal deleted inserted replaced
41:f54bfd820e04 43:b5e99d8877c7
   313     } 
   313     } 
   314 
   314 
   315 void UT_CSrtpAuthentication_RCC::Teardown(  )
   315 void UT_CSrtpAuthentication_RCC::Teardown(  )
   316     {
   316     {
   317     delete iAuthenticator;
   317     delete iAuthenticator;
       
   318 	iAuthenticator = NULL;
   318     
   319     
   319 	delete iRFC2202_Test1_Key_160bits;
   320 	delete iRFC2202_Test1_Key_160bits;
   320 	delete iRFC2202_Test1_Data_16bits;
   321 	delete iRFC2202_Test1_Data_16bits;
   321 	delete iRFC2202_Test1_Tag_80bits;
   322 	delete iRFC2202_Test1_Tag_80bits;
   322 	delete iRFC2202_Test1_Tag_32bits;
   323 	delete iRFC2202_Test1_Tag_32bits;
       
   324 	
       
   325 	iRFC2202_Test1_Key_160bits = NULL;
       
   326 	iRFC2202_Test1_Data_16bits = NULL;
       
   327 	iRFC2202_Test1_Tag_80bits = NULL;
       
   328 	iRFC2202_Test1_Tag_32bits = NULL;
   323 
   329 
   324 	delete iRFC2202_Test2_Key;
   330 	delete iRFC2202_Test2_Key;
   325 	delete iRFC2202_Test2_Data_28bits;
   331 	delete iRFC2202_Test2_Data_28bits;
   326 	delete iRFC2202_Test2_Tag_80bits;
   332 	delete iRFC2202_Test2_Tag_80bits;
   327 	delete iRFC2202_Test2_Tag_32bits;
   333 	delete iRFC2202_Test2_Tag_32bits;
       
   334 	
       
   335 	iRFC2202_Test2_Key = NULL;
       
   336 	iRFC2202_Test2_Data_28bits = NULL;
       
   337 	iRFC2202_Test2_Tag_80bits = NULL;
       
   338 	iRFC2202_Test2_Tag_32bits = NULL;
   328 
   339 
   329 	delete iRFC2202_Test3_Key_160bits;
   340 	delete iRFC2202_Test3_Key_160bits;
   330 	delete iRFC2202_Test3_Data_400bits;
   341 	delete iRFC2202_Test3_Data_400bits;
   331 	delete iRFC2202_Test3_Tag_80bits;
   342 	delete iRFC2202_Test3_Tag_80bits;
   332 	delete iRFC2202_Test3_Tag_32bits;
   343 	delete iRFC2202_Test3_Tag_32bits;
       
   344 	
       
   345 	iRFC2202_Test3_Key_160bits = NULL;
       
   346 	iRFC2202_Test3_Data_400bits = NULL;
       
   347 	iRFC2202_Test3_Tag_80bits = NULL;
       
   348 	iRFC2202_Test3_Tag_32bits = NULL;
   333 
   349 
   334     delete iRFC2202_Test4_Key_200bits;
   350     delete iRFC2202_Test4_Key_200bits;
   335     delete iRFC2202_Test4_Data_400bits;
   351     delete iRFC2202_Test4_Data_400bits;
   336     delete iRFC2202_Test4_Tag_80bits;
   352     delete iRFC2202_Test4_Tag_80bits;
   337     delete iRFC2202_Test4_Tag_32bits;
   353     delete iRFC2202_Test4_Tag_32bits;
       
   354 	
       
   355 	iRFC2202_Test4_Key_200bits = NULL;
       
   356     iRFC2202_Test4_Data_400bits = NULL;
       
   357     iRFC2202_Test4_Tag_80bits = NULL;
       
   358     iRFC2202_Test4_Tag_32bits = NULL;
   338 
   359 
   339     delete iRFC2202_Test5_Key_160bits;
   360     delete iRFC2202_Test5_Key_160bits;
   340     delete iRFC2202_Test5_Data;
   361     delete iRFC2202_Test5_Data;
   341     delete iRFC2202_Test5_Tag_80bits;
   362     delete iRFC2202_Test5_Tag_80bits;
   342     delete iRFC2202_Test5_Tag_32bits;
   363     delete iRFC2202_Test5_Tag_32bits;
       
   364 	
       
   365 	iRFC2202_Test5_Key_160bits = NULL;
       
   366     iRFC2202_Test5_Data = NULL;
       
   367     iRFC2202_Test5_Tag_80bits = NULL;
       
   368     iRFC2202_Test5_Tag_32bits = NULL;
   343 
   369 
   344 	delete iRFC2202_Test6_Key_640bits;
   370 	delete iRFC2202_Test6_Key_640bits;
   345 	delete iRFC2202_Test6_Data_54bits;
   371 	delete iRFC2202_Test6_Data_54bits;
   346 	delete iRFC2202_Test6_Tag_80bits;
   372 	delete iRFC2202_Test6_Tag_80bits;
   347 	delete iRFC2202_Test6_Tag_32bits;
   373 	delete iRFC2202_Test6_Tag_32bits;
       
   374 	
       
   375 	iRFC2202_Test6_Key_640bits = NULL;
       
   376 	iRFC2202_Test6_Data_54bits = NULL;
       
   377 	iRFC2202_Test6_Tag_80bits = NULL;
       
   378 	iRFC2202_Test6_Tag_32bits = NULL;
   348 
   379 
   349 	delete iRFC2202_Test7_Key_640bits;
   380 	delete iRFC2202_Test7_Key_640bits;
   350 	delete iRFC2202_Test7_Data_73bits;
   381 	delete iRFC2202_Test7_Data_73bits;
   351 	delete iRFC2202_Test7_Tag_80bits;
   382 	delete iRFC2202_Test7_Tag_80bits;
   352 	delete iRFC2202_Test7_Tag_32bits;
   383 	delete iRFC2202_Test7_Tag_32bits;
       
   384 	
       
   385 	iRFC2202_Test7_Key_640bits = NULL;
       
   386 	iRFC2202_Test7_Data_73bits = NULL;
       
   387 	iRFC2202_Test7_Tag_80bits = NULL;
       
   388 	iRFC2202_Test7_Tag_32bits = NULL;
       
   389 	
   353 	delete iTest8_Key_160bits;
   390 	delete iTest8_Key_160bits;
   354 	delete iTest8_Data_168bits;
   391 	delete iTest8_Data_168bits;
   355 	delete iTest8_Data2_32bits;
   392 	delete iTest8_Data2_32bits;
   356 	delete iTest8_Tag_80bits;
   393 	delete iTest8_Tag_80bits;
   357     }
   394 	
   358 
   395 	iTest8_Key_160bits = NULL;
   359 
   396 	iTest8_Data_168bits = NULL;
   360 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test1_80L(  )
   397 	iTest8_Data2_32bits = NULL;
       
   398 	iTest8_Tag_80bits = NULL;
       
   399     }
       
   400 
       
   401 
       
   402 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test1_EightyL(  )
   361     {
   403     {
   362  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test1_Key_160bits, 
   404  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test1_Key_160bits, 
   363  	                                         *iRFC2202_Test1_Data_16bits,
   405  	                                         *iRFC2202_Test1_Data_16bits,
   364  	                                         KNullDesC8);
   406  	                                         KNullDesC8);
   365 
   407 
   369 
   411 
   370  	CleanupStack::Pop(result); 	
   412  	CleanupStack::Pop(result); 	
   371  	delete result;     	 	 	
   413  	delete result;     	 	 	
   372     }
   414     }
   373 
   415 
   374 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test1_32L(  )
   416 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test1_ThirtyTwoL(  )
   375     {
   417     {
   376  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test1_Key_160bits, 
   418  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test1_Key_160bits, 
   377  	                                         *iRFC2202_Test1_Data_16bits,
   419  	                                         *iRFC2202_Test1_Data_16bits,
   378  	                                         KNullDesC8), KErrArgument);
   420  	                                         KNullDesC8), KErrArgument);
   379 
   421 
   380     }
   422     }
   381 
   423 
   382 
   424 
   383 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test2_80L(  )
   425 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test2_EightyL(  )
   384     {
   426     {
   385  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test2_Key, 
   427  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test2_Key, 
   386  	                                         *iRFC2202_Test2_Data_28bits,
   428  	                                         *iRFC2202_Test2_Data_28bits,
   387  	                                         KNullDesC8);
   429  	                                         KNullDesC8);
   388 
   430 
   392 
   434 
   393  	CleanupStack::Pop(result); 	
   435  	CleanupStack::Pop(result); 	
   394  	delete result;    
   436  	delete result;    
   395     }
   437     }
   396 
   438 
   397 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test2_32L(  )
   439 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test2_ThirtyTwoL(  )
   398     {
   440     {
   399  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test2_Key, 
   441  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test2_Key, 
   400  	                                         *iRFC2202_Test2_Data_28bits,
   442  	                                         *iRFC2202_Test2_Data_28bits,
   401  	                                         KNullDesC8), KErrArgument);
   443  	                                         KNullDesC8), KErrArgument);
   402 
   444 
   403     }
   445     }
   404 
   446 
   405 
   447 
   406 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test3_80L(  )
   448 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test3_EightyL(  )
   407     {
   449     {
   408  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test3_Key_160bits, 
   450  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test3_Key_160bits, 
   409  	                                         *iRFC2202_Test3_Data_400bits,
   451  	                                         *iRFC2202_Test3_Data_400bits,
   410  	                                         KNullDesC8);
   452  	                                         KNullDesC8);
   411 
   453 
   415 
   457 
   416  	CleanupStack::Pop(result); 	
   458  	CleanupStack::Pop(result); 	
   417  	delete result;    
   459  	delete result;    
   418     }
   460     }
   419 
   461 
   420 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test3_32L(  )
   462 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test3_ThirtyTwoL(  )
   421     {
   463     {
   422  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test3_Key_160bits, 
   464  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test3_Key_160bits, 
   423  	                                         *iRFC2202_Test3_Data_400bits,
   465  	                                         *iRFC2202_Test3_Data_400bits,
   424  	                                         KNullDesC8), KErrArgument);
   466  	                                         KNullDesC8), KErrArgument);
   425 
   467 
   426     }
   468     }
   427 
   469 
   428 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test4_80L(  )
   470 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test4_EightyL(  )
   429     {
   471     {
   430  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test4_Key_200bits, 
   472  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test4_Key_200bits, 
   431  	                                         *iRFC2202_Test4_Data_400bits,
   473  	                                         *iRFC2202_Test4_Data_400bits,
   432  	                                         KNullDesC8);
   474  	                                         KNullDesC8);
   433 
   475 
   437 
   479 
   438  	CleanupStack::Pop(result); 	
   480  	CleanupStack::Pop(result); 	
   439  	delete result;    
   481  	delete result;    
   440     }
   482     }
   441 
   483 
   442 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test4_32L(  )
   484 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test4_ThirtyTwoL(  )
   443     {
   485     {
   444  	EUNIT_ASSERT_SPECIFIC_LEAVE(  iAuthenticator->AuthenticateL(32, *iRFC2202_Test4_Key_200bits, 
   486  	EUNIT_ASSERT_SPECIFIC_LEAVE(  iAuthenticator->AuthenticateL(32, *iRFC2202_Test4_Key_200bits, 
   445  	                                         *iRFC2202_Test4_Data_400bits,
   487  	                                         *iRFC2202_Test4_Data_400bits,
   446  	                                         KNullDesC8), KErrArgument);
   488  	                                         KNullDesC8), KErrArgument);
   447 
   489 
   448     }
   490     }
   449 
   491 
   450 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test5_80L(  )
   492 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test5_EightyL(  )
   451     {
   493     {
   452  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test5_Key_160bits, 
   494  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test5_Key_160bits, 
   453  	                                         *iRFC2202_Test5_Data,
   495  	                                         *iRFC2202_Test5_Data,
   454  	                                         KNullDesC8);
   496  	                                         KNullDesC8);
   455 
   497 
   459 
   501 
   460  	CleanupStack::Pop(result); 	
   502  	CleanupStack::Pop(result); 	
   461  	delete result;    
   503  	delete result;    
   462     }
   504     }
   463 
   505 
   464 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test5_32L(  )
   506 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test5_ThirtyTwoL(  )
   465     {
   507     {
   466  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test5_Key_160bits, 
   508  	EUNIT_ASSERT_SPECIFIC_LEAVE( iAuthenticator->AuthenticateL(32, *iRFC2202_Test5_Key_160bits, 
   467  	                                         *iRFC2202_Test5_Data,
   509  	                                         *iRFC2202_Test5_Data,
   468  	                                         KNullDesC8), KErrArgument);
   510  	                                         KNullDesC8), KErrArgument);
   469 
   511 
   470     }
   512     }
   471 
   513 
   472 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test6_80L(  )
   514 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test6_EightyL(  )
   473     {
   515     {
   474  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test6_Key_640bits, 
   516  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test6_Key_640bits, 
   475  	                                         *iRFC2202_Test6_Data_54bits,
   517  	                                         *iRFC2202_Test6_Data_54bits,
   476  	                                         KNullDesC8);
   518  	                                         KNullDesC8);
   477 
   519 
   481 
   523 
   482  	CleanupStack::Pop(result); 	
   524  	CleanupStack::Pop(result); 	
   483  	delete result;    
   525  	delete result;    
   484     }
   526     }
   485 
   527 
   486 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test6_32L(  )
   528 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test6_ThirtyTwoL(  )
   487     {
   529     {
   488  	EUNIT_ASSERT_SPECIFIC_LEAVE(  iAuthenticator->AuthenticateL(32, *iRFC2202_Test6_Key_640bits, 
   530  	EUNIT_ASSERT_SPECIFIC_LEAVE(  iAuthenticator->AuthenticateL(32, *iRFC2202_Test6_Key_640bits, 
   489  	                                         *iRFC2202_Test6_Data_54bits,
   531  	                                         *iRFC2202_Test6_Data_54bits,
   490  	                                         KNullDesC8), KErrArgument);
   532  	                                         KNullDesC8), KErrArgument);
   491 
   533 
   492     }
   534     }
   493 
   535 
   494 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test7_80L(  )
   536 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test7_EightyL(  )
   495     {
   537     {
   496  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test7_Key_640bits, 
   538  	HBufC8* result = iAuthenticator->AuthenticateL(80, *iRFC2202_Test7_Key_640bits, 
   497  	                                         *iRFC2202_Test7_Data_73bits,
   539  	                                         *iRFC2202_Test7_Data_73bits,
   498  	                                         KNullDesC8);
   540  	                                         KNullDesC8);
   499 
   541 
   503 
   545 
   504  	CleanupStack::Pop(result); 	
   546  	CleanupStack::Pop(result); 	
   505  	delete result;    
   547  	delete result;    
   506     }
   548     }
   507 
   549 
   508 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test7_32L(  )
   550 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_RFC2202_Test7_ThirtyTwoL(  )
   509     {
   551     {
   510  	EUNIT_ASSERT_SPECIFIC_LEAVE(  iAuthenticator->AuthenticateL(32, *iRFC2202_Test7_Key_640bits, 
   552  	EUNIT_ASSERT_SPECIFIC_LEAVE(  iAuthenticator->AuthenticateL(32, *iRFC2202_Test7_Key_640bits, 
   511  	                                         *iRFC2202_Test7_Data_73bits,
   553  	                                         *iRFC2202_Test7_Data_73bits,
   512  	                                         KNullDesC8), KErrArgument);
   554  	                                         KNullDesC8), KErrArgument);
   513 
   555 
   514     }
   556     }
   515 
   557 
   516 
   558 
   517 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_Test8_32L(  )
   559 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_Test8_ThirtyTwoL(  )
   518     {
   560     {
   519     TBuf8<20> buf; 
   561     TBuf8<20> buf; 
   520     TBuf8<19> buf2;
   562     TBuf8<19> buf2;
   521     TBuf8<4> buf3;
   563     TBuf8<4> buf3;
   522     TUint8* temp = const_cast<TUint8*>( iTest8_Data_168bits->Des().Ptr() );
   564     TUint8* temp = const_cast<TUint8*>( iTest8_Data_168bits->Des().Ptr() );
   591  	CleanupStack::PopAndDestroy(result); 	
   633  	CleanupStack::PopAndDestroy(result); 	
   592  	}
   634  	}
   593 
   635 
   594 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_Test_KeyChangedL()
   636 void UT_CSrtpAuthentication_RCC::UT_AuthenticateL_Test_KeyChangedL()
   595 {
   637 {
   596     UT_AuthenticateL_RFC2202_Test2_80L();
   638     UT_AuthenticateL_RFC2202_Test2_EightyL();
   597     UT_AuthenticateL_RFC2202_Test3_80L();
   639     UT_AuthenticateL_RFC2202_Test3_EightyL();
   598 }
   640 }
   599 
   641 
   600 void UT_CSrtpAuthentication_RCC::Hex(HBufC8& aString)
   642 void UT_CSrtpAuthentication_RCC::Hex(HBufC8& aString)
   601 {
   643 {
   602     TPtr8 ptr=aString.Des();
   644     TPtr8 ptr=aString.Des();
   628 EUNIT_TEST(
   670 EUNIT_TEST(
   629     "AuthenticateL - 1 80 bits",
   671     "AuthenticateL - 1 80 bits",
   630     "CSrtpAuthentication_RCC",
   672     "CSrtpAuthentication_RCC",
   631     "AuthenticateL",
   673     "AuthenticateL",
   632     "FUNCTIONALITY",
   674     "FUNCTIONALITY",
   633     SetupL, UT_AuthenticateL_RFC2202_Test1_80L, Teardown)
   675     SetupL, UT_AuthenticateL_RFC2202_Test1_EightyL, Teardown)
   634 
   676 
   635 EUNIT_TEST(
   677 EUNIT_TEST(
   636     "AuthenticateL - 1 32 bits",
   678     "AuthenticateL - 1 32 bits",
   637     "CSrtpAuthentication_RCC",
   679     "CSrtpAuthentication_RCC",
   638     "AuthenticateL",
   680     "AuthenticateL",
   639     "FUNCTIONALITY",
   681     "FUNCTIONALITY",
   640     SetupL, UT_AuthenticateL_RFC2202_Test1_32L, Teardown)
   682     SetupL, UT_AuthenticateL_RFC2202_Test1_ThirtyTwoL, Teardown)
   641 
   683 
   642 EUNIT_TEST(
   684 EUNIT_TEST(
   643     "AuthenticateL - 2 80 bits",
   685     "AuthenticateL - 2 80 bits",
   644     "CSrtpAuthentication_RCC",
   686     "CSrtpAuthentication_RCC",
   645     "AuthenticateL",
   687     "AuthenticateL",
   646     "FUNCTIONALITY",
   688     "FUNCTIONALITY",
   647     SetupL, UT_AuthenticateL_RFC2202_Test2_80L, Teardown)
   689     SetupL, UT_AuthenticateL_RFC2202_Test2_EightyL, Teardown)
   648 
   690 
   649 EUNIT_TEST(
   691 EUNIT_TEST(
   650     "AuthenticateL - 2 32 bits",
   692     "AuthenticateL - 2 32 bits",
   651     "CSrtpAuthentication_RCC",
   693     "CSrtpAuthentication_RCC",
   652     "AuthenticateL",
   694     "AuthenticateL",
   653     "FUNCTIONALITY",
   695     "FUNCTIONALITY",
   654     SetupL, UT_AuthenticateL_RFC2202_Test2_32L, Teardown)
   696     SetupL, UT_AuthenticateL_RFC2202_Test2_ThirtyTwoL, Teardown)
   655 
   697 
   656 EUNIT_TEST(
   698 EUNIT_TEST(
   657     "AuthenticateL - 3 80 bits",
   699     "AuthenticateL - 3 80 bits",
   658     "CSrtpAuthentication_RCC",
   700     "CSrtpAuthentication_RCC",
   659     "AuthenticateL",
   701     "AuthenticateL",
   660     "FUNCTIONALITY",
   702     "FUNCTIONALITY",
   661     SetupL, UT_AuthenticateL_RFC2202_Test3_80L, Teardown)
   703     SetupL, UT_AuthenticateL_RFC2202_Test3_EightyL, Teardown)
   662 
   704 
   663 EUNIT_TEST(
   705 EUNIT_TEST(
   664     "AuthenticateL - 3 32 bits",
   706     "AuthenticateL - 3 32 bits",
   665     "CSrtpAuthentication_RCC",
   707     "CSrtpAuthentication_RCC",
   666     "AuthenticateL",
   708     "AuthenticateL",
   667     "FUNCTIONALITY",
   709     "FUNCTIONALITY",
   668     SetupL, UT_AuthenticateL_RFC2202_Test3_32L, Teardown)
   710     SetupL, UT_AuthenticateL_RFC2202_Test3_ThirtyTwoL, Teardown)
   669 
   711 
   670 EUNIT_TEST(
   712 EUNIT_TEST(
   671     "AuthenticateL - 4 80 bits",
   713     "AuthenticateL - 4 80 bits",
   672     "CSrtpAuthentication_RCC",
   714     "CSrtpAuthentication_RCC",
   673     "AuthenticateL",
   715     "AuthenticateL",
   674     "FUNCTIONALITY",
   716     "FUNCTIONALITY",
   675     SetupL, UT_AuthenticateL_RFC2202_Test4_80L, Teardown)
   717     SetupL, UT_AuthenticateL_RFC2202_Test4_EightyL, Teardown)
   676 
   718 
   677 EUNIT_TEST(
   719 EUNIT_TEST(
   678     "AuthenticateL - 4 32 bits",
   720     "AuthenticateL - 4 32 bits",
   679     "CSrtpAuthentication_RCC",
   721     "CSrtpAuthentication_RCC",
   680     "AuthenticateL",
   722     "AuthenticateL",
   681     "FUNCTIONALITY",
   723     "FUNCTIONALITY",
   682     SetupL, UT_AuthenticateL_RFC2202_Test4_32L, Teardown)
   724     SetupL, UT_AuthenticateL_RFC2202_Test4_ThirtyTwoL, Teardown)
   683 
   725 
   684 EUNIT_TEST(
   726 EUNIT_TEST(
   685     "AuthenticateL - 5 80 bits",
   727     "AuthenticateL - 5 80 bits",
   686     "CSrtpAuthentication_RCC",
   728     "CSrtpAuthentication_RCC",
   687     "AuthenticateL",
   729     "AuthenticateL",
   688     "FUNCTIONALITY",
   730     "FUNCTIONALITY",
   689     SetupL, UT_AuthenticateL_RFC2202_Test5_80L, Teardown)
   731     SetupL, UT_AuthenticateL_RFC2202_Test5_EightyL, Teardown)
   690 
   732 
   691 EUNIT_TEST(
   733 EUNIT_TEST(
   692     "AuthenticateL - 5 32 bits",
   734     "AuthenticateL - 5 32 bits",
   693     "CSrtpAuthentication_RCC",
   735     "CSrtpAuthentication_RCC",
   694     "AuthenticateL",
   736     "AuthenticateL",
   695     "FUNCTIONALITY",
   737     "FUNCTIONALITY",
   696     SetupL, UT_AuthenticateL_RFC2202_Test5_32L, Teardown)
   738     SetupL, UT_AuthenticateL_RFC2202_Test5_ThirtyTwoL, Teardown)
   697 
   739 
   698 EUNIT_TEST(
   740 EUNIT_TEST(
   699     "AuthenticateL - 6 80 bits",
   741     "AuthenticateL - 6 80 bits",
   700     "CSrtpAuthentication_RCC",
   742     "CSrtpAuthentication_RCC",
   701     "AuthenticateL",
   743     "AuthenticateL",
   702     "FUNCTIONALITY",
   744     "FUNCTIONALITY",
   703     SetupL, UT_AuthenticateL_RFC2202_Test6_80L, Teardown)
   745     SetupL, UT_AuthenticateL_RFC2202_Test6_EightyL, Teardown)
   704 
   746 
   705 EUNIT_TEST(
   747 EUNIT_TEST(
   706     "AuthenticateL - 6 32 bits",
   748     "AuthenticateL - 6 32 bits",
   707     "CSrtpAuthentication_RCC",
   749     "CSrtpAuthentication_RCC",
   708     "AuthenticateL",
   750     "AuthenticateL",
   709     "FUNCTIONALITY",
   751     "FUNCTIONALITY",
   710     SetupL, UT_AuthenticateL_RFC2202_Test6_32L, Teardown)
   752     SetupL, UT_AuthenticateL_RFC2202_Test6_ThirtyTwoL, Teardown)
   711 
   753 
   712 EUNIT_TEST(
   754 EUNIT_TEST(
   713     "AuthenticateL - 7 80 bits",
   755     "AuthenticateL - 7 80 bits",
   714     "CSrtpAuthentication_RCC",
   756     "CSrtpAuthentication_RCC",
   715     "AuthenticateL",
   757     "AuthenticateL",
   716     "FUNCTIONALITY",
   758     "FUNCTIONALITY",
   717     SetupL, UT_AuthenticateL_RFC2202_Test7_80L, Teardown)
   759     SetupL, UT_AuthenticateL_RFC2202_Test7_EightyL, Teardown)
   718 
   760 
   719 EUNIT_TEST(
   761 EUNIT_TEST(
   720     "AuthenticateL - 7 32 bits",
   762     "AuthenticateL - 7 32 bits",
   721     "CSrtpAuthentication_RCC",
   763     "CSrtpAuthentication_RCC",
   722     "AuthenticateL",
   764     "AuthenticateL",
   723     "FUNCTIONALITY",
   765     "FUNCTIONALITY",
   724     SetupL, UT_AuthenticateL_RFC2202_Test7_32L, Teardown)
   766     SetupL, UT_AuthenticateL_RFC2202_Test7_ThirtyTwoL, Teardown)
   725 EUNIT_TEST(
   767 EUNIT_TEST(
   726     "AuthenticateL - RealPacket",
   768     "AuthenticateL - RealPacket",
   727     "CSrtpAuthentication_RCC",
   769     "CSrtpAuthentication_RCC",
   728     "AuthenticateL with Real Packet",
   770     "AuthenticateL with Real Packet",
   729     "FUNCTIONALITY",
   771     "FUNCTIONALITY",
   730     SetupL, UT_AuthenticateL_Test8_32L, Teardown)
   772     SetupL, UT_AuthenticateL_Test8_ThirtyTwoL, Teardown)
   731   
   773   
   732 EUNIT_TEST(
   774 EUNIT_TEST(
   733     "AuthenticateL - KeyChanged",
   775     "AuthenticateL - KeyChanged",
   734     "CSrtpAuthentication_RCC",
   776     "CSrtpAuthentication_RCC",
   735     "AuthenticateL",
   777     "AuthenticateL",