[or-cvs] put a comment reminding us that we do hashes in software only

Roger Dingledine arma at seul.org
Tue Jun 1 16:36:59 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	crypto.c 
Log Message:
put a comment reminding us that we do hashes in software only


Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- crypto.c	15 May 2004 23:49:41 -0000	1.93
+++ crypto.c	1 Jun 2004 16:36:56 -0000	1.94
@@ -1018,6 +1018,11 @@
 {
   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);
 }
 



More information about the tor-commits mailing list