#include "common/address.h"
#include "common/compat.h"
#include "common/container.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/util.h"
#include "siphash.h"
#define COMPAT_LIBEVENT_PRIVATE
#include "common/compat_libevent.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/util.h"
#include "common/torlog.h"
#include "common/util.h"
#include "common/torlog.h"
#include "common/container.h"
-#include "common/crypto_digest.h"
+#include "lib/crypt_ops/crypto_digest.h"
#include <stdlib.h>
#include <string.h>
#define UTIL_PRIVATE
#include "common/util.h"
#include "common/torlog.h"
-#include "common/crypto_digest.h"
+#include "lib/crypt_ops/crypto_digest.h"
#include "lib/cc/torint.h"
#include "common/container.h"
#include "common/address.h"
#include "common/compat.h"
#include "common/compat_libevent.h"
#include "common/compat_threads.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/util.h"
#include "common/workqueue.h"
#include "tor_queue.h"
void ed25519_hash(uint8_t *hash, const uint8_t *in, size_t inlen);
*/
-#include "common/crypto_digest.h"
+#include "lib/crypt_ops/crypto_digest.h"
typedef struct ed25519_hash_context {
crypto_digest_t *ctx;
*/
/* Tor: Instead of calling OpenSSL's CSPRNG directly, call the wrapper. */
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
static void
ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len)
#include "ed25519-randombytes.h"
#include "ed25519-hash.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
typedef unsigned char ed25519_signature[64];
typedef unsigned char ed25519_public_key[32];
#include "ed25519_ref10.h"
#include <string.h>
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
static void
ed25519_ref10_gettweak(unsigned char *out, const unsigned char *param)
/* Added for Tor. */
-#include "common/crypto_digest.h"
+#include "lib/crypt_ops/crypto_digest.h"
/* Set 'out' to the 512-bit SHA512 hash of the 'len'-byte string in 'inp' */
#define crypto_hash_sha512(out, inp, len) \
#include "crypto_hash_sha512.h"
#include "ge.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
int
crypto_sign_seckey(unsigned char *sk)
/* Added for Tor. */
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#define randombytes(b, n) \
(crypto_strongest_rand((b), (n)), 0)
#include "keccak-tiny.h"
#include <string.h>
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "byteorder.h"
/******** Endianness conversion helpers ********/
#include <ws2tcpip.h>
#endif
-#include "common/compat_openssl.h"
+#include "lib/crypt_ops/compat_openssl.h"
#include <openssl/opensslv.h>
-#include "common/crypto_openssl_mgt.h"
+#include "lib/crypt_ops/crypto_openssl_mgt.h"
#if OPENSSL_VERSION_NUMBER < OPENSSL_V_SERIES(1,0,0)
#error "We require OpenSSL >= 1.0.0"
ENABLE_GCC_WARNING(redundant-decls)
#include "common/compat.h"
-#include "common/aes.h"
+#include "lib/crypt_ops/aes.h"
#include "common/util.h"
#include "common/torlog.h"
#include "lib/ctime/di_ops.h"
#define TOR_COMPAT_OPENSSL_H
#include <openssl/opensslv.h>
-#include "common/crypto_openssl_mgt.h"
+#include "lib/crypt_ops/crypto_openssl_mgt.h"
/**
* \file compat_openssl.h
#endif /* defined(_WIN32) */
#define CRYPTO_PRIVATE
-#include "common/compat_openssl.h"
-#include "common/crypto.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_dh.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_format.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_rsa.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/compat_openssl.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_dh.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_format.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rsa.h"
+#include "lib/crypt_ops/crypto_util.h"
DISABLE_GCC_WARNING(redundant-decls)
#include "common/torlog.h"
#include "lib/cc/torint.h"
-#include "common/aes.h"
+#include "lib/crypt_ops/aes.h"
#include "common/util.h"
#include "common/container.h"
#include "common/compat.h"
#include "lib/cc/torint.h"
#include "common/compat.h"
#include "common/util.h"
-#include "common/crypto_rsa.h"
+#include "lib/crypt_ops/crypto_rsa.h"
/** Length of our symmetric cipher's keys of 128-bit. */
#define CIPHER_KEY_LEN 16
#include <sys/stat.h>
#endif
#include "common/container.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_format.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_format.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/util.h"
#include "common/torlog.h"
#include "common/testsupport.h"
#include "lib/cc/torint.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_openssl_mgt.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_openssl_mgt.h"
/** Length of a curve25519 public key when encoded. */
#define CURVE25519_PUBKEY_LEN 32
* \brief Block of functions related with DH utilities and operations.
**/
-#include "common/compat_openssl.h"
-#include "common/crypto_dh.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_hkdf.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/compat_openssl.h"
+#include "lib/crypt_ops/crypto_dh.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_hkdf.h"
+#include "lib/crypt_ops/crypto_util.h"
DISABLE_GCC_WARNING(redundant-decls)
**/
#include "common/container.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_openssl_mgt.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_openssl_mgt.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/torlog.h"
#include "keccak-tiny/keccak-tiny.h"
#include <sys/stat.h>
#endif
-#include "common/crypto_curve25519.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_format.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_format.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/torlog.h"
#include "common/util.h"
#include "common/util_format.h"
#include "common/testsupport.h"
#include "lib/cc/torint.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "common/util.h"
#define ED25519_PUBKEY_LEN 32
#include <sys/stat.h>
#endif
#include "common/container.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_format.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_format.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/util.h"
#include "common/util_format.h"
#include "common/torlog.h"
#include "common/testsupport.h"
#include "lib/cc/torint.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
int crypto_write_tagged_contents_to_file(const char *fname,
const char *typestring,
* \brief Block of functions related with HKDF utilities and operations.
**/
-#include "common/crypto_hkdf.h"
-#include "common/crypto_util.h"
-#include "common/crypto_digest.h"
+#include "lib/crypt_ops/crypto_hkdf.h"
+#include "lib/crypt_ops/crypto_util.h"
+#include "lib/crypt_ops/crypto_digest.h"
-#include "common/crypto_openssl_mgt.h"
+#include "lib/crypt_ops/crypto_openssl_mgt.h"
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0)
* \brief Block of functions related to operations from OpenSSL.
**/
-#include "common/compat_openssl.h"
-#include "common/crypto_openssl_mgt.h"
+#include "lib/crypt_ops/compat_openssl.h"
+#include "lib/crypt_ops/crypto_openssl_mgt.h"
DISABLE_GCC_WARNING(redundant-decls)
* them to disk.
*/
-#include "common/crypto.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_pwbox.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_s2k.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_pwbox.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_s2k.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "lib/ctime/di_ops.h"
#include "common/util.h"
#include "trunnel/pwbox.h"
#ifndef CRYPTO_RAND_PRIVATE
#define CRYPTO_RAND_PRIVATE
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#ifdef _WIN32
#include <windows.h>
#include "common/container.h"
#include "common/compat.h"
-#include "common/compat_openssl.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/compat_openssl.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/sandbox.h"
#include "common/testsupport.h"
#include "common/torlog.h"
* \brief Block of functions related with RSA utilities and operations.
**/
-#include "common/crypto.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_format.h"
-#include "common/compat_openssl.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_rsa.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_format.h"
+#include "lib/crypt_ops/compat_openssl.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rsa.h"
+#include "lib/crypt_ops/crypto_util.h"
DISABLE_GCC_WARNING(redundant-decls)
#include "orconfig.h"
-#include "common/crypto_digest.h"
+#include "lib/crypt_ops/crypto_digest.h"
#include <stdio.h>
#include "lib/cc/torint.h"
#include "common/testsupport.h"
#define CRYPTO_S2K_PRIVATE
#include "common/compat.h"
-#include "common/crypto.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_hkdf.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_s2k.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_hkdf.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_s2k.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/util.h"
#include <openssl/evp.h>
#ifndef CRYPTO_UTIL_PRIVATE
#define CRYPTO_UTIL_PRIVATE
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include <string.h>
#include "orconfig.h"
#include <stddef.h>
#include "common/buffers.h"
-#include "common/buffers_tls.h"
+#include "lib/tls/buffers_tls.h"
#include "common/compat.h"
#include "lib/compress/compress.h"
#include "common/util.h"
#include "lib/cc/torint.h"
#include "common/torlog.h"
-#include "common/tortls.h"
+#include "lib/tls/tortls.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <ws2tcpip.h>
#endif
-#include "common/crypto.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_dh.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_dh.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/compat.h"
/* Some versions of OpenSSL declare SSL_get_selected_srtp_profile twice in
ENABLE_GCC_WARNING(redundant-decls)
#define TORTLS_PRIVATE
-#include "common/tortls.h"
+#include "lib/tls/tortls.h"
#include "common/util.h"
#include "common/torlog.h"
#include "common/container.h"
return ret;
}
-
* \brief Headers for tortls.c
**/
-#include "common/crypto_rsa.h"
-#include "common/compat_openssl.h"
+#include "lib/crypt_ops/crypto_rsa.h"
+#include "lib/crypt_ops/compat_openssl.h"
#include "common/compat.h"
#include "common/testsupport.h"
#include "or/config.h"
#include "or/connection_edge.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/dns.h"
#include "or/nodelist.h"
#include "or/routerset.h"
#include "or/networkstatus.h"
#include "or/connection.h"
#include "or/connection_or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/main.h"
#include "or/rephist.h"
#include "or/router.h"
#include "or/circuitstats.h"
#include "or/connection_edge.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/entrynodes.h"
#include "or/networkstatus.h"
#include "or/relay.h"
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/entrynodes.h"
#include "or/hs_ntor.h"
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/entrynodes.h"
#include "or/main.h"
#include "or/or.h"
#include "or/circuitmux.h"
#include "or/circuitmux_ewma.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/networkstatus.h"
/*** EWMA parameter #defines ***/
#include "or/config.h"
#include "or/confparse.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/main.h"
#include "or/networkstatus.h"
#include "or/rendclient.h"
#include "or/config.h"
#include "or/control.h"
#include "or/cpuworker.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/dos.h"
#include "or/hibernate.h"
#include "or/nodelist.h"
#include "or/control.h"
#include "or/confparse.h"
#include "or/cpuworker.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/dirserv.h"
#include "or/dns.h"
#include "or/dos.h"
#include "or/or.h"
#include "or/bridges.h"
#include "common/buffers.h"
-#include "common/buffers_tls.h"
+#include "lib/tls/buffers_tls.h"
/*
* Define this so we get channel internal functions, since we're implementing
* part of a subclass (channel_tls_t).
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/dns.h"
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/dns.h"
#include "or/dnsserv.h"
#include "or/directory.h"
#include "or/connection.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/dirserv.h"
#include "or/entrynodes.h"
#include "or/geoip.h"
#include "or/config.h"
#include "or/conscache.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/storagedir.h"
#define CCE_MAGIC 0x17162253
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/dnsserv.h"
#include <sys/resource.h>
#endif
-#include "common/crypto_s2k.h"
+#include "lib/crypt_ops/crypto_s2k.h"
#include "common/procmon.h"
/** Yield true iff <b>s</b> is the state of a control_connection_t that has
#include "or/connection_or.h"
#include "or/config.h"
#include "or/cpuworker.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/main.h"
#include "or/onion.h"
#include "or/rephist.h"
#include "or/dirauth/shared_random.h"
#include "or/config.h"
#include "or/confparse.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/networkstatus.h"
#include "or/router.h"
#include "or/routerkeys.h"
#include "or/or.h"
#include "or/config.h"
#include "or/confparse.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/dirauth/dirvote.h"
#include "or/networkstatus.h"
#include "or/router.h"
#include "or/consdiffmgr.h"
#include "or/control.h"
#include "common/compat.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/entrynodes.h"
#include "or/connection.h"
#include "or/connection_edge.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/dns.h"
#include "or/main.h"
#include "or/policies.h"
#include "or/channel.h"
#include "or/config.h"
#include "or/connection_or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/geoip.h"
#include "or/main.h"
#include "or/networkstatus.h"
#include "or/confparse.h"
#include "or/connection.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/entrynodes.h"
#include "or/main.h"
#include "or/connection_or.h"
#include "or/control.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/ext_orport.h"
#include "or/main.h"
#include "or/proto_ext_or.h"
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/hibernate.h"
#include "or/main.h"
#include "or/router.h"
#include "or/or.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/hs_ident.h"
#include "or/hs_common.h"
#include "or/hs_client.h"
#include <stdint.h>
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/hs_common.h"
#include "or/hs_descriptor.h"
#include "or/rendcommon.h"
#include "or/or.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/rendservice.h"
#include "or/replaycache.h"
#include "common/util.h"
#include "or/circuitlist.h"
#include "or/circuituse.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/nodelist.h"
#include "or/policies.h"
#include "or/relay.h"
#define TOR_HS_CIRCUIT_H
#include "or/or.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/hs_service.h"
#include "or/connection.h"
#include "or/connection_edge.h"
#include "common/container.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/hs_cache.h"
#include "or/hs_cell.h"
#ifndef TOR_HS_CLIENT_H
#define TOR_HS_CLIENT_H
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/hs_descriptor.h"
#include "or/hs_ident.h"
#include "or/config.h"
#include "or/circuitbuild.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/networkstatus.h"
#include "or/nodelist.h"
#include "or/hs_cache.h"
#include "or/or.h"
#include "or/control.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/hs_common.h"
#include "or/hs_control.h"
#include "or/hs_descriptor.h"
#include "trunnel/ed25519_cert.h" /* Trunnel interface. */
#include "or/hs_descriptor.h"
#include "or/circuitbuild.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/parsecommon.h"
#include "or/rendcache.h"
#include "or/hs_cache.h"
#include "or/or.h"
#include "common/address.h"
#include "common/container.h"
-#include "common/crypto.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "trunnel/ed25519_cert.h" /* needed for trunnel */
#include "or/torcert.h"
* subsytem.
**/
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/hs_ident.h"
/* Return a newly allocated circuit identifier. The given public key is copied
#ifndef TOR_HS_IDENT_H
#define TOR_HS_IDENT_H
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/hs_common.h"
#ifndef TOR_HS_INTRO_H
#define TOR_HS_INTRO_H
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "or/torcert.h"
/* Authentication key type in an ESTABLISH_INTRO cell. */
*/
#include "or/or.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/hs_ntor.h"
/* String constants used by the ntor HS protocol */
#include "or/circuituse.h"
#include "or/config.h"
#include "or/connection.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/main.h"
#include "or/networkstatus.h"
#ifndef TOR_HS_SERVICE_H
#define TOR_HS_SERVICE_H
-#include "common/crypto_curve25519.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/replaycache.h"
#include "or/hs_common.h"
#include "orconfig.h"
#include "common/compat.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_format.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_format.h"
#include "lib/ctime/di_ops.h"
#include "ht.h"
#include "or/keypin.h"
#include "lib/err/backtrace.h"
#include "or/bridges.h"
#include "common/buffers.h"
-#include "common/buffers_tls.h"
+#include "lib/tls/buffers_tls.h"
#include "or/channel.h"
#include "or/channeltls.h"
#include "or/channelpadding.h"
#include "or/consdiffmgr.h"
#include "or/control.h"
#include "or/cpuworker.h"
-#include "common/crypto_s2k.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_s2k.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/dns.h"
#include "or/connection_or.h"
#include "or/consdiffmgr.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/dos.h"
#include "or/circuitlist.h"
#include "or/config.h"
#include "or/cpuworker.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/networkstatus.h"
#include "or/onion.h"
#include "or/onion_fast.h"
#include "or/or.h"
#include "or/onion_fast.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
/** Release all state held in <b>victim</b>. */
void
#include "orconfig.h"
#define ONION_NTOR_PRIVATE
-#include "common/crypto.h"
-#include "common/crypto_hkdf.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_hkdf.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/onion_ntor.h"
#include "common/torlog.h"
#include "common/util.h"
#define TOR_ONION_NTOR_H
#include "lib/cc/torint.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "lib/ctime/di_ops.h"
/** State to be maintained by a client between sending an ntor onionskin
#include "or/or.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/onion_tap.h"
#include "or/rephist.h"
#include <windows.h>
#endif /* defined(_WIN32) */
-#include "common/crypto.h"
-#include "common/crypto_format.h"
-#include "common/crypto_dh.h"
-#include "common/crypto_hkdf.h"
-#include "common/tortls.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_format.h"
+#include "lib/crypt_ops/crypto_dh.h"
+#include "lib/crypt_ops/crypto_hkdf.h"
+#include "lib/tls/tortls.h"
#include "common/torlog.h"
#include "common/container.h"
#include "lib/compress/compress.h"
#include "ht.h"
#include "common/confline.h"
#include "or/replaycache.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "tor_queue.h"
#include "common/token_bucket.h"
#include "common/util_format.h"
#define TOR_PARSECOMMON_H
#include "common/container.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "common/memarea.h"
/** Enumeration of possible token types. The ones starting with K_ correspond
#include "common/buffers.h"
#include "or/control.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/ext_orport.h"
#include "or/proto_socks.h"
#include "or/reasons.h"
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/geoip.h"
#include "or/hs_cache.h"
#include "or/or.h"
#include "or/circuitlist.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/hs_ntor.h" // for HS_NTOR_KEY_EXPANSION_KDF_OUT_LEN
#include "or/relay.h"
#include "or/relay_crypto.h"
#include "or/connection.h"
#include "or/connection_edge.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/hs_circuit.h"
#include "or/hs_client.h"
#include "or/circuituse.h"
#include "or/config.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/hs_client.h"
#include "or/hs_common.h"
#include "or/hs_intropoint.h"
#include "or/circuitlist.h"
#include "or/circuituse.h"
#include "or/config.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "or/dos.h"
#include "or/relay.h"
#include "or/rendmid.h"
#include "or/circuituse.h"
#include "or/config.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/directory.h"
#include "or/hs_common.h"
#include "or/hs_config.h"
#include "or/circuitlist.h"
#include "or/circuituse.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/networkstatus.h"
#include "or/nodelist.h"
#include "or/rephist.h"
#include "or/config.h"
#include "or/connection.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/dns.h"
#include "or/or.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/router.h"
-#include "common/crypto_pwbox.h"
+#include "lib/crypt_ops/crypto_pwbox.h"
#include "or/routerkeys.h"
#include "or/torcert.h"
#ifndef TOR_ROUTERKEYS_H
#define TOR_ROUTERKEYS_H
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#define INIT_ED_KEY_CREATE (1u<<0)
#define INIT_ED_KEY_REPLACE (1u<<1)
#include "or/or.h"
#include "lib/err/backtrace.h"
#include "or/bridges.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/circuitstats.h"
#include "or/config.h"
#include "or/connection.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/entrynodes.h"
#include "or/or.h"
#include "or/circuitstats.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/dirauth/shared_random.h"
#include "or/dirserv.h"
#include "or/entrynodes.h"
#include "or/or.h"
#include "or/config.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "or/torcert.h"
#include "trunnel/ed25519_cert.h"
#include "common/torlog.h"
#ifndef TORCERT_H_INCLUDED
#define TORCERT_H_INCLUDED
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#define SIGNED_KEY_TYPE_ED25519 0x01
#include <openssl/obj_mac.h>
#include "or/config.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "or/onion_ntor.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/consdiff.h"
#include "or/cell_st.h"
#include "or/or.h"
#include "trunnel/ed25519_cert.h" /* Trunnel interface. */
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/hs_descriptor.h"
#include "or/routerparse.h"
#include "common/util.h"
#include "lib/err/backtrace.h"
#include "or/config.h"
#include "test/fuzz/fuzzing.h"
-#include "common/crypto.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
static or_options_t *mock_options = NULL;
static const or_options_t *
/* See LICENSE for licensing information */
#include "or/or.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "test/test.h"
#include "or/torcert.h"
/* See LICENSE for licensing information */
#include "or/or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "test/test.h"
#include "or/rendcommon.h"
#include "test/rend_test_helpers.h"
#include <sys/types.h>
#include <stdlib.h>
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/compat.h"
#include "common/util.h"
#include "common/compat.h"
#include "common/compat_libevent.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/timers.h"
#include "common/util.h"
**/
#include "orconfig.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include <stdio.h>
#ifdef HAVE_FCNTL_H
#include "or/rephist.h"
#include "or/routerparse.h"
#include "or/statefile.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "or/extend_info_st.h"
#include "or/or_circuit_st.h"
#define ADDRESSMAP_PRIVATE
#include "orconfig.h"
#include "or/or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "test/test.h"
#include "or/addressmap.h"
#include "test/log_test_helpers.h"
/* See LICENSE for licensing information */
#include "or/or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/address_set.h"
#include "or/microdesc.h"
#include "or/networkstatus.h"
#define PROTO_HTTP_PRIVATE
#include "or/or.h"
#include "common/buffers.h"
-#include "common/buffers_tls.h"
-#include "common/crypto_rand.h"
+#include "lib/tls/buffers_tls.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/proto_http.h"
#include "or/proto_socks.h"
#include "test/test.h"
#include "or/connection_edge.h"
#include "or/connection_or.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/onion.h"
#include "or/onion_tap.h"
#include "or/onion_fast.h"
#include "or/circuitmux_ewma.h"
/* For var_cell_free */
#include "or/connection_or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
/* For packed_cell stuff */
#define RELAY_PRIVATE
#include "or/relay.h"
#include "or/config.h"
/* For init/free stuff */
#include "or/scheduler.h"
-#include "common/tortls.h"
+#include "lib/tls/tortls.h"
#include "or/or_connection_st.h"
#include "or/consdiff.h"
#include "or/consdiffmgr.h"
#include "or/cpuworker.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/networkstatus.h"
#include "or/routerparse.h"
#include "common/workqueue.h"
#include "orconfig.h"
#include "or/or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/fp_pair.h"
#include "test/test.h"
#define CRYPTO_RAND_PRIVATE
#include "or/or.h"
#include "test/test.h"
-#include "common/aes.h"
+#include "lib/crypt_ops/aes.h"
#include "common/util.h"
#include "siphash.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "ed25519_vectors.inc"
/** Run unit tests for Diffie-Hellman functionality. */
#define CRYPTO_RAND_PRIVATE
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/util.h"
#include "common/util_format.h"
#include "common/compat.h"
#include <openssl/evp.h>
#include <openssl/rand.h>
-#include "common/compat_openssl.h"
+#include "lib/crypt_ops/compat_openssl.h"
/* Test for rectifying openssl RAND engine. */
static void
#define CRYPTO_S2K_PRIVATE
#include "or/or.h"
#include "test/test.h"
-#include "common/crypto_s2k.h"
-#include "common/crypto_pwbox.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_s2k.h"
+#include "lib/crypt_ops/crypto_pwbox.h"
+#include "lib/crypt_ops/crypto_rand.h"
#if defined(HAVE_LIBSCRYPT_H) && defined(HAVE_LIBSCRYPT_SCRYPT)
#define HAVE_LIBSCRYPT
#include "or/confparse.h"
#include "or/config.h"
#include "or/control.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/dirserv.h"
#include "or/dirauth/dirvote.h"
#include "or/or.h"
#include "or/dos.h"
#include "or/circuitlist.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/geoip.h"
#include "or/channel.h"
#include "or/microdesc.h"
#include "or/circuitbuild.h"
#include "or/config.h"
#include "or/confparse.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/entrynodes.h"
#include "or/nodelist.h"
#include "or/connection_or.h"
#include "or/config.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/ext_orport.h"
#include "or/main.h"
#include "or/config.h"
#include "or/confparse.h"
#include "or/connection.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/main.h"
#include "or/nodelist.h"
#include "or/relay.h"
#include "test/test_helpers.h"
#include "test/log_test_helpers.h"
-#include "common/crypto_ed25519.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/hs_cell.h"
#include "or/hs_intropoint.h"
#include "or/hs_service.h"
#include "test/hs_test_helpers.h"
#include "or/config.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "or/channeltls.h"
#include "or/main.h"
#include "or/nodelist.h"
#include "test/hs_test_helpers.h"
#include "or/connection_edge.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/hs_common.h"
#include "or/hs_client.h"
#include "or/hs_service.h"
#define HS_DESCRIPTOR_PRIVATE
-#include "common/crypto_ed25519.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "trunnel/ed25519_cert.h"
#include "or/or.h"
#include "or/hs_descriptor.h"
#include "test/test.h"
#include "test/log_test_helpers.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/or.h"
#include "or/circuitlist.h"
#include "or/or.h"
#include "common/util.h"
#include "common/compat.h"
-#include "common/crypto.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "or/hs_ntor.h"
#include "or/onion_ntor.h"
#include "or/circuitbuild.h"
#include "or/circuitlist.h"
#include "or/circuituse.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/dirauth/dirvote.h"
#include "or/networkstatus.h"
#include "or/nodelist.h"
/* See LICENSE for licensing information */
#include "orconfig.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "or/or.h"
#include "test/test.h"
**/
#include "or/or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/networkstatus.h"
#include "or/nodelist.h"
#include "or/torcert.h"
#include "or/or.h"
#include "common/util.h"
#include "common/compat.h"
-#include "common/crypto.h"
-#include "common/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
#include "or/onion_ntor.h"
#define N_ARGS(n) STMT_BEGIN { \
#include "common/compat_libevent.h"
#include "or/connection.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/relay.h"
#include "test/test.h"
#include "test/test_helpers.h"
#include "or/main.h"
#include "or/config.h"
#include "or/connection.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "or/circuitbuild.h"
#include "or/circuitlist.h"
#include "or/connection_edge.h"
#include "or/circuitbuild.h"
#define CIRCUITLIST_PRIVATE
#include "or/circuitlist.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/relay.h"
#include "or/relay_crypto.h"
#include "or/or.h"
#include "or/config.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_ed25519.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_ed25519.h"
#include "or/router.h"
#include "or/routerlist.h"
#include "or/router.h"
#include "or/routerkeys.h"
#include "common/util.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "or/torcert.h"
#include "test/test.h"
#include "or/connection.h"
#include "common/container.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/directory.h"
#include "or/dirauth/dirvote.h"
#include "or/entrynodes.h"
#include "or/or.h"
#include "test/test.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/dirauth/dirvote.h"
#include "or/dirauth/shared_random.h"
#include "or/dirauth/shared_random_state.h"
/* See LICENSE for licensing information */
#include "or/or.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/storagedir.h"
#include "test/test.h"
#include "or/or.h"
#include "common/torlog.h"
#include "or/config.h"
-#include "common/tortls.h"
+#include "lib/tls/tortls.h"
#include "test/test.h"
#include "test/log_test_helpers.h"
#include "common/buffers.h"
#include "or/config.h"
#include "or/control.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "test/test.h"
#include "common/memarea.h"
#include "common/util_process.h"
#include "test/test.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#define UTIL_FORMAT_PRIVATE
#include "common/util_format.h"
#define UTIL_PRIVATE
#include "common/util.h"
#include "common/util_process.h"
-#include "common/crypto.h"
+#include "lib/crypt_ops/crypto.h"
#include "common/torlog.h"
#include "test/test.h"
#include "common/compat_threads.h"
#include "or/onion.h"
#include "common/workqueue.h"
-#include "common/crypto_curve25519.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_curve25519.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "common/compat_libevent.h"
#include <stdio.h>
#include "or/or.h"
#include "or/control.h"
#include "or/config.h"
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "or/rephist.h"
#include "lib/err/backtrace.h"
#include "test/test.h"
* Copyright (c) 2007-2018, The Tor Project, Inc. */
/* See LICENSE for licensing information */
-#include "common/crypto_rand.h"
+#include "lib/crypt_ops/crypto_rand.h"
#include "orconfig.h"
#include "or/or.h"
#include "test/test.h"
#include "common/util.h"
#include "common/torlog.h"
-#include "common/crypto.h"
-#include "common/crypto_digest.h"
-#include "common/crypto_rand.h"
-#include "common/crypto_util.h"
+#include "lib/crypt_ops/crypto.h"
+#include "lib/crypt_ops/crypto_digest.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/crypt_ops/crypto_util.h"
#include "common/address.h"
#include "common/util_format.h"