Monero
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
crypto.cpp File Reference
#include <unistd.h>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <boost/thread/mutex.hpp>
#include <boost/thread/lock_guard.hpp>
#include <boost/shared_ptr.hpp>
#include "common/varint.h"
#include "warnings.h"
#include "crypto.h"
#include "hash.h"
#include "cryptonote_config.h"
#include "crypto-ops.h"
#include "random.h"
Include dependency graph for crypto.cpp:

Classes

struct  crypto::s_comm
 
struct  crypto::s_comm_2_v1
 
struct  crypto::s_comm_2
 
struct  crypto::ec_point_pair
 
struct  crypto::rs_comm
 

Namespaces

namespace  crypto
 crypto namespace.
 

Functions

static unsigned char * crypto::operator& (ec_point &point)
 
static const unsigned char * crypto::operator& (const ec_point &point)
 
static unsigned char * crypto::operator& (ec_scalar &scalar)
 
static const unsigned char * crypto::operator& (const ec_scalar &scalar)
 
boost::mutex & crypto::get_random_lock ()
 
void crypto::generate_random_bytes_thread_safe (size_t N, uint8_t *bytes)
 
void crypto::add_extra_entropy_thread_safe (const void *ptr, size_t bytes)
 
static bool crypto::less32 (const unsigned char *k0, const unsigned char *k1)
 
void crypto::random32_unbiased (unsigned char *bytes)
 
static void crypto::random_scalar (ec_scalar &res)
 
void crypto::hash_to_scalar (const void *data, size_t length, ec_scalar &res)
 
static void crypto::hash_to_ec (const public_key &key, ge_p3 &res)
 
static POP_WARNINGS size_t crypto::rs_comm_size (size_t pubs_count)
 

Variables

const crypto::public_key crypto::null_pkey = crypto::public_key{}
 
const crypto::secret_key crypto::null_skey = crypto::secret_key{}