Data Fields
document_signature_t Struct Reference

#include <document_signature_st.h>

Data Fields

char identity_digest [DIGEST_LEN]
char signing_key_digest [DIGEST_LEN]
digest_algorithm_t alg
char * signature
int signature_len
unsigned int bad_signature: 1
unsigned int good_signature: 1

Detailed Description

A signature of some document by an authority.

Definition at line 11 of file document_signature_st.h.

Field Documentation

◆ alg

digest_algorithm_t document_signature_t::alg

Algorithm used to compute the digest of the document.

Definition at line 17 of file document_signature_st.h.

Referenced by networkstatus_check_document_signature().

◆ bad_signature

unsigned int document_signature_t::bad_signature

Set to true if we've tried to verify the sig, and we know it's bad.

Definition at line 22 of file document_signature_st.h.

◆ good_signature

unsigned int document_signature_t::good_signature

Set to true if we've verified the sig as good.

Definition at line 24 of file document_signature_st.h.

◆ identity_digest

char document_signature_t::identity_digest[DIGEST_LEN]

Declared SHA-1 digest of this voter's identity key

Definition at line 13 of file document_signature_st.h.

◆ signature

char* document_signature_t::signature

Signature of the signed thing.

Definition at line 19 of file document_signature_st.h.

Referenced by document_signature_free_().

◆ signature_len

int document_signature_t::signature_len

Length of signature

Definition at line 21 of file document_signature_st.h.

◆ signing_key_digest

char document_signature_t::signing_key_digest[DIGEST_LEN]

Declared SHA-1 digest of signing key used by this voter.

Definition at line 15 of file document_signature_st.h.

The documentation for this struct was generated from the following file: