From owner-freebsd-arch Sat Jul 14 6: 7:21 2001 Delivered-To: freebsd-arch@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 9FE0937B406 for ; Sat, 14 Jul 2001 06:07:15 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f6ED7FM05259 for ; Sat, 14 Jul 2001 06:07:15 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 6A27738FD; Sat, 14 Jul 2001 06:07:15 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: tlambert2@mindspring.com Cc: Dima Dorfman , arch@FreeBSD.ORG Subject: Re: Getting rid of libgmp In-Reply-To: <3B4F4062.1B661B6D@mindspring.com> Date: Sat, 14 Jul 2001 06:07:15 -0700 From: Peter Wemm Message-Id: <20010714130715.6A27738FD@overcee.netplex.com.au> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > Dima Dorfman wrote: > > > > Hi folks, > > > > A week or so ago there was a thread on -current about removing libgmp. > > It was generally agreed that this was a good idea, but (as usual) > > somebody has to do the work, and some people wanted FreeBSD to > > continue to supply a libmp-compatible interface. > > > > To satisfy both groups, I propose that we import a libmp that is > > implemented in terms of the OpenSSL BIGNUM library. Attached below is > > a sharball of such an implementation. I couldn't find very good > > documentation on the libmp interface, but I've tested this with > > most[1] of the software in FreeBSD that uses libmp, and all programs > > work as well as they did before. > > > > The library is quite small; all functions except msqrt() have a BIGNUM > > equivilent. It requires that the program using it be linked with > > -lcrypto[2]. > > > > Comments? Suggestions? > > Benchmarks, proving that you increased, or at least did not > injure performance with this change? This isn't really relevant. There are only a couple of things that use it. Namely the secure rpc key generators, the secure diffie hellman rpc key exchange, and telnet SRA key exchange at startup. None of these use it more than once (or once per connection). telnet is already linked against libcrypto. It should be using that for bignum support instead of libmp. libmp is dead. libcrypto is the interface of choice to use these days, or libgmp. Nothing in our tree uses libgmp. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message