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