Lines Matching refs:handle

41 	rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 );  in CreateMD5FromString()  local
42 if ( handle > 0 ) in CreateMD5FromString()
46 sal_uInt32 nMD5KeyLen = rtl_digest_queryLength( handle ); in CreateMD5FromString()
49 rtl_digest_init( handle, pData, nSize ); in CreateMD5FromString()
50 rtl_digest_update( handle, pData, nSize ); in CreateMD5FromString()
51 rtl_digest_get( handle, pMD5KeyBuffer, nMD5KeyLen ); in CreateMD5FromString()
52 rtl_digest_destroy( handle ); in CreateMD5FromString()
94 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in create_001() local
95 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmMD5", handle != 0); in create_001()
96 rtl_digest_destroy( handle ); in create_001()
100 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in create_002() local
101 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmMD2", handle != 0); in create_002()
102 rtl_digest_destroy( handle ); in create_002()
106 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in create_003() local
107 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmSHA", handle != 0); in create_003()
108 rtl_digest_destroy( handle ); in create_003()
112 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in create_004() local
113 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmSHA1", handle != 0); in create_004()
114 rtl_digest_destroy( handle ); in create_004()
118 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in create_005() local
119 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmHMAC_MD5", handle != 0); in create_005()
120 rtl_digest_destroy( handle ); in create_005()
124 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in create_006() local
125 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmHMAC_SHA1", handle != 0); in create_006()
126 rtl_digest_destroy( handle ); in create_006()
131 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmInvalid ); in create_007() local
132 t_print("Handle is %x\n", handle); in create_007()
133 CPPUNIT_ASSERT_MESSAGE("create with NULL", handle == 0); in create_007()
134 rtl_digest_destroy( handle ); in create_007()
171 rtlDigest handle = rtl_digest_createMD5(); in createMD5_001() local
173 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in createMD5_001()
176 rtl_digest_destroy( handle ); in createMD5_001()
200 rtlDigest handle = rtl_digest_createMD2( ); in createMD2_001() local
202 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in createMD2_001()
205 rtl_digest_destroy( handle ); in createMD2_001()
228 rtlDigest handle = rtl_digest_createSHA( ); in createSHA_001() local
230 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in createSHA_001()
233 rtl_digest_destroy( handle ); in createSHA_001()
255 rtlDigest handle = rtl_digest_createSHA1(); in createSHA1_001() local
257 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in createSHA1_001()
260 rtl_digest_destroy( handle ); in createSHA1_001()
282 rtlDigest handle = rtl_digest_createHMAC_MD5(); in createHMAC_MD5_001() local
284 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in createHMAC_MD5_001()
287 rtl_digest_destroy( handle ); in createHMAC_MD5_001()
309 rtlDigest handle = rtl_digest_createHMAC_SHA1(); in createHMAC_SHA1_001() local
311 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in createHMAC_SHA1_001()
314 rtl_digest_destroy( handle ); in createHMAC_SHA1_001()
339 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in query_001() local
341 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_001()
344 rtl_digest_destroy( handle ); in query_001()
348 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in query_002() local
350 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_002()
353 rtl_digest_destroy( handle ); in query_002()
357 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in query_003() local
359 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_003()
362 rtl_digest_destroy( handle ); in query_003()
366 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in query_004() local
368 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_004()
371 rtl_digest_destroy( handle ); in query_004()
375 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in query_005() local
377 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_005()
380 rtl_digest_destroy( handle ); in query_005()
384 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in query_006() local
386 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_006()
389 rtl_digest_destroy( handle ); in query_006()
393 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmInvalid ); in query_007() local
395 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in query_007()
398 rtl_digest_destroy( handle ); in query_007()
432 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in queryLength_MD5() local
434 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_MD5()
438 rtl_digest_destroy( handle ); in queryLength_MD5()
442 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in queryLength_MD2() local
444 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_MD2()
448 rtl_digest_destroy( handle ); in queryLength_MD2()
452 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in queryLength_SHA() local
454 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_SHA()
458 rtl_digest_destroy( handle ); in queryLength_SHA()
462 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in queryLength_SHA1() local
464 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_SHA1()
468 rtl_digest_destroy( handle ); in queryLength_SHA1()
472 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in queryLength_HMAC_MD5() local
474 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_HMAC_MD5()
478 rtl_digest_destroy( handle ); in queryLength_HMAC_MD5()
482 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in queryLength_HMAC_SHA1() local
484 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_HMAC_SHA1()
488 rtl_digest_destroy( handle ); in queryLength_HMAC_SHA1()
493 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmInvalid ); in queryLength_Illegal() local
495 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in queryLength_Illegal()
499 rtl_digest_destroy( handle ); in queryLength_Illegal()
552 rtlDigest handle = NULL; in init_000() local
554 rtlDigestError aError = rtl_digest_init(handle, NULL, 0); in init_000()
561 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in init_001() local
563 rtlDigestError aError = rtl_digest_init(handle, NULL, 0); in init_001()
567 rtl_digest_destroy( handle ); in init_001()
573 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in init_MD2() local
579 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in init_MD2()
583 rtl_digest_update( handle, pData, nSize ); in init_MD2()
585 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in init_MD2()
588 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in init_MD2()
596 rtl_digest_destroy( handle ); in init_MD2()
601 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in init_MD5() local
607 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in init_MD5()
611 rtl_digest_update( handle, pData, nSize ); in init_MD5()
613 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in init_MD5()
616 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in init_MD5()
624 rtl_digest_destroy( handle ); in init_MD5()
629 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in init_SHA() local
635 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in init_SHA()
639 rtl_digest_update( handle, pData, nSize ); in init_SHA()
641 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in init_SHA()
644 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in init_SHA()
652 rtl_digest_destroy( handle ); in init_SHA()
656 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in init_SHA1() local
662 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in init_SHA1()
666 rtl_digest_update( handle, pData, nSize ); in init_SHA1()
668 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in init_SHA1()
671 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in init_SHA1()
679 rtl_digest_destroy( handle ); in init_SHA1()
683 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in init_HMAC_MD5() local
689 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in init_HMAC_MD5()
696 rtlDigestError aError = rtl_digest_init(handle, pKeyBuffer, nKeyLen ); in init_HMAC_MD5()
700 rtl_digest_update( handle, pData, nSize ); in init_HMAC_MD5()
702 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in init_HMAC_MD5()
710 rtl_digest_destroy( handle ); in init_HMAC_MD5()
714 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in init_HMAC_SHA1() local
720 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in init_HMAC_SHA1()
727 rtlDigestError aError = rtl_digest_init(handle, pKeyBuffer, nKeyLen ); in init_HMAC_SHA1()
731 rtl_digest_update( handle, pData, nSize ); in init_HMAC_SHA1()
733 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in init_HMAC_SHA1()
741 rtl_digest_destroy( handle ); in init_HMAC_SHA1()
765 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in getMD5Sum() local
770 rtl_digest_init(handle, pData, nSize); in getMD5Sum()
771 rtl_digest_update( handle, pData, nSize ); in getMD5Sum()
773 sal_uInt32 nMD5KeyLen = rtl_digest_queryLength( handle ); in getMD5Sum()
776 rtl_digest_get( handle, pMD5KeyBuffer, nMD5KeyLen ); in getMD5Sum()
780 rtl_digest_destroy( handle ); in getMD5Sum()
1396 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in destroy_001() local
1397 CPPUNIT_ASSERT_MESSAGE("create with rtl_Digest_AlgorithmMD5", handle != 0); in destroy_001()
1401 rtl_digest_destroy( handle ); in destroy_001()