Lines Matching refs:pImpl

146 	Cipher_Impl *pImpl = (Cipher_Impl*)Cipher;  in rtl_cipher_init()  local
147 if (pImpl == NULL) in rtl_cipher_init()
149 if (pImpl->m_init == NULL) in rtl_cipher_init()
152 return (pImpl->m_init)( in rtl_cipher_init()
164 Cipher_Impl *pImpl = (Cipher_Impl*)Cipher; in rtl_cipher_encode() local
165 if (pImpl == NULL) in rtl_cipher_encode()
167 if (pImpl->m_encode == NULL) in rtl_cipher_encode()
170 return (pImpl->m_encode)(Cipher, pData, nDatLen, pBuffer, nBufLen); in rtl_cipher_encode()
181 Cipher_Impl *pImpl = (Cipher_Impl*)Cipher; in rtl_cipher_decode() local
182 if (pImpl == NULL) in rtl_cipher_decode()
184 if (pImpl->m_decode == NULL) in rtl_cipher_decode()
187 return (pImpl->m_decode)(Cipher, pData, nDatLen, pBuffer, nBufLen); in rtl_cipher_decode()
195 Cipher_Impl *pImpl = (Cipher_Impl*)Cipher; in rtl_cipher_destroy() local
196 if (pImpl && pImpl->m_delete) in rtl_cipher_destroy()
197 pImpl->m_delete (Cipher); in rtl_cipher_destroy()
1018 CipherBF_Impl *pImpl = (CipherBF_Impl*)NULL; in rtl_cipher_createBF() local
1023 pImpl = ((CipherBF_Impl*)rtl_allocateZeroMemory (sizeof (CipherBF_Impl))); in rtl_cipher_createBF()
1024 if (pImpl) in rtl_cipher_createBF()
1026 pImpl->m_cipher.m_algorithm = rtl_Cipher_AlgorithmBF; in rtl_cipher_createBF()
1027 pImpl->m_cipher.m_direction = rtl_Cipher_DirectionInvalid; in rtl_cipher_createBF()
1028 pImpl->m_cipher.m_mode = Mode; in rtl_cipher_createBF()
1030 pImpl->m_cipher.m_init = rtl_cipher_initBF; in rtl_cipher_createBF()
1031 pImpl->m_cipher.m_encode = rtl_cipher_encodeBF; in rtl_cipher_createBF()
1032 pImpl->m_cipher.m_decode = rtl_cipher_decodeBF; in rtl_cipher_createBF()
1033 pImpl->m_cipher.m_delete = rtl_cipher_destroyBF; in rtl_cipher_createBF()
1035 return ((rtlCipher)pImpl); in rtl_cipher_createBF()
1047 CipherBF_Impl *pImpl = (CipherBF_Impl*)Cipher; in rtl_cipher_initBF() local
1049 if ((pImpl == NULL) || (pKeyData == NULL)) in rtl_cipher_initBF()
1052 if (!(pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmBF)) in rtl_cipher_initBF()
1056 pImpl->m_cipher.m_direction = Direction; in rtl_cipher_initBF()
1061 &(pImpl->m_context), pImpl->m_cipher.m_mode, in rtl_cipher_initBF()
1073 CipherBF_Impl *pImpl = (CipherBF_Impl*)Cipher; in rtl_cipher_encodeBF() local
1074 if (pImpl == NULL) in rtl_cipher_encodeBF()
1077 if (!(pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmBF)) in rtl_cipher_encodeBF()
1080 if (pImpl->m_cipher.m_direction == rtl_Cipher_DirectionInvalid) in rtl_cipher_encodeBF()
1082 if (pImpl->m_cipher.m_direction == rtl_Cipher_DirectionDecode) in rtl_cipher_encodeBF()
1086 &(pImpl->m_context), pImpl->m_cipher.m_mode, in rtl_cipher_encodeBF()
1099 CipherBF_Impl *pImpl = (CipherBF_Impl*)Cipher; in rtl_cipher_decodeBF() local
1100 if (pImpl == NULL) in rtl_cipher_decodeBF()
1103 if (!(pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmBF)) in rtl_cipher_decodeBF()
1106 if (pImpl->m_cipher.m_direction == rtl_Cipher_DirectionInvalid) in rtl_cipher_decodeBF()
1108 if (pImpl->m_cipher.m_direction == rtl_Cipher_DirectionEncode) in rtl_cipher_decodeBF()
1112 &(pImpl->m_context), pImpl->m_cipher.m_mode, in rtl_cipher_decodeBF()
1122 CipherBF_Impl *pImpl = (CipherBF_Impl*)Cipher; in rtl_cipher_destroyBF() local
1123 if (pImpl) in rtl_cipher_destroyBF()
1125 if (pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmBF) in rtl_cipher_destroyBF()
1126 rtl_freeZeroMemory (pImpl, sizeof (CipherBF_Impl)); in rtl_cipher_destroyBF()
1128 rtl_freeMemory (pImpl); in rtl_cipher_destroyBF()
1253 CipherARCFOUR_Impl *pImpl = (CipherARCFOUR_Impl*)NULL; in rtl_cipher_createARCFOUR() local
1258 pImpl = ((CipherARCFOUR_Impl*)rtl_allocateZeroMemory (sizeof (CipherARCFOUR_Impl))); in rtl_cipher_createARCFOUR()
1259 if (pImpl) in rtl_cipher_createARCFOUR()
1261 pImpl->m_cipher.m_algorithm = rtl_Cipher_AlgorithmARCFOUR; in rtl_cipher_createARCFOUR()
1262 pImpl->m_cipher.m_direction = rtl_Cipher_DirectionInvalid; in rtl_cipher_createARCFOUR()
1263 pImpl->m_cipher.m_mode = rtl_Cipher_ModeStream; in rtl_cipher_createARCFOUR()
1265 pImpl->m_cipher.m_init = rtl_cipher_initARCFOUR; in rtl_cipher_createARCFOUR()
1266 pImpl->m_cipher.m_encode = rtl_cipher_encodeARCFOUR; in rtl_cipher_createARCFOUR()
1267 pImpl->m_cipher.m_decode = rtl_cipher_decodeARCFOUR; in rtl_cipher_createARCFOUR()
1268 pImpl->m_cipher.m_delete = rtl_cipher_destroyARCFOUR; in rtl_cipher_createARCFOUR()
1270 return ((rtlCipher)pImpl); in rtl_cipher_createARCFOUR()
1282 CipherARCFOUR_Impl *pImpl = (CipherARCFOUR_Impl*)Cipher; in rtl_cipher_initARCFOUR() local
1286 if ((pImpl == NULL) || (pKeyData == NULL)) in rtl_cipher_initARCFOUR()
1289 if (!(pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmARCFOUR)) in rtl_cipher_initARCFOUR()
1293 pImpl->m_cipher.m_direction = Direction; in rtl_cipher_initARCFOUR()
1297 return rtl_cipherARCFOUR_init_Impl (&(pImpl->m_context), pKeyData, nKeyLen); in rtl_cipher_initARCFOUR()
1308 CipherARCFOUR_Impl *pImpl = (CipherARCFOUR_Impl*)Cipher; in rtl_cipher_encodeARCFOUR() local
1309 if (pImpl == NULL) in rtl_cipher_encodeARCFOUR()
1312 if (!(pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmARCFOUR)) in rtl_cipher_encodeARCFOUR()
1315 if (pImpl->m_cipher.m_direction == rtl_Cipher_DirectionInvalid) in rtl_cipher_encodeARCFOUR()
1319 &(pImpl->m_context), in rtl_cipher_encodeARCFOUR()
1331 CipherARCFOUR_Impl *pImpl = (CipherARCFOUR_Impl*)Cipher; in rtl_cipher_decodeARCFOUR() local
1332 if (pImpl == NULL) in rtl_cipher_decodeARCFOUR()
1335 if (!(pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmARCFOUR)) in rtl_cipher_decodeARCFOUR()
1338 if (pImpl->m_cipher.m_direction == rtl_Cipher_DirectionInvalid) in rtl_cipher_decodeARCFOUR()
1342 &(pImpl->m_context), in rtl_cipher_decodeARCFOUR()
1351 CipherARCFOUR_Impl *pImpl = (CipherARCFOUR_Impl*)Cipher; in rtl_cipher_destroyARCFOUR() local
1352 if (pImpl) in rtl_cipher_destroyARCFOUR()
1354 if (pImpl->m_cipher.m_algorithm == rtl_Cipher_AlgorithmARCFOUR) in rtl_cipher_destroyARCFOUR()
1355 rtl_freeZeroMemory (pImpl, sizeof (CipherARCFOUR_Impl)); in rtl_cipher_destroyARCFOUR()
1357 rtl_freeMemory (pImpl); in rtl_cipher_destroyARCFOUR()