%module Elgamal %include "std_string.i" %include "std_except.i" %{ #include #include #include #include struct Param { const mcl::EcParam *ecParam; cybozu::RandomGenerator rg; cybozu::crypto::Hash::Name hashName; static inline Param& getParam() { static Param p; return p; } }; #include "elgamal_impl.hpp" %} %include cpointer.i %pointer_functions(bool, p_bool); %include "elgamal_impl.hpp"