struct library \
{ \
static constexpr
const char*
name() noexcept {
return BOOST_PP_STRINGIZE(library); } \
{ \
return
CRYPTO_FUNCTION(library, _generate_key_derivation) (
out.data, tx_pub.data, view_sec.data) == 0; \
} \
{ \
return
CRYPTO_FUNCTION(library, _generate_subaddress_public_key) (
out.data, spend_pub.data, scalar.data) == 0; \
} \
};
void derivation_to_scalar(const key_derivation &derivation, size_t output_index, ec_scalar &res)
Definition: crypto.h:239
POD_CLASS key_derivation
Definition: crypto.h:88
#define CRYPTO_FUNCTION(library, func)
Definition: benchmark.cpp:83
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Definition: crypto.h:72
bool generate_key_derivation(const public_key &key1, const secret_key &key2, key_derivation &derivation)
Definition: crypto.h:232
POD_CLASS ec_scalar
Definition: crypto.h:59
bool derive_subaddress_public_key(const public_key &out_key, const key_derivation &derivation, std::size_t output_index, public_key &result)
Definition: crypto.h:246
POD_CLASS public_key
Definition: crypto.h:61
const char * name
Definition: options.c:30