Lines Matching refs:ctx
129 HCRYPTHASH ctx, ctx1; in php_md5_crypt_r() local
166 if(!CryptCreateHash(hCryptProv, CALG_MD5, 0, 0, &ctx)) { in php_md5_crypt_r()
171 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r()
176 if(!CryptHashData(ctx, magic_md5, magic_md5_len, 0)) { in php_md5_crypt_r()
181 if(!CryptHashData( ctx, (BYTE *)sp, sl, 0)) { in php_md5_crypt_r()
205 CryptHashData(ctx, final, (DWORD)(pl > 16 ? 16 : pl), 0); in php_md5_crypt_r()
214 CryptHashData(ctx, (const BYTE *)final, 1, 0); in php_md5_crypt_r()
216 CryptHashData(ctx, (const BYTE *)pw, 1, 0); in php_md5_crypt_r()
236 CryptGetHashParam(ctx, HP_HASHVAL, final, &dwHashLen, 0); in php_md5_crypt_r()
307 CryptDestroyHash(ctx); in php_md5_crypt_r()
330 PHP_MD5_CTX ctx, ctx1; in php_md5_crypt_r() local
350 PHP_MD5Init(&ctx); in php_md5_crypt_r()
353 PHP_MD5Update(&ctx, (const unsigned char *)pw, pwl); in php_md5_crypt_r()
356 PHP_MD5Update(&ctx, (const unsigned char *)MD5_MAGIC, MD5_MAGIC_LEN); in php_md5_crypt_r()
359 PHP_MD5Update(&ctx, (const unsigned char *)sp, sl); in php_md5_crypt_r()
369 PHP_MD5Update(&ctx, final, (unsigned int)(pl > 16 ? 16 : pl)); in php_md5_crypt_r()
377 PHP_MD5Update(&ctx, final, 1); in php_md5_crypt_r()
379 PHP_MD5Update(&ctx, (const unsigned char *)pw, 1); in php_md5_crypt_r()
386 PHP_MD5Final(final, &ctx); in php_md5_crypt_r()