elgamal.hpp
Go to the documentation of this file.
61 return number<Backend, ExpressionTemplates>::encode_fixed_length_int_pair(a, b, m_group.p_bytes());
81 inline static bool decrypt(signature_type &res, const number_type &val, const key_schedule_type &key) {
boost::mpl::apply< AccumulatorSet, tag::pubkey< ProcessingMode > >::type::result_type pubkey(const AccumulatorSet &acc)
Definition: accumulators/pubkey.hpp:106
Definition: pair.hpp:31
Definition: elgamal.hpp:66
constexpr static const std::size_t key_schedule_bits
Definition: elgamal.hpp:75
field_type::value_type value_type
Definition: elgamal.hpp:70
field_type::modulus_type key_schedule_type
Definition: elgamal.hpp:76
constexpr static const std::size_t key_bits
Definition: elgamal.hpp:72
std::tuple< value_type, value_type > signature_type
Definition: elgamal.hpp:79
field_type::number_type number_type
Definition: elgamal.hpp:69
FieldType field_type
Definition: elgamal.hpp:67
static bool decrypt(signature_type &res, const number_type &val, const key_schedule_type &key)
Definition: elgamal.hpp:81
constexpr static const std::size_t signature_bits
Definition: elgamal.hpp:78
field_type::modulus_type key_type
Definition: elgamal.hpp:73
Definition: elgamal.hpp:34
field_type::modulus_type key_schedule_type
Definition: elgamal.hpp:43
constexpr static const std::size_t key_schedule_bits
Definition: elgamal.hpp:42
field_type::value_type value_type
Definition: elgamal.hpp:37
constexpr static const std::size_t key_bits
Definition: elgamal.hpp:39
field_type::modulus_type key_type
Definition: elgamal.hpp:40
std::tuple< value_type, value_type > signature_type
Definition: elgamal.hpp:46
constexpr static const std::size_t signature_bits
Definition: elgamal.hpp:45
static bool encrypt(const signature_type &val, const key_schedule_type &key)
Definition: elgamal.hpp:48
Definition: elgamal.hpp:117
el_gamal_private_key< field_type > private_key_type
Definition: elgamal.hpp:121
el_gamal_public_key< field_type > public_key_type
Definition: elgamal.hpp:120