#include "crypto/crypto.cpp"
#include "crypto-tests.h"
Go to the source code of this file.
◆ check_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 *)
◆ hash_to_ec()
Definition at line 48 of file crypto.cpp.
48 {
52}
void hash_to_ec(const public_key &key, ge_p3 &res)
◆ 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 {
46}
void hash_to_scalar(const void *data, size_t length, ec_scalar &res)
◆ random_scalar()
Definition at line 40 of file crypto.cpp.
40 {
42}
void random_scalar(ec_scalar &res)