biginteger on Objective-c

前端 未结 5 2016
孤城傲影
孤城傲影 2020-11-28 15:09

Can anyone provide code for a BigInteger implementation in objective-c that provides a PowMod function ?

5条回答
  •  -上瘾入骨i
    2020-11-28 15:43

    As plain C library, openssl's BN should be able to do it.

    BN_mod_exp() computes a to the p-th power modulo m (r=a^p % m). This function uses less time and space than BN_exp().

提交回复
热议问题