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