danicoin/tests/crypto/crypto-tests.h

24 lines
706 B
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
2014-03-03 22:07:58 +00:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#if defined(__cplusplus)
#include "crypto/crypto.h"
extern "C" {
#endif
void setup_random(void);
#if defined(__cplusplus)
}
2015-07-30 15:22:07 +00:00
bool check_scalar(const Crypto::EllipticCurveScalar &scalar);
void random_scalar(Crypto::EllipticCurveScalar &res);
void hash_to_scalar(const void *data, size_t length, Crypto::EllipticCurveScalar &res);
void hash_to_point(const Crypto::Hash &h, Crypto::EllipticCurvePoint &res);
void hash_to_ec(const Crypto::PublicKey &key, Crypto::EllipticCurvePoint &res);
2014-03-03 22:07:58 +00:00
#endif