Lines Matching refs:pImpl
139 Digest_Impl *pImpl = (Digest_Impl *)Digest; in rtl_digest_queryAlgorithm() local
140 if (pImpl) in rtl_digest_queryAlgorithm()
141 return pImpl->m_algorithm; in rtl_digest_queryAlgorithm()
151 Digest_Impl *pImpl = (Digest_Impl *)Digest; in rtl_digest_queryLength() local
152 if (pImpl) in rtl_digest_queryLength()
153 return pImpl->m_length; in rtl_digest_queryLength()
164 Digest_Impl *pImpl = (Digest_Impl *)Digest; in rtl_digest_init() local
165 if (pImpl) in rtl_digest_init()
167 if (pImpl->m_init) in rtl_digest_init()
168 return pImpl->m_init (Digest, pData, nDatLen); in rtl_digest_init()
181 Digest_Impl *pImpl = (Digest_Impl *)Digest; in rtl_digest_update() local
182 if (pImpl && pImpl->m_update) in rtl_digest_update()
183 return pImpl->m_update (Digest, pData, nDatLen); in rtl_digest_update()
194 Digest_Impl *pImpl = (Digest_Impl *)Digest; in rtl_digest_get() local
195 if (pImpl && pImpl->m_get) in rtl_digest_get()
196 return pImpl->m_get (Digest, pBuffer, nBufLen); in rtl_digest_get()
206 Digest_Impl *pImpl = (Digest_Impl *)Digest; in rtl_digest_destroy() local
207 if (pImpl && pImpl->m_delete) in rtl_digest_destroy()
208 pImpl->m_delete (Digest); in rtl_digest_destroy()
393 DigestMD2_Impl *pImpl = (DigestMD2_Impl*)NULL; in rtl_digest_createMD2() local
394 pImpl = RTL_DIGEST_CREATE(DigestMD2_Impl); in rtl_digest_createMD2()
395 if (pImpl) in rtl_digest_createMD2()
397 pImpl->m_digest = __rtl_digest_MD2; in rtl_digest_createMD2()
398 __rtl_digest_initMD2 (&(pImpl->m_context)); in rtl_digest_createMD2()
400 return ((rtlDigest)pImpl); in rtl_digest_createMD2()
409 DigestMD2_Impl *pImpl = (DigestMD2_Impl *)Digest; in rtl_digest_updateMD2() local
414 if ((pImpl == NULL) || (pData == NULL)) in rtl_digest_updateMD2()
417 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD2)) in rtl_digest_updateMD2()
423 ctx = &(pImpl->m_context); in rtl_digest_updateMD2()
467 DigestMD2_Impl *pImpl = (DigestMD2_Impl *)Digest; in rtl_digest_getMD2() local
472 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_getMD2()
475 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD2)) in rtl_digest_getMD2()
478 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_getMD2()
481 ctx = &(pImpl->m_context); in rtl_digest_getMD2()
496 DigestMD2_Impl *pImpl = (DigestMD2_Impl *)Digest; in rtl_digest_destroyMD2() local
497 if (pImpl) in rtl_digest_destroyMD2()
499 if (pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD2) in rtl_digest_destroyMD2()
500 rtl_freeZeroMemory (pImpl, sizeof (DigestMD2_Impl)); in rtl_digest_destroyMD2()
502 rtl_freeMemory (pImpl); in rtl_digest_destroyMD2()
758 DigestMD5_Impl *pImpl = (DigestMD5_Impl*)NULL; in rtl_digest_createMD5() local
759 pImpl = RTL_DIGEST_CREATE(DigestMD5_Impl); in rtl_digest_createMD5()
760 if (pImpl) in rtl_digest_createMD5()
762 pImpl->m_digest = __rtl_digest_MD5; in rtl_digest_createMD5()
763 __rtl_digest_initMD5 (&(pImpl->m_context)); in rtl_digest_createMD5()
765 return ((rtlDigest)pImpl); in rtl_digest_createMD5()
774 DigestMD5_Impl *pImpl = (DigestMD5_Impl *)Digest; in rtl_digest_updateMD5() local
780 if ((pImpl == NULL) || (pData == NULL)) in rtl_digest_updateMD5()
783 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD5)) in rtl_digest_updateMD5()
789 ctx = &(pImpl->m_context); in rtl_digest_updateMD5()
846 DigestMD5_Impl *pImpl = (DigestMD5_Impl *)Digest; in rtl_digest_getMD5() local
851 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_getMD5()
854 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD5)) in rtl_digest_getMD5()
857 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_getMD5()
860 ctx = &(pImpl->m_context); in rtl_digest_getMD5()
878 DigestMD5_Impl *pImpl = (DigestMD5_Impl *)Digest; in rtl_digest_rawMD5() local
883 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_rawMD5()
886 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD5)) in rtl_digest_rawMD5()
889 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_rawMD5()
892 ctx = &(pImpl->m_context); in rtl_digest_rawMD5()
909 DigestMD5_Impl *pImpl = (DigestMD5_Impl *)Digest; in rtl_digest_destroyMD5() local
910 if (pImpl) in rtl_digest_destroyMD5()
912 if (pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmMD5) in rtl_digest_destroyMD5()
913 rtl_freeZeroMemory (pImpl, sizeof (DigestMD5_Impl)); in rtl_digest_destroyMD5()
915 rtl_freeMemory (pImpl); in rtl_digest_destroyMD5()
1235 DigestSHA_Impl *pImpl = (DigestSHA_Impl*)NULL; in rtl_digest_createSHA() local
1236 pImpl = RTL_DIGEST_CREATE(DigestSHA_Impl); in rtl_digest_createSHA()
1237 if (pImpl) in rtl_digest_createSHA()
1239 pImpl->m_digest = __rtl_digest_SHA_0; in rtl_digest_createSHA()
1240 __rtl_digest_initSHA (&(pImpl->m_context), __rtl_digest_updateSHA_0); in rtl_digest_createSHA()
1242 return ((rtlDigest)pImpl); in rtl_digest_createSHA()
1251 DigestSHA_Impl *pImpl = (DigestSHA_Impl *)Digest; in rtl_digest_updateSHA() local
1257 if ((pImpl == NULL) || (pData == NULL)) in rtl_digest_updateSHA()
1260 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA)) in rtl_digest_updateSHA()
1266 ctx = &(pImpl->m_context); in rtl_digest_updateSHA()
1323 DigestSHA_Impl *pImpl = (DigestSHA_Impl *)Digest; in rtl_digest_getSHA() local
1328 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_getSHA()
1331 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA)) in rtl_digest_getSHA()
1334 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_getSHA()
1337 ctx = &(pImpl->m_context); in rtl_digest_getSHA()
1355 DigestSHA_Impl *pImpl = (DigestSHA_Impl *)Digest; in rtl_digest_destroySHA() local
1356 if (pImpl) in rtl_digest_destroySHA()
1358 if (pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA) in rtl_digest_destroySHA()
1359 rtl_freeZeroMemory (pImpl, sizeof (DigestSHA_Impl)); in rtl_digest_destroySHA()
1361 rtl_freeMemory (pImpl); in rtl_digest_destroySHA()
1423 DigestSHA_Impl *pImpl = (DigestSHA_Impl*)NULL; in rtl_digest_createSHA1() local
1424 pImpl = RTL_DIGEST_CREATE(DigestSHA_Impl); in rtl_digest_createSHA1()
1425 if (pImpl) in rtl_digest_createSHA1()
1427 pImpl->m_digest = __rtl_digest_SHA_1; in rtl_digest_createSHA1()
1428 __rtl_digest_initSHA (&(pImpl->m_context), __rtl_digest_updateSHA_1); in rtl_digest_createSHA1()
1430 return ((rtlDigest)pImpl); in rtl_digest_createSHA1()
1439 DigestSHA_Impl *pImpl = (DigestSHA_Impl *)Digest; in rtl_digest_updateSHA1() local
1445 if ((pImpl == NULL) || (pData == NULL)) in rtl_digest_updateSHA1()
1448 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA1)) in rtl_digest_updateSHA1()
1454 ctx = &(pImpl->m_context); in rtl_digest_updateSHA1()
1511 DigestSHA_Impl *pImpl = (DigestSHA_Impl *)Digest; in rtl_digest_getSHA1() local
1516 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_getSHA1()
1519 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA1)) in rtl_digest_getSHA1()
1522 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_getSHA1()
1525 ctx = &(pImpl->m_context); in rtl_digest_getSHA1()
1543 DigestSHA_Impl *pImpl = (DigestSHA_Impl *)Digest; in rtl_digest_destroySHA1() local
1544 if (pImpl) in rtl_digest_destroySHA1()
1546 if (pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmSHA1) in rtl_digest_destroySHA1()
1547 rtl_freeZeroMemory (pImpl, sizeof (DigestSHA_Impl)); in rtl_digest_destroySHA1()
1549 rtl_freeMemory (pImpl); in rtl_digest_destroySHA1()
1595 DigestMD5_Impl *pImpl = &(ctx->m_hash); in __rtl_digest_initHMAC_MD5() local
1597 pImpl->m_digest = __rtl_digest_MD5; in __rtl_digest_initHMAC_MD5()
1598 __rtl_digest_initMD5 (&(pImpl->m_context)); in __rtl_digest_initHMAC_MD5()
1664 DigestHMAC_MD5_Impl *pImpl = (DigestHMAC_MD5_Impl*)NULL; in rtl_digest_createHMAC_MD5() local
1665 pImpl = RTL_DIGEST_CREATE(DigestHMAC_MD5_Impl); in rtl_digest_createHMAC_MD5()
1666 if (pImpl) in rtl_digest_createHMAC_MD5()
1668 pImpl->m_digest = __rtl_digest_HMAC_MD5; in rtl_digest_createHMAC_MD5()
1669 __rtl_digest_initHMAC_MD5 (&(pImpl->m_context)); in rtl_digest_createHMAC_MD5()
1671 return ((rtlDigest)pImpl); in rtl_digest_createHMAC_MD5()
1680 DigestHMAC_MD5_Impl *pImpl = (DigestHMAC_MD5_Impl*)Digest; in rtl_digest_initHMAC_MD5() local
1683 if ((pImpl == NULL) || (pKeyData == NULL)) in rtl_digest_initHMAC_MD5()
1686 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_MD5)) in rtl_digest_initHMAC_MD5()
1689 ctx = &(pImpl->m_context); in rtl_digest_initHMAC_MD5()
1718 DigestHMAC_MD5_Impl *pImpl = (DigestHMAC_MD5_Impl*)Digest; in rtl_digest_updateHMAC_MD5() local
1721 if ((pImpl == NULL) || (pData == NULL)) in rtl_digest_updateHMAC_MD5()
1724 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_MD5)) in rtl_digest_updateHMAC_MD5()
1727 ctx = &(pImpl->m_context); in rtl_digest_updateHMAC_MD5()
1739 DigestHMAC_MD5_Impl *pImpl = (DigestHMAC_MD5_Impl*)Digest; in rtl_digest_getHMAC_MD5() local
1742 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_getHMAC_MD5()
1745 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_MD5)) in rtl_digest_getHMAC_MD5()
1748 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_getHMAC_MD5()
1751 nBufLen = pImpl->m_digest.m_length; in rtl_digest_getHMAC_MD5()
1753 ctx = &(pImpl->m_context); in rtl_digest_getHMAC_MD5()
1772 DigestHMAC_MD5_Impl *pImpl = (DigestHMAC_MD5_Impl*)Digest; in rtl_digest_destroyHMAC_MD5() local
1773 if (pImpl) in rtl_digest_destroyHMAC_MD5()
1775 if (pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_MD5) in rtl_digest_destroyHMAC_MD5()
1776 rtl_freeZeroMemory (pImpl, sizeof (DigestHMAC_MD5_Impl)); in rtl_digest_destroyHMAC_MD5()
1778 rtl_freeMemory (pImpl); in rtl_digest_destroyHMAC_MD5()
1824 DigestSHA_Impl *pImpl = &(ctx->m_hash); in __rtl_digest_initHMAC_SHA1() local
1826 pImpl->m_digest = __rtl_digest_SHA_1; in __rtl_digest_initHMAC_SHA1()
1827 __rtl_digest_initSHA (&(pImpl->m_context), __rtl_digest_updateSHA_1); in __rtl_digest_initHMAC_SHA1()
1893 DigestHMAC_SHA1_Impl *pImpl = (DigestHMAC_SHA1_Impl*)NULL; in rtl_digest_createHMAC_SHA1() local
1894 pImpl = RTL_DIGEST_CREATE(DigestHMAC_SHA1_Impl); in rtl_digest_createHMAC_SHA1()
1895 if (pImpl) in rtl_digest_createHMAC_SHA1()
1897 pImpl->m_digest = __rtl_digest_HMAC_SHA1; in rtl_digest_createHMAC_SHA1()
1898 __rtl_digest_initHMAC_SHA1 (&(pImpl->m_context)); in rtl_digest_createHMAC_SHA1()
1900 return ((rtlDigest)pImpl); in rtl_digest_createHMAC_SHA1()
1909 DigestHMAC_SHA1_Impl *pImpl = (DigestHMAC_SHA1_Impl*)Digest; in rtl_digest_initHMAC_SHA1() local
1912 if ((pImpl == NULL) || (pKeyData == NULL)) in rtl_digest_initHMAC_SHA1()
1915 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_SHA1)) in rtl_digest_initHMAC_SHA1()
1918 ctx = &(pImpl->m_context); in rtl_digest_initHMAC_SHA1()
1947 DigestHMAC_SHA1_Impl *pImpl = (DigestHMAC_SHA1_Impl*)Digest; in rtl_digest_updateHMAC_SHA1() local
1950 if ((pImpl == NULL) || (pData == NULL)) in rtl_digest_updateHMAC_SHA1()
1953 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_SHA1)) in rtl_digest_updateHMAC_SHA1()
1956 ctx = &(pImpl->m_context); in rtl_digest_updateHMAC_SHA1()
1968 DigestHMAC_SHA1_Impl *pImpl = (DigestHMAC_SHA1_Impl*)Digest; in rtl_digest_getHMAC_SHA1() local
1971 if ((pImpl == NULL) || (pBuffer == NULL)) in rtl_digest_getHMAC_SHA1()
1974 if (!(pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_SHA1)) in rtl_digest_getHMAC_SHA1()
1977 if (!(pImpl->m_digest.m_length <= nBufLen)) in rtl_digest_getHMAC_SHA1()
1980 nBufLen = pImpl->m_digest.m_length; in rtl_digest_getHMAC_SHA1()
1982 ctx = &(pImpl->m_context); in rtl_digest_getHMAC_SHA1()
2001 DigestHMAC_SHA1_Impl *pImpl = (DigestHMAC_SHA1_Impl*)Digest; in rtl_digest_destroyHMAC_SHA1() local
2002 if (pImpl) in rtl_digest_destroyHMAC_SHA1()
2004 if (pImpl->m_digest.m_algorithm == rtl_Digest_AlgorithmHMAC_SHA1) in rtl_digest_destroyHMAC_SHA1()
2005 rtl_freeZeroMemory (pImpl, sizeof (DigestHMAC_SHA1_Impl)); in rtl_digest_destroyHMAC_SHA1()
2007 rtl_freeMemory (pImpl); in rtl_digest_destroyHMAC_SHA1()