Electroneum
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 "crypto.h"
#include "hash.h"
#include "crypto-ops.h"
#include "random.h"
Include dependency graph for crypto.cpp:

Go to the source code of this file.

Classes

struct  crypto::s_comm
 
struct  crypto::s_comm_2
 
struct  crypto::s_comm_3
 

Namespaces

 crypto
 crypto namespace.
 

Functions

void crypto::generate_random_bytes_thread_safe (size_t N, uint8_t *bytes)
 
void crypto::random32_unbiased (unsigned char *bytes)
 
void crypto::random_scalar (ec_scalar &res)
 
void crypto::hash_to_scalar (const void *data, size_t length, ec_scalar &res)
 
void crypto::hash_to_ec (const public_key &key, ge_p3 &res)
 
void crypto::hash_to_ec (const hash &h, ge_p3 &res)
 
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{}