mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 23:52:30 +01:00
I am calling the crypto library "crypt_ops", since I want higher-level crypto things to be separated from lower-level ones. This library will hold only the low-level ones, once we have it refactored.
30 lines
764 B
C
30 lines
764 B
C
/* Copyright (c) 2001, Matej Pfajfar.
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2018, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* \file crypto_util.h
|
|
*
|
|
* \brief Common functions for cryptographic routines.
|
|
**/
|
|
|
|
#ifndef TOR_CRYPTO_UTIL_H
|
|
#define TOR_CRYPTO_UTIL_H
|
|
|
|
#include "lib/cc/torint.h"
|
|
|
|
/** OpenSSL-based utility functions. */
|
|
void memwipe(void *mem, uint8_t byte, size_t sz);
|
|
|
|
/** Log utility function */
|
|
void crypto_log_errors(int severity, const char *doing);
|
|
|
|
#ifdef CRYPTO_UTIL_PRIVATE
|
|
#ifdef TOR_UNIT_TESTS
|
|
#endif /* defined(TOR_UNIT_TESTS) */
|
|
#endif /* defined(CRYPTO_UTIL_PRIVATE) */
|
|
|
|
#endif /* !defined(TOR_CRYPTO_UTIL_H) */
|
|
|