aboutsummaryrefslogtreecommitdiffstats
path: root/src/fp.cpp
Commit message (Expand)AuthorAgeFilesLines
* add Fp::setArray with ModMITSUNARI Shigeo2019-03-071-0/+22
* fix crash on x64-CPU without AVXMITSUNARI Shigeo2019-01-311-2/+2
* update cybozulib(Sha api is changed)MITSUNARI Shigeo2018-11-261-21/+2
* setByCSPRNG uses setArrayMask to be compatible to setHashOfMITSUNARI Shigeo2018-11-231-15/+0
* remove warning of vcMITSUNARI Shigeo2018-11-131-2/+2
* set xi_a in Fp::initMITSUNARI Shigeo2018-11-121-6/+2
* enable Fp::sqr for bls12MITSUNARI Shigeo2018-11-011-7/+6
* add mclBn_setRandFuncMITSUNARI Shigeo2018-10-281-2/+4
* add fp_sub6 for bls12MITSUNARI Shigeo2018-10-141-1/+1
* makefile to support cygwin/mingwMITSUNARI Shigeo2018-07-261-1/+1
* check selinux without mprotectMITSUNARI Shigeo2018-07-211-8/+18
* add op.maxN parameterMITSUNARI Shigeo2018-07-101-7/+10
* FpGenerator is remove when xbyak is not usedMITSUNARI Shigeo2018-06-201-8/+0
* fix wrong return valueMITSUNARI Shigeo2018-06-041-1/+1
* reduce including standard headersMITSUNARI Shigeo2018-05-271-0/+2
* build bn_c256 with -fno-exceptionsMITSUNARI Shigeo2018-05-271-4/+4
* reducing string/throwMITSUNARI Shigeo2018-05-271-18/+37
* split error and throwMITSUNARI Shigeo2018-05-271-6/+6
* add Fp::init for mpz_classMITSUNARI Shigeo2018-05-221-17/+10
* remove throw in fp.hppMITSUNARI Shigeo2018-05-221-12/+2
* split getUint64/getInt64 for throwMITSUNARI Shigeo2018-05-221-5/+3
* reduce exceptionMITSUNARI Shigeo2018-05-211-27/+8
* reduce exceptionMITSUNARI Shigeo2018-05-211-74/+3
* conversion.hpp to include/mclMITSUNARI Shigeo2018-05-191-18/+1
* add bool version of Op::initMITSUNARI Shigeo2018-05-181-34/+21
* refactor strToArrayMITSUNARI Shigeo2018-05-181-20/+16
* add hexToArrayMITSUNARI Shigeo2018-05-171-3/+17
* reduce exceptionMITSUNARI Shigeo2018-05-171-42/+40
* remove random_generator.hpp in bn_c_impl.hppMITSUNARI Shigeo2018-05-131-1/+0
* add fast mod for SECP256k1MITSUNARI Shigeo2018-05-091-0/+14
* fix ; recover old spec for SmallMaskMITSUNARI Shigeo2018-05-081-2/+3
* fix typoMITSUNARI Shigeo2018-05-061-4/+4
* add Fp::setArrayMaskModMITSUNARI Shigeo2018-05-041-10/+16
* add assert for setByCSPRNGMITSUNARI Shigeo2018-04-151-0/+1
* remove XorShift from isPrimeMITSUNARI Shigeo2018-02-051-9/+2
* new RandGenMITSUNARI Shigeo2018-02-051-2/+8
* add WrapperRGMITSUNARI Shigeo2018-02-051-0/+16
* add Fp::setHashFuncMITSUNARI Shigeo2018-02-041-13/+23
* use hasNext for loadWordMITSUNARI Shigeo2017-12-261-10/+4
* add Fp::save, loadMITSUNARI Shigeo2017-12-241-17/+11
* remove testHashAndMapto in bn_test.cppMITSUNARI Shigeo2017-09-241-6/+9
* use SHA-2 if MCL_DONT_USE_OPENSSLMITSUNARI Shigeo2017-09-241-11/+7
* disable messageMITSUNARI Shigeo2017-08-031-1/+1
* add portable mul for 32-bitMITSUNARI Shigeo2017-07-311-9/+10
* add MCL_VINT_FIXED_BUFFERMITSUNARI Shigeo2017-07-311-1/+1
* use MCL_SIZEOF_UNIT macro instead of CYBOZU_OS_BITMITSUNARI Shigeo2017-07-311-6/+6
* fix many bugs of VintMITSUNARI Shigeo2017-07-231-4/+5
* add benchmark of VintMITSUNARI Shigeo2017-07-231-0/+6
* build ok;test ngMITSUNARI Shigeo2017-07-221-0/+23
* move Frobenius to Fp2MITSUNARI Shigeo2017-06-261-0/+1
* check the value of MCL_MAX_BIT_SIZEMITSUNARI Shigeo2017-06-241-1/+4
* rename setMsg to SetHashOfMITSUNARI Shigeo2017-05-301-2/+2
* change spec of copyAndMaskMITSUNARI Shigeo2017-05-291-1/+4
* add littleEndianToHexStrMITSUNARI Shigeo2017-05-291-0/+30
* rename IoEcComp to IoFixedSizeByteSeqMITSUNARI Shigeo2017-05-281-1/+1
* fix check limit sizeMITSUNARI Shigeo2017-05-121-1/+1
* add #if MCL_MAX_UNIT_SIZE >=MITSUNARI Shigeo2017-05-081-2/+6
* rename maxOpUnitSize to maxUnitSizeMITSUNARI Shigeo2017-05-081-3/+3
* reduce code generator if MCL_MAX_BIT_SIZE=256MITSUNARI Shigeo2017-05-081-10/+12
* remove warning of vc2015MITSUNARI Shigeo2017-05-061-1/+1
* remove unnecessary headerMITSUNARI Shigeo2017-05-041-1/+0
* [change] throw exception if prefix conflicts with baseMITSUNARI Shigeo2017-05-011-10/+16
* change value of IoPrefixMITSUNARI Shigeo2017-05-011-2/+2
* change api of arrayToStrMITSUNARI Shigeo2017-04-281-3/+5
* add Fp2::readStreamMITSUNARI Shigeo2017-04-271-2/+3
* use readStreamMITSUNARI Shigeo2017-04-271-18/+50
* add IoTight repl for elliptic curveMITSUNARI Shigeo2017-04-091-11/+10
* add copyByteToUnitAsLE and copyUnitToByteAsLEMITSUNARI Shigeo2017-04-081-2/+53
* llvm_mont is faster for bn384MITSUNARI Shigeo2017-03-251-1/+1
* add Fp::setMsg()MITSUNARI Shigeo2017-02-031-0/+18
* change selection of Mont and SqrMont for bitSize == 1024MITSUNARI Shigeo2017-01-271-1/+4
* test of 1024 bit sizeMITSUNARI Shigeo2017-01-261-8/+11
* fix recover condition of memory in isEnableJITMITSUNARI Shigeo2017-01-241-0/+3
* fix set pointerMITSUNARI Shigeo2017-01-191-3/+2
* disable Xbyak if SELinuxMITSUNARI Shigeo2017-01-181-2/+24
* a little faster fp2_mul for llvmMITSUNARI Shigeo2017-01-111-0/+1
* enable bmi2MITSUNARI Shigeo2016-12-291-1/+1
* fp_generator includes xbyakMITSUNARI Shigeo2016-12-291-5/+1
* detect bmi2 featureMITSUNARI Shigeo2016-12-281-3/+13
* support w/wo bmi2MITSUNARI Shigeo2016-12-281-1/+1
* add gmp version of Mont with not full primeMITSUNARI Shigeo2016-12-261-2/+7
* unify Sub and SubNFMITSUNARI Shigeo2016-12-251-2/+2
* unify Add and AddNFMITSUNARI Shigeo2016-12-251-2/+2
* add mcl_fp_addNFMITSUNARI Shigeo2016-12-241-1/+2
* enable mcl_fp_subNF for not full bit primeMITSUNARI Shigeo2016-12-241-1/+5
* disable llvm if gmp/gmp_montMITSUNARI Shigeo2016-11-281-19/+23
* fix ; dump for 32-bit modeMITSUNARI Shigeo2016-11-281-0/+17
* remove mode in setOpMITSUNARI Shigeo2016-11-221-25/+21
* shortcut of mulUnitMITSUNARI Shigeo2016-11-211-1/+1
* rename fp_llvm to low_func_llvmMITSUNARI Shigeo2016-11-161-1/+1
* split fp_proto.hpp into proto.hpp and low_func.hppMITSUNARI Shigeo2016-11-151-1/+2
* optimize divBy2MITSUNARI Shigeo2016-11-141-6/+5
* (inner) set half = (p+1)/2MITSUNARI Shigeo2016-11-141-1/+1
* fix check for MCL_MAX_BIT_SIZE > 521MITSUNARI Shigeo2016-10-311-8/+9
* rename MCL_MAX_OP_BIT_SIZE to MCL_MAX_BIT_SIZEMITSUNARI Shigeo2016-10-281-3/+3
* split fp_llvm.hppMITSUNARI Shigeo2016-10-271-0/+3
* move specialization of llvm function to src/fp_proto.hppMITSUNARI Shigeo2016-10-271-39/+0
* rename MulUnit_Pre to MulUnitPreMITSUNARI Shigeo2016-10-211-2/+2
* rename mul_Unit to mulUnitMITSUNARI Shigeo2016-10-201-4/+4
* rename addNC, subNC to addPre, subPreMITSUNARI Shigeo2016-10-141-7/+7
* rewrite setOpMITSUNARI Shigeo2016-10-111-47/+34
* remove OpFuncMITSUNARI Shigeo2016-10-111-101/+39
* unify low_gmp.hpp to fp_proto.hppMITSUNARI Shigeo2016-10-111-10/+0
* add generic SqrMont, Mul, SqrMITSUNARI Shigeo2016-10-071-79/+7
* rename function from bit to NMITSUNARI Shigeo2016-10-071-31/+31
* use N instead of bitSizeMITSUNARI Shigeo2016-10-071-84/+73
* avoid SET_OP macroMITSUNARI Shigeo2016-10-061-91/+103
* refactoring setupMITSUNARI Shigeo2016-10-051-103/+124
* refactor using gmpMITSUNARI Shigeo2016-10-041-135/+78
* use AddPreMITSUNARI Shigeo2016-10-041-31/+57
* refactoring Op::initMITSUNARI Shigeo2016-10-031-21/+68
* rename LLVM functions ; add 'L'MITSUNARI Shigeo2016-09-291-17/+17
* remove montPUMITSUNARI Shigeo2016-09-291-2/+4
* change prototype of mul/sqrMITSUNARI Shigeo2016-09-281-3/+4
* unity fpDbl_modMITSUNARI Shigeo2016-09-271-5/+7
* same prototype of montRedPU and fpDbl_modPMITSUNARI Shigeo2016-09-271-2/+6
* move rp and p to the top of OpMITSUNARI Shigeo2016-09-271-2/+2
* rename addP, subP to add, subMITSUNARI Shigeo2016-09-271-10/+10
* remove addP, subPMITSUNARI Shigeo2016-09-271-3/+3
* fp_neg requires pMITSUNARI Shigeo2016-09-271-2/+2
* op.sub requires pMITSUNARI Shigeo2016-09-261-2/+2
* op.add requires pMITSUNARI Shigeo2016-09-261-7/+8
* rewrite fp_testMITSUNARI Shigeo2016-09-181-4/+3
* fix some functions and implementation of ioMITSUNARI Shigeo2016-09-051-14/+1
* use prefix(0x and 0b) if it conflicts with baseMITSUNARI Shigeo2016-09-051-6/+3
* fix ; remove wornings on clangMITSUNARI Shigeo2016-09-011-1/+2
* add getIoPrefixMITSUNARI Shigeo2016-09-011-1/+3
* move setIoMode function to globalMITSUNARI Shigeo2016-08-291-1/+15
* disable SET_OP_DBL_SIZE if MCL_MAX_OP_BIT_SIZE < 768MITSUNARI Shigeo2016-08-011-5/+32
* add 576...768MITSUNARI Shigeo2016-07-281-4/+4
* add/sub for 768-bit primeMITSUNARI Shigeo2016-07-281-19/+11
* add large prime sampleMITSUNARI Shigeo2016-07-111-0/+3
* move low gmp function to log_gmp.hppMITSUNARI Shigeo2016-06-211-42/+1
* {add,sub}S are removedMITSUNARI Shigeo2016-06-131-2/+2
* use add/sub LMITSUNARI Shigeo2016-06-121-2/+2
* fix error on armv71MITSUNARI Shigeo2016-06-061-1/+1
* add fp_mont for gmpMITSUNARI Shigeo2016-06-061-0/+28
* move ModeToStr to fp.cppMITSUNARI Shigeo2016-06-061-0/+34
* make low* functionsMITSUNARI Shigeo2016-06-061-28/+68
* fp_montMUC is okMITSUNARI Shigeo2016-06-051-4/+4
* fixMITSUNARI Shigeo2016-06-051-0/+1
* add fp_mont for gmpMITSUNARI Shigeo2016-06-051-0/+27
* set_pDbl is removedMITSUNARI Shigeo2016-06-051-6/+0
* use mpn_tdiv_qrMITSUNARI Shigeo2016-06-051-12/+4
* rewrite fpDbl_addPCMITSUNARI Shigeo2016-06-051-16/+1
* rewrite fpDbl_subPCMITSUNARI Shigeo2016-06-041-12/+13
* remove old codeMITSUNARI Shigeo2016-06-041-75/+0
* start to use mpn_* functionsMITSUNARI Shigeo2016-06-031-0/+37
* fix Montgomery parameter for 32-bit modeMITSUNARI Shigeo2016-05-061-3/+4
* rename mulU to mul_UnitMITSUNARI Shigeo2016-05-031-3/+3
* rename Gmp to gmpMITSUNARI Shigeo2016-04-191-15/+15
* rename xi_c_ to xi_a_MITSUNARI Shigeo2016-04-191-2/+2
* rename mulI to mulUMITSUNARI Shigeo2016-04-181-3/+3
* xbyak version supports NICT521MITSUNARI Shigeo2016-03-281-3/+1
* mod_NIST_P521 by llvmMITSUNARI Shigeo2016-03-281-1/+10
* rename isNIST_P192 to primeModeMITSUNARI Shigeo2016-03-241-4/+7
* add fpDbl_mod_NIST_P192MITSUNARI Shigeo2016-03-231-6/+5
* add mcl_fp_mulIPreMITSUNARI Shigeo2016-03-221-0/+1
* add mulIMITSUNARI Shigeo2016-03-221-0/+21
* check maxBitSizeMITSUNARI Shigeo2016-03-191-0/+3
* move fp_proto.hpp from include to srcMITSUNARI Shigeo2016-03-171-1/+1
* move conversion.hpp from include to srcMITSUNARI Shigeo2016-03-161-1/+1
* mov fp_generator from include to srcMITSUNARI Shigeo2016-03-161-1/+1
* fix mcl_fpDbl_mod_NIST_P192MITSUNARI Shigeo2016-03-151-3/+10
* fix detection of mulx at mulPre2/sqrPre2MITSUNARI Shigeo2016-03-131-0/+1
* add test for NIST_P192MITSUNARI Shigeo2016-03-121-1/+1
* correct compare mx with myMITSUNARI Shigeo2016-03-121-1/+1
* remove warning of vcMITSUNARI Shigeo2016-03-101-0/+4
* rename fp_mod to fpDbl_modMITSUNARI Shigeo2016-03-081-8/+8
* refactor test of fp_generatorMITSUNARI Shigeo2016-03-061-1/+1
* move setting of opMITSUNARI Shigeo2016-03-061-12/+0
* add opMITSUNARI Shigeo2016-03-051-1/+1
* add montRed by Xbyak(not running)MITSUNARI Shigeo2016-03-011-0/+3
* add montRedMITSUNARI Shigeo2016-03-011-1/+2
* test is ok on montMITSUNARI Shigeo2016-02-231-3/+3
* add fp_modMITSUNARI Shigeo2016-02-221-6/+6
* rename fullBit to isFullBitMITSUNARI Shigeo2016-02-221-4/+4
* fix fpDbl_addMITSUNARI Shigeo2016-02-201-1/+0
* FpDBl::add does not pass testMITSUNARI Shigeo2016-02-201-10/+15
* FpDbl::add/sub okMITSUNARI Shigeo2016-02-181-9/+9
* fill extra region of z with zeroMITSUNARI Shigeo2016-02-181-0/+2
* fix ; set zero if p[] == 0MITSUNARI Shigeo2016-02-181-1/+6
* add test of FpDbl::add/subMITSUNARI Shigeo2016-02-181-8/+18
* set fpDbl_addPMITSUNARI Shigeo2016-02-171-1/+9
* add fpDbl_add, subMITSUNARI Shigeo2016-02-171-5/+43
* add fp_addNC by llvmMITSUNARI Shigeo2016-02-091-0/+6
* test of addNC/subNCMITSUNARI Shigeo2016-02-081-3/+4
* add addNC/subNCMITSUNARI Shigeo2016-02-081-0/+29
* disable warning of vcMITSUNARI Shigeo2016-02-071-3/+12
* add fp2MITSUNARI Shigeo2016-02-031-6/+6
* rename op functions to fp_*MITSUNARI Shigeo2016-02-021-50/+50
* use gmp for >256MITSUNARI Shigeo2016-01-251-3/+8
* use clearArray instead of getArrayMITSUNARI Shigeo2016-01-251-3/+5
* fix sqrMITSUNARI Shigeo2016-01-241-9/+6
* add sqrt but not enableMITSUNARI Shigeo2016-01-241-1/+18
* int64_t(1<<63) is invalidMITSUNARI Shigeo2016-01-231-0/+1
* add test of getInt64MITSUNARI Shigeo2016-01-051-0/+63
* add isGreater, etc.MITSUNARI Shigeo2015-12-281-2/+2
* move mcl.lib from bin to libMITSUNARI Shigeo2015-09-061-1/+1
* rename macro ; default define MCL_USE_XBYAK, MCL_USE_LLVMMITSUNARI Shigeo2015-07-071-4/+4
* mode select runs wellMITSUNARI Shigeo2015-07-071-6/+9
* reduce toMont inf invMontOpMITSUNARI Shigeo2015-07-051-8/+13
* disable useMont for NIST_P192MITSUNARI Shigeo2015-07-051-2/+3
* add invMontOpMITSUNARI Shigeo2015-07-041-1/+14
* USE_LLVM=1 does not runMITSUNARI Shigeo2015-07-031-8/+6
* add wrapper for mcl_fp_montMITSUNARI Shigeo2015-07-021-32/+32
* add test of setArrayMaskMITSUNARI Shigeo2015-06-121-5/+1
* unify toArray and Gmp::getArrayMITSUNARI Shigeo2015-06-121-17/+17
* QQQ:test copyAndMaskMITSUNARI Shigeo2015-06-111-30/+22
* add elgamalMITSUNARI Shigeo2015-06-111-0/+21
* rename len to sizeMITSUNARI Shigeo2015-06-111-1/+1
* rename len to sizeMITSUNARI Shigeo2015-06-111-19/+19
* change method nameMITSUNARI Shigeo2015-06-081-4/+4
* under refactoringMITSUNARI Shigeo2015-06-081-40/+48
* rename filesMITSUNARI Shigeo2015-06-081-2/+2
* under refactoringMITSUNARI Shigeo2015-06-081-0/+60
* cast N to intMITSUNARI Shigeo2015-06-071-1/+1
* split UnitMITSUNARI Shigeo2015-06-071-1/+1
* remove local::MITSUNARI Shigeo2015-06-071-9/+9
* remove mont_fp.hppMITSUNARI Shigeo2015-06-051-5/+4
* rename getCoff to getMontgomeryCoeffMITSUNARI Shigeo2015-06-051-28/+28
* move some functions to srcMITSUNARI Shigeo2015-06-051-1/+63
* rename functionsMITSUNARI Shigeo2015-06-051-53/+9
* MontFp is a simple classMITSUNARI Shigeo2015-06-031-2/+14
* prepair to split FpGeneratorMITSUNARI Shigeo2015-06-031-0/+9
* use Op instead of pMITSUNARI Shigeo2015-06-011-2/+2
* use macroMITSUNARI Shigeo2015-06-011-120/+30
* move initOp to srcMITSUNARI Shigeo2015-06-011-0/+255
* add fp.cppMITSUNARI Shigeo2015-05-271-0/+50