Skip to content
Snippets Groups Projects
Commit 8ca162c4 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

put a comment reminding us that we do hashes in software only

svn:r1925
parent 834ffa35
No related branches found
No related tags found
No related merge requests found
......@@ -1018,6 +1018,11 @@ crypto_digest_add_bytes(crypto_digest_env_t *digest, const char *data,
{
tor_assert(digest);
tor_assert(data);
/* Using the SHA1_*() calls directly means we don't support doing
* sha1 in hardware. But so far the delay of getting the question
* to the hardware, and hearing the answer, is likely higher than
* just doing it ourselves. Hashes are fast.
*/
SHA1_Update(&digest->d, (void*)data, len);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment