* Big_int a^x mod m
@ 2000-07-23 21:29 Julian Assange
2000-07-24 11:03 ` Remi VANICAT
2000-07-25 9:33 ` Julian Assange
0 siblings, 2 replies; 4+ messages in thread
From: Julian Assange @ 2000-07-23 21:29 UTC (permalink / raw)
To: caml-list; +Cc: proff
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?
Cheers,
Julian.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Big_int a^x mod m
2000-07-23 21:29 Big_int a^x mod m Julian Assange
@ 2000-07-24 11:03 ` Remi VANICAT
2000-07-25 0:44 ` Michel Quercia
2000-07-25 9:33 ` Julian Assange
1 sibling, 1 reply; 4+ messages in thread
From: Remi VANICAT @ 2000-07-24 11:03 UTC (permalink / raw)
To: caml-list
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?
there is at least two other bigint libraries :
one is MLGMP a binding for GNU MP :
http://www.di.ens.fr/~monniaux/programmes.html.en
the other is numerix : http://pauillac.inria.fr/~quercia/
--
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Big_int a^x mod m
2000-07-23 21:29 Big_int a^x mod m Julian Assange
2000-07-24 11:03 ` Remi VANICAT
@ 2000-07-25 9:33 ` Julian Assange
1 sibling, 0 replies; 4+ messages in thread
From: Julian Assange @ 2000-07-25 9:33 UTC (permalink / raw)
To: caml-list; +Cc: proff, quercia
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-07-25 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-23 21:29 Big_int a^x mod m Julian Assange
2000-07-24 11:03 ` Remi VANICAT
2000-07-25 0:44 ` Michel Quercia
2000-07-25 9:33 ` Julian Assange
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox