Lines Matching refs:key_len
69 size_t salt_len, key_len, cnt, rounds; in crypt_sha256() local
97 key_len = strlen(key); in crypt_sha256()
103 SHA256_Update(&ctx, key, key_len); in crypt_sha256()
115 SHA256_Update(&alt_ctx, key, key_len); in crypt_sha256()
121 SHA256_Update(&alt_ctx, key, key_len); in crypt_sha256()
127 for (cnt = key_len; cnt > 32; cnt -= 32) in crypt_sha256()
133 for (cnt = key_len; cnt > 0; cnt >>= 1) in crypt_sha256()
137 SHA256_Update(&ctx, key, key_len); in crypt_sha256()
146 for (cnt = 0; cnt < key_len; ++cnt) in crypt_sha256()
147 SHA256_Update(&alt_ctx, key, key_len); in crypt_sha256()
153 cp = p_bytes = alloca(key_len); in crypt_sha256()
154 for (cnt = key_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
186 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
196 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
202 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
239 explicit_bzero(p_bytes, key_len); in crypt_sha256()