|
@@ -17,14 +17,7 @@
|
|
|
|
|
|
#include "lib/container/container.h"
|
|
#include "lib/container/container.h"
|
|
#include "lib/cc/torint.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 =
|
|
/** Length of a sha1 message digest when encoded in base32 with trailing =
|
|
* signs removed. */
|
|
* signs removed. */
|
|
@@ -133,4 +126,3 @@ digest_algorithm_t crypto_digest_get_algorithm(crypto_digest_t *digest);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif /* !defined(TOR_CRYPTO_DIGEST_H) */
|
|
#endif /* !defined(TOR_CRYPTO_DIGEST_H) */
|
|
-
|
|
|