|
Monero
|
#include "gtest/gtest.h"#include "crypto/crypto.h"#include "ringct/rctOps.h"#include "ringct/multiexp.h"
Macros | |
| #define | TESTSCALAR []{ static const rct::key TESTSCALAR = rct::skGen(); return TESTSCALAR; }() |
| #define | TESTPOW2SCALAR []{ static const rct::key TESTPOW2SCALAR = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}; return TESTPOW2SCALAR; }() |
| #define | TESTSMALLSCALAR []{ static const rct::key TESTSMALLSCALAR = {{5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}; return TESTSMALLSCALAR; }() |
| #define | TESTPOINT []{ static const rct::key TESTPOINT = rct::scalarmultBase(rct::skGen()); return TESTPOINT; }() |
Functions | |
| static rct::key | basic (const std::vector< rct::MultiexpData > &data) |
| static ge_p3 | get_p3 (const rct::key &point) |
| TEST (multiexp, bos_coster_empty) | |
| TEST (multiexp, straus_empty) | |
| TEST (multiexp, pippenger_empty) | |
| TEST (multiexp, bos_coster_zero_and_non_zero) | |
| TEST (multiexp, straus_zero_and_non_zero) | |
| TEST (multiexp, pippenger_zero_and_non_zero) | |
| TEST (multiexp, bos_coster_pow2_scalar) | |
| TEST (multiexp, straus_pow2_scalar) | |
| TEST (multiexp, pippenger_pow2_scalar) | |
| TEST (multiexp, bos_coster_only_zeroes) | |
| TEST (multiexp, straus_only_zeroes) | |
| TEST (multiexp, pippenger_only_zeroes) | |
| TEST (multiexp, bos_coster_only_identities) | |
| TEST (multiexp, straus_only_identities) | |
| TEST (multiexp, pippenger_only_identities) | |
| TEST (multiexp, bos_coster_random) | |
| TEST (multiexp, straus_random) | |
| TEST (multiexp, pippenger_random) | |
| TEST (multiexp, straus_cached) | |
| TEST (multiexp, pippenger_cached) | |
| TEST (multiexp, scalarmult_triple) | |
| #define TESTPOINT []{ static const rct::key TESTPOINT = rct::scalarmultBase(rct::skGen()); return TESTPOINT; }() |
| #define TESTPOW2SCALAR []{ static const rct::key TESTPOW2SCALAR = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}; return TESTPOW2SCALAR; }() |
| #define TESTSCALAR []{ static const rct::key TESTSCALAR = rct::skGen(); return TESTSCALAR; }() |
| #define TESTSMALLSCALAR []{ static const rct::key TESTSMALLSCALAR = {{5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}; return TESTSMALLSCALAR; }() |
|
static |
| TEST | ( | multiexp | , |
| bos_coster_empty | ) |
| TEST | ( | multiexp | , |
| bos_coster_only_identities | ) |
| TEST | ( | multiexp | , |
| bos_coster_only_zeroes | ) |
| TEST | ( | multiexp | , |
| bos_coster_pow2_scalar | ) |
| TEST | ( | multiexp | , |
| bos_coster_random | ) |
| TEST | ( | multiexp | , |
| bos_coster_zero_and_non_zero | ) |
| TEST | ( | multiexp | , |
| pippenger_cached | ) |
| TEST | ( | multiexp | , |
| pippenger_empty | ) |
| TEST | ( | multiexp | , |
| pippenger_only_identities | ) |
| TEST | ( | multiexp | , |
| pippenger_only_zeroes | ) |
| TEST | ( | multiexp | , |
| pippenger_pow2_scalar | ) |
| TEST | ( | multiexp | , |
| pippenger_random | ) |
| TEST | ( | multiexp | , |
| pippenger_zero_and_non_zero | ) |
| TEST | ( | multiexp | , |
| scalarmult_triple | ) |
| TEST | ( | multiexp | , |
| straus_cached | ) |
| TEST | ( | multiexp | , |
| straus_empty | ) |
| TEST | ( | multiexp | , |
| straus_only_identities | ) |
| TEST | ( | multiexp | , |
| straus_only_zeroes | ) |
| TEST | ( | multiexp | , |
| straus_pow2_scalar | ) |
| TEST | ( | multiexp | , |
| straus_random | ) |
| TEST | ( | multiexp | , |
| straus_zero_and_non_zero | ) |