]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
put a comment reminding us that we do hashes in software only
authorRoger Dingledine <arma@torproject.org>
Tue, 1 Jun 2004 16:36:56 +0000 (16:36 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 1 Jun 2004 16:36:56 +0000 (16:36 +0000)
svn:r1925

src/common/crypto.c

index 1c265628aed7f408f65996124f0c00638cb0e1b3..17e71487a8a20b797c824047635e63c53b968a00 100644 (file)
@@ -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);
 }