Tor  0.4.7.0-alpha-dev
document_signature_st.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file document_signature_st.h
9  * @brief Authority signature structure
10  **/
11 
12 #ifndef DOCUMENT_SIGNATURE_ST_H
13 #define DOCUMENT_SIGNATURE_ST_H
14 
15 /** A signature of some document by an authority. */
17  /** Declared SHA-1 digest of this voter's identity key */
19  /** Declared SHA-1 digest of signing key used by this voter. */
21  /** Algorithm used to compute the digest of the document. */
23  /** Signature of the signed thing. */
24  char *signature;
25  /** Length of <b>signature</b> */
27  unsigned int bad_signature : 1; /**< Set to true if we've tried to verify
28  * the sig, and we know it's bad. */
29  unsigned int good_signature : 1; /**< Set to true if we've verified the sig
30  * as good. */
31 };
32 
33 #endif /* !defined(DOCUMENT_SIGNATURE_ST_H) */
digest_algorithm_t
Definition: crypto_digest.h:44
#define DIGEST_LEN
Definition: digest_sizes.h:20
char identity_digest[DIGEST_LEN]
digest_algorithm_t alg
char signing_key_digest[DIGEST_LEN]