include src/lib/compress/include.am
include src/lib/container/include.am
include src/lib/crypt_ops/include.am
+include src/lib/defs/include.am
include src/lib/include.libdonna.am
include src/lib/malloc/include.am
include src/lib/testsupport/include.am
#include "lib/container/map.h"
#include "lib/ctime/di_ops.h"
-#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/defs/digest_sizes.h"
#include "common/util_bug.h"
#include "common/util.h" // For strlower
#include "lib/container/smartlist.h"
#include "lib/err/torerr.h"
#include "common/util.h" // For strstrip.
-#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/defs/digest_sizes.h"
#include "lib/ctime/di_ops.h"
#include <stdlib.h>
lib/cc/*.h
lib/crypt_ops/*.h
lib/ctime/*.h
+lib/defs/*.h
lib/err/*.h
lib/testsupport/testsupport.h
memwipe(xof, 0, sizeof(crypto_xof_t));
tor_free(xof);
}
-
#include "lib/container/container.h"
#include "lib/cc/torint.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
+#include "lib/defs/digest_sizes.h"
/** Length of a sha1 message digest when encoded in base32 with trailing =
* signs removed. */
#endif
#endif /* !defined(TOR_CRYPTO_DIGEST_H) */
-
--- /dev/null
+orconfig.h
--- /dev/null
+/* 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
--- /dev/null
+
+noinst_HEADERS += \
+ digest_sizes.h