12 #ifndef TOR_SIGCOMMON_H
13 #define TOR_SIGCOMMON_H
17 const char *start_str,
const char *end_str,
21 #define CST_NO_CHECK_OBJTYPE (1<<0)
28 const char *doctype));
31 const char *start_str,
32 const char *end_str,
char end_c,
34 const char **start_out,
const char **end_out);
37 const char *start_str,
const char *end_str,
40 #ifdef SIGCOMMON_PRIVATE
42 (
const uint8_t *d1,
const uint8_t *d2,
size_t len));
44 const char *start,
size_t len,
STATIC int router_compute_hash_final(char *digest, const char *start, size_t len, digest_algorithm_t alg)
int router_get_hash_impl_helper(const char *s, size_t s_len, const char *start_str, const char *end_str, char end_c, int log_severity, const char **start_out, const char **end_out)
int router_get_hashes_impl(const char *s, size_t s_len, common_digests_t *digests, const char *start_str, const char *end_str, char end_char)
int check_signature_token(const char *digest, ssize_t digest_len, struct directory_token_t *tok, crypto_pk_t *pkey, int flags, const char *doctype)
int router_get_hash_impl(const char *s, size_t s_len, char *digest, const char *start_str, const char *end_str, char end_char, digest_algorithm_t alg)
#define MOCK_DECL(rv, funcname, arglist)