mirror of
https://github.com/fluencelabs/fluence-VRF
synced 2025-06-10 13:31:36 +00:00
29 lines
481 B
OpenEdge ABL
29 lines
481 B
OpenEdge ABL
%module Elgamal
|
|
|
|
%include "std_string.i"
|
|
%include "std_except.i"
|
|
|
|
|
|
%{
|
|
#include <cybozu/random_generator.hpp>
|
|
#include <cybozu/crypto.hpp>
|
|
#include <mcl/fp.hpp>
|
|
#include <mcl/ecparam.hpp>
|
|
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"
|