Lines Matching refs:sample
635 char sample[256]; in mod_authn_file_crypt_cmp() local
638 size_t slen = (NULL != e) ? (size_t)(e - b) : sizeof(sample); in mod_authn_file_crypt_cmp()
640 if (slen < sizeof(sample) - (sizeof("$1$")-1) in mod_authn_file_crypt_cmp()
641 && pwlen < sizeof(sample)) { in mod_authn_file_crypt_cmp()
649 sample[i] = pw[(i >> 1)]; in mod_authn_file_crypt_cmp()
650 sample[i+1] = 0; in mod_authn_file_crypt_cmp()
655 MD4_once((unsigned char *)ntlmhash, sample, pwlen); in mod_authn_file_crypt_cmp()
659 memcpy(sample, "$1$", sizeof("$1$")-1); in mod_authn_file_crypt_cmp()
660 memcpy(sample+sizeof("$1$")-1, b, slen); in mod_authn_file_crypt_cmp()
661 sample[sizeof("$1$")-1+slen] = '\0'; in mod_authn_file_crypt_cmp()
663 crypted = crypt_r(ntlmhex, sample, &crypt_tmp_data); in mod_authn_file_crypt_cmp()
665 crypted = crypt(ntlmhex, sample); in mod_authn_file_crypt_cmp()
671 ck_memzero(sample, sizeof(sample)); in mod_authn_file_crypt_cmp()
718 char sample[40]; /*(see comments at end of apr_md5_encode())*/ in mod_authn_file_htpasswd_basic() local
719 rc = tblen == apr_md5_encode(pw, tb->ptr+6, sample, sizeof(sample)) in mod_authn_file_htpasswd_basic()
720 && ck_memeq_const_time_fixed_len(sample, tb->ptr, tblen); in mod_authn_file_htpasswd_basic()
722 ck_memzero(sample, sizeof(sample)); in mod_authn_file_htpasswd_basic()