Lines Matching refs:key_len
70 size_t salt_len, key_len, cnt, rounds; in crypt_sha256() local
98 key_len = strlen(key); in crypt_sha256()
104 SHA256_Update(&ctx, key, key_len); in crypt_sha256()
116 SHA256_Update(&alt_ctx, key, key_len); in crypt_sha256()
122 SHA256_Update(&alt_ctx, key, key_len); in crypt_sha256()
128 for (cnt = key_len; cnt > 32; cnt -= 32) in crypt_sha256()
134 for (cnt = key_len; cnt > 0; cnt >>= 1) in crypt_sha256()
138 SHA256_Update(&ctx, key, key_len); in crypt_sha256()
147 for (cnt = 0; cnt < key_len; ++cnt) in crypt_sha256()
148 SHA256_Update(&alt_ctx, key, key_len); in crypt_sha256()
154 cp = p_bytes = alloca(key_len); in crypt_sha256()
155 for (cnt = key_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
187 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
197 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
203 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
240 memset(p_bytes, '\0', key_len); in crypt_sha256()