Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
wnaf.hpp
Go to the documentation of this file.
1
12#ifndef WNAF_HPP_
13#define WNAF_HPP_
14
15#include <vector>
16
18
19namespace libff {
20
24template<mp_size_t n>
25std::vector<long> find_wnaf(const size_t window_size, const bigint<n> &scalar);
26
30template<typename T, mp_size_t n>
31T fixed_window_wnaf_exp(const size_t window_size, const T &base, const bigint<n> &scalar);
32
36template<typename T, mp_size_t n>
37T opt_window_wnaf_exp(const T &base, const bigint<n> &scalar, const size_t scalar_bits);
38
39} // libff
40
41#include <libff/algebra/scalar_multiplication/wnaf.tcc>
42
43#endif // WNAF_HPP_
T fixed_window_wnaf_exp(const size_t window_size, const T &base, const bigint< n > &scalar)
T opt_window_wnaf_exp(const T &base, const bigint< n > &scalar, const size_t scalar_bits)
std::vector< long > find_wnaf(const size_t window_size, const bigint< n > &scalar)
#define T(meth, val, expected)