Skip to content

KeyGenerator::ElGamal::Params

Prime and generator parameter struct.

#include <ElGamalKeyGenerator.hpp>

Public Functions

Name
Params(cpp_int prime, cpp_int gen)
Construct a new Params object.

Public Attributes

Name
cpp_int prime_number
The safe prime number used by El Gamal.
cpp_int generator
The generator used by El Gamal.

Public Functions Documentation

function Params

inline Params(
    cpp_int prime,
    cpp_int gen
)

Construct a new Params object.

Parameters:

  • prime prime number value
  • gen generator value

Public Attributes Documentation

variable prime_number

cpp_int prime_number;

The safe prime number used by El Gamal.

variable generator

cpp_int generator;

The generator used by El Gamal.


Updated on 2026-04-13 at 23:22:46 -0700