aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/tangerine-network/mcl/ffi/java/elgamal.i
blob: 4107231749b828181ceb19734964c473aa500347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%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"