Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Julian Assange <proff@iq.org>
To: caml-list@inria.fr
Cc: proff@iq.org, quercia@cal.enst.fr
Subject: Re: Big_int a^x mod m
Date: 25 Jul 2000 19:33:29 +1000	[thread overview]
Message-ID: <wxsnsyftau.fsf@suburbia.net> (raw)
In-Reply-To: Julian Assange's message of "24 Jul 2000 07:29:06 +1000"

Julian Assange <proff@iq.org> writes:

>  val (**/) : num -> num -> num 
>  val power_num : num -> num -> num
>    Exponentiation
> 
> The num library documentation doesn't seem to support modular
> exponentiation. This is seems to be an unusual oversight, and means
> the library isn't useful for real-world cryptographic applications.
> 
> Is anyone working on adding mod exp's? Or are there other bigint
> ocaml libraries?

Following this up, there is the fast Numerix library, an extended
replacement for Big_int, which also contains a subset of bindings to
libgmp (Numerix native code is usally faster than gmp2.x -- but it's
worth noting that gmp3.0 has recently been released).

It would be nice to see this library replace Big_int entirely,
with wrappers for for backwards compatability.

Unfortunately Numerix doesn't support modular exponents either,
although it does support a lot of other nice operations that Big_int
does not, and is well structured.

Numerix, btw is not listed either in the Hump or in Gerd's O'Caml
link database.

But you can find it here:

    http://pauillac.inria.fr/~quercia/

There is also a naive libgmp ocaml wrapper:

   http://www.di.ens.fr/~monniaux/download/mlgmp_0.13.tar.gz  

Which *does* contain bindings to the gmp modular exponentiation
functions mpz_powm and mpz_powm_ui.

Cheers,
Julian.



      parent reply	other threads:[~2000-07-25 22:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-23 21:29 Julian Assange
2000-07-24 11:03 ` Remi VANICAT
2000-07-25  0:44   ` Michel Quercia
2000-07-25  9:33 ` Julian Assange [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wxsnsyftau.fsf@suburbia.net \
    --to=proff@iq.org \
    --cc=caml-list@inria.fr \
    --cc=quercia@cal.enst.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox