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