|
@@ -0,0 +1,18 @@
|
|
|
+/* Copyright (c) 2001, Matej Pfajfar.
|
|
|
+ * Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
|
+ * Copyright (c) 2007-2018, The Tor Project, Inc. */
|
|
|
+/* See LICENSE for licensing information */
|
|
|
+
|
|
|
+#ifndef TOR_DIGEST_SIZES_H
|
|
|
+#define TOR_DIGEST_SIZES_H
|
|
|
+
|
|
|
+/** Length of the output of our message digest. */
|
|
|
+#define DIGEST_LEN 20
|
|
|
+/** Length of the output of our second (improved) message digests. (For now
|
|
|
+ * this is just sha256, but it could be any other 256-bit digest.) */
|
|
|
+#define DIGEST256_LEN 32
|
|
|
+/** Length of the output of our 64-bit optimized message digests (SHA512). */
|
|
|
+#define DIGEST512_LEN 64
|
|
|
+
|
|
|
+#endif
|