Electroneum
Loading...
Searching...
No Matches
crypto.cpp File Reference
#include "crypto/crypto.cpp"
#include "crypto-tests.h"
Include dependency graph for crypto.cpp:

Go to the source code of this file.

Functions

bool check_scalar (const crypto::ec_scalar &scalar)
void random_scalar (crypto::ec_scalar &res)
void hash_to_scalar (const void *data, std::size_t length, crypto::ec_scalar &res)
void hash_to_ec (const crypto::public_key &key, crypto::ec_point &res)

Function Documentation

◆ check_scalar()

bool check_scalar ( const crypto::ec_scalar & scalar)

Definition at line 36 of file crypto.cpp.

36 {
37 return sc_check(crypto::operator &(scalar)) == 0;
38}
int sc_check(const unsigned char *)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash_to_ec()

void hash_to_ec ( const crypto::public_key & key,
crypto::ec_point & res )

Definition at line 48 of file crypto.cpp.

48 {
49 ge_p3 tmp;
51 ge_p3_tobytes(crypto::operator &(res), &tmp);
52}
const char * res
const char * key
void hash_to_ec(const public_key &key, ge_p3 &res)
Definition crypto.cpp:479
#define ge_p3_tobytes
Definition ge.h:55
Here is the call graph for this function:

◆ hash_to_scalar()

void hash_to_scalar ( const void * data,
std::size_t length,
crypto::ec_scalar & res )

Definition at line 44 of file crypto.cpp.

44 {
45 crypto::hash_to_scalar(data, length, res);
46}
void hash_to_scalar(const void *data, size_t length, ec_scalar &res)
Definition crypto.cpp:126
Here is the call graph for this function:

◆ random_scalar()

void random_scalar ( crypto::ec_scalar & res)

Definition at line 40 of file crypto.cpp.

40 {
42}
void random_scalar(ec_scalar &res)
Definition crypto.cpp:122
Here is the call graph for this function: