Tor
0.4.7.0-alpha-dev
feature
dirparse
signing.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 signing.h
9
* \brief Header file for signing.c.
10
**/
11
12
#ifndef TOR_SIGNING_H
13
#define TOR_SIGNING_H
14
15
#define DIROBJ_MAX_SIG_LEN 256
16
char
*
router_get_dirobj_signature
(
const
char
*digest,
17
size_t
digest_len,
18
const
crypto_pk_t
*private_key);
19
int
router_append_dirobj_signature
(
char
*buf,
size_t
buf_len,
20
const
char
*digest,
21
size_t
digest_len,
22
crypto_pk_t
*private_key);
23
#endif
/* !defined(TOR_SIGNING_H) */
router_append_dirobj_signature
int router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, size_t digest_len, crypto_pk_t *private_key)
Definition:
signing.c:79
router_get_dirobj_signature
char * router_get_dirobj_signature(const char *digest, size_t digest_len, const crypto_pk_t *private_key)
Definition:
signing.c:22
crypto_pk_t
Definition:
crypto_rsa_nss.c:37
Generated by
1.9.1