Lines Matching refs:handle
41 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in CreateMD5FromString() local
42 if ( handle != NULL ) 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()
95 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in TEST_F() local
96 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmMD5"; in TEST_F()
97 rtl_digest_destroy( handle ); in TEST_F()
101 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in TEST_F() local
102 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmMD2"; in TEST_F()
103 rtl_digest_destroy( handle ); in TEST_F()
107 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in TEST_F() local
108 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmSHA"; in TEST_F()
109 rtl_digest_destroy( handle ); in TEST_F()
113 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in TEST_F() local
114 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmSHA1"; in TEST_F()
115 rtl_digest_destroy( handle ); in TEST_F()
119 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in TEST_F() local
120 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmHMAC_MD5"; in TEST_F()
121 rtl_digest_destroy( handle ); in TEST_F()
125 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in TEST_F() local
126 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmHMAC_SHA1"; in TEST_F()
127 rtl_digest_destroy( handle ); in TEST_F()
131 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmInvalid ); in TEST_F() local
132 printf("Handle is %p\n", handle); in TEST_F()
133 ASSERT_TRUE(handle == 0) << "create with NULL"; in TEST_F()
134 rtl_digest_destroy( handle ); in TEST_F()
156 rtlDigest handle = rtl_digest_createMD5(); in TEST_F() local
158 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
161 rtl_digest_destroy( handle ); in TEST_F()
182 rtlDigest handle = rtl_digest_createMD2( ); in TEST_F() local
184 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
187 rtl_digest_destroy( handle ); in TEST_F()
207 rtlDigest handle = rtl_digest_createSHA( ); in TEST_F() local
209 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
212 rtl_digest_destroy( handle ); in TEST_F()
232 rtlDigest handle = rtl_digest_createSHA1(); in TEST_F() local
234 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
237 rtl_digest_destroy( handle ); in TEST_F()
257 rtlDigest handle = rtl_digest_createHMAC_MD5(); in TEST_F() local
259 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
262 rtl_digest_destroy( handle ); in TEST_F()
282 rtlDigest handle = rtl_digest_createHMAC_SHA1(); in TEST_F() local
284 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
287 rtl_digest_destroy( handle ); in TEST_F()
307 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in TEST_F() local
309 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
312 rtl_digest_destroy( handle ); in TEST_F()
316 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in TEST_F() local
318 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
321 rtl_digest_destroy( handle ); in TEST_F()
325 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in TEST_F() local
327 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
330 rtl_digest_destroy( handle ); in TEST_F()
334 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in TEST_F() local
336 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
339 rtl_digest_destroy( handle ); in TEST_F()
343 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in TEST_F() local
345 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
348 rtl_digest_destroy( handle ); in TEST_F()
352 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in TEST_F() local
354 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
357 rtl_digest_destroy( handle ); in TEST_F()
361 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmInvalid ); in TEST_F() local
363 rtlDigestAlgorithm aAlgo = rtl_digest_queryAlgorithm(handle); in TEST_F()
366 rtl_digest_destroy( handle ); in TEST_F()
386 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in TEST_F() local
388 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
392 rtl_digest_destroy( handle ); in TEST_F()
396 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in TEST_F() local
398 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
402 rtl_digest_destroy( handle ); in TEST_F()
406 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in TEST_F() local
408 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
412 rtl_digest_destroy( handle ); in TEST_F()
416 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in TEST_F() local
418 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
422 rtl_digest_destroy( handle ); in TEST_F()
426 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in TEST_F() local
428 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
432 rtl_digest_destroy( handle ); in TEST_F()
436 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in TEST_F() local
438 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
442 rtl_digest_destroy( handle ); in TEST_F()
447 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmInvalid ); in TEST_F() local
449 sal_uInt32 nAlgoLength = rtl_digest_queryLength(handle); in TEST_F()
453 rtl_digest_destroy( handle ); in TEST_F()
492 rtlDigest handle = NULL; in TEST_F() local
494 rtlDigestError aError = rtl_digest_init(handle, NULL, 0); in TEST_F()
501 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in TEST_F() local
503 rtlDigestError aError = rtl_digest_init(handle, NULL, 0); in TEST_F()
507 rtl_digest_destroy( handle ); in TEST_F()
513 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); in TEST_F() local
519 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in TEST_F()
523 rtl_digest_update( handle, pData, nSize ); in TEST_F()
525 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in TEST_F()
528 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in TEST_F()
536 rtl_digest_destroy( handle ); in TEST_F()
541 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in TEST_F() local
547 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in TEST_F()
551 rtl_digest_update( handle, pData, nSize ); in TEST_F()
553 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in TEST_F()
556 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in TEST_F()
564 rtl_digest_destroy( handle ); in TEST_F()
569 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA ); in TEST_F() local
575 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in TEST_F()
579 rtl_digest_update( handle, pData, nSize ); in TEST_F()
581 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in TEST_F()
584 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in TEST_F()
592 rtl_digest_destroy( handle ); in TEST_F()
596 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmSHA1 ); in TEST_F() local
602 rtlDigestError aError = rtl_digest_init(handle, pData, nSize); in TEST_F()
606 rtl_digest_update( handle, pData, nSize ); in TEST_F()
608 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in TEST_F()
611 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in TEST_F()
619 rtl_digest_destroy( handle ); in TEST_F()
623 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_MD5 ); in TEST_F() local
629 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in TEST_F()
636 rtlDigestError aError = rtl_digest_init(handle, pKeyBuffer, nKeyLen ); in TEST_F()
640 rtl_digest_update( handle, pData, nSize ); in TEST_F()
642 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in TEST_F()
650 rtl_digest_destroy( handle ); in TEST_F()
654 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmHMAC_SHA1 ); in TEST_F() local
660 sal_uInt32 nKeyLen = rtl_digest_queryLength( handle ); in TEST_F()
667 rtlDigestError aError = rtl_digest_init(handle, pKeyBuffer, nKeyLen ); in TEST_F()
671 rtl_digest_update( handle, pData, nSize ); in TEST_F()
673 rtl_digest_get( handle, pKeyBuffer, nKeyLen ); in TEST_F()
681 rtl_digest_destroy( handle ); in TEST_F()
687 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in getMD5Sum() local
692 rtl_digest_init(handle, pData, nSize); in getMD5Sum()
693 rtl_digest_update( handle, pData, nSize ); in getMD5Sum()
695 sal_uInt32 nMD5KeyLen = rtl_digest_queryLength( handle ); in getMD5Sum()
698 rtl_digest_get( handle, pMD5KeyBuffer, nMD5KeyLen ); in getMD5Sum()
702 rtl_digest_destroy( handle ); in getMD5Sum()
1231 rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD5 ); in TEST_F() local
1232 ASSERT_TRUE(handle != 0) << "create with rtl_Digest_AlgorithmMD5"; in TEST_F()
1236 rtl_digest_destroy( handle ); in TEST_F()