Skip to content

Commit

Permalink
[java] use 512 bit(default) instead of 521
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Dec 4, 2022
1 parent dc929ce commit 4931725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ffi/java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ test_elgamal: ElgamalTest.class $(ELGAMAL_LIB)
$(JAVA_EXE) ElgamalTest -e NIST_P256 -h sha256
$(JAVA_EXE) ElgamalTest -e secp256k1 -h sha256
$(JAVA_EXE) ElgamalTest -e NIST_P384 -h sha384
# MCL_MAX_BIT_SIZE should be 521
# $(JAVA_EXE) ElgamalTest -e NIST_P521 -h sha512

test_mcl: MclTest.class $(MCLJAVA_LIB)
Expand Down
4 changes: 2 additions & 2 deletions ffi/java/elgamal_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <mcl/ecparam.hpp>
#include <mcl/elgamal.hpp>

typedef mcl::FpT<mcl::FpTag, 521> Fp;
typedef mcl::FpT<mcl::ZnTag, 521> Zn;
typedef mcl::FpT<mcl::FpTag> Fp;
typedef mcl::FpT<mcl::ZnTag> Zn;
typedef mcl::EcT<Fp> Ec;
typedef mcl::ElgamalT<Ec, Zn> Elgamal;

Expand Down

0 comments on commit 4931725

Please sign in to comment.