Re: dropping standalone ecl builds

Hanno Böck <[email protected]>
Newsgroups gmane.comp.mozilla.crypto
Message-ID <20160604213820.4bf829b8@pc1>
On Tue, 31 May 2016 07:56:21 +0200
Franziskus Kiefer <[email protected]> wrote:

> thanks for your feedback. That's a great use-case of ecl as standalone
> library. Removal of ecl as a library is part of a bigger effort to
> clean up NSS and make it easier to use.
> 
> As far as I can see the low level elliptic curve calculation functions
> > aren't exposed as public functions in NSS itself.  
> 
> 
> You're right. But dropping ecl builds goes together with the work in
> [1], which allows you to build NSS with FREEBL_TEST=1 (the exact name
> might change) that provides you with an NSS build (a freebl library)
> that exposes all internal functions. This makes testing of NSS (in
> particular freebl internals) simpler and allows you to do for example
> the things you used the standalone ecl library for.
> 
> Would this work for you? The only difference would be the library you
> link against and that you have to build all of NSS.

Based on my experience the build of NSS is much murkier than the build
of libmpi/libecl. Of course this is an issue on its own which maybe
should be improved in general.

I always found it very convenient that libmpi/libecl could be built as
a static library (.a) very easily with custom cflag/cc settings.

As far as I'm aware there is no easy way to do this with nss. Also
cflags/cc variable handling seems rather unusual and things like USE_64
complicate things.

If things were as simple as
make FREEBL_TEST=1 CC=[something] CXX=[something] libnss.a
then I'd be happy, but I think it ain't that easy right now.

-- 
Hanno Böck
https://hboeck.de/

mail/jabber: [email protected]
GPG: BBB51E42

-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJXUtnMAAoJEKWIAHK7tR5CZ9IP/RXgYOZRkfpkgTsj+D4FcSao
YnlT9hgzLdrCrcOvq6XXx5T2lM5YCRWl73BiK5pfynzp5C3vbB+/6GNnkNyECu8x
wBKwfjEReRvkoQvfh/VhelwVjIlBCgy2TWPYokOMqmZv87ei3kiH6P0JP++Jif54
eTTrjpWYm0sQTuqYQ72ecwXc2mWOU+3SckflnrEX9xPi+/jZGCTZ1+/nT1kZGfZL
GGSXPJHxFP1SVrkJ9qeUGaV2/fU4a7Og4bF6Dtcj8pF+WYIT6GqvSe4wcltaf2oT
HmhSssU3BjAcvr1l3idAYztKFcrhgthcqZTMfcTSQsJDfZbA0FoBX5gLGY3ND6y+
jXwEp5N+Vv/9w6ii2ei3uOXAjP89PfqOuEANd7LEA94MDosmmza4//SAAbzJsPDB
nd35i+XSYwHse1VFWe856ygqN1tOjgk5Mg2pUfajCh9grzidQpdIx1aQdW+qDkz/
gVEeLTHRrfg8BKW02NGyvme24k+yE2j/21MFRSSnApTyn6eox4FACDOaO/K5+OcC
lCbVO58sQFNiK5qzR907LM3gxrxtxu/SgKihK05NWrYUa5vPuT8t+ZQdjRW97kAo
N4oDoFsz77wn4wFdP4nsf3mTabPvLBeQqWHdKflmvqZDLsCrWRAGaaJlXfucB3I5
LmtWEZigNlXIXllpHQPT
=amH+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.