Граф коммитов

250 Коммитов

Автор SHA1 Сообщение Дата
Richard Newman f6f788b8a4 Bug 638297: reuse buffers for generateRandomBytes. r=philiKON 2011-03-03 12:20:43 -08:00
Richard Newman bf83f7c757 Bug 638297: share buffers for encryption and decryption. r=philiKON 2011-03-03 11:10:52 -08:00
Richard Newman 49ec368023 Bug 638297: object reuse in WeaveCrypto. r=philiKON 2011-03-03 11:10:40 -08:00
Richard Newman 52db8608c2 Bug 618496: memoization of PK11SymKey. r=philiKON 2011-03-02 15:18:46 -08:00
Richard Newman cdb5761dfb Bug 618496: Revisit memoization of SECItems. r=philiKON 2011-03-02 15:09:28 -08:00
Philipp von Weitershausen 4012ec2906 Merge fx-sync 2011-03-02 16:32:28 -08:00
Richard Newman 2b46b4da5e Bug 618496: remove algorithm adaptability in WeaveCrypto. r=philiKON 2011-03-02 10:08:43 -08:00
Philipp von Weitershausen 6e13f1b6f3 Merge fx-sync 2011-03-01 21:55:52 -08:00
Richard Newman 686e74cbe3 Bug 618496: stripping out unused WeaveCrypto attributes. r=philiKON 2011-03-01 21:37:44 -08:00
Richard Newman 4093641ad8 Bug 602110: duplicate declaration of nss_t.SECOidTag. r=philiKON a=mconnor 2011-03-01 11:32:16 -08:00
Richard Newman 74df0a04ca Bug 627097: Audit usage of js-ctypes in Sync/WeaveCrypto. r=philiKON 2011-01-25 21:31:41 -08:00
Richard Newman 0b37a22351 Bug 617650: avoid unrooting string in makeSECItem. r=philiKON 2011-01-19 16:17:58 -08:00
Philipp von Weitershausen 56ed182429 Back out Bug 610914 as it causes Bug 618068. 2010-12-10 16:18:57 -08:00
Richard Newman 901929364b Bug 610914: performance improvements for WeaveCrypto. 2010-12-06 11:52:30 -08:00
Richard Newman f0b19a496e Bug 603489, 614489: simplified crypto. r=mconnor 2010-11-29 16:41:17 -08:00
Brian Smith a3e5ff1a68 bug 629090: Prevent g^x mod p == 1 in Sync J-PAKE. r=mconnor and r=philipp. a=blocker
--HG--
extra : rebase_source : ca7b5d6f0744858ada042d7d3dc9804ea35ab9aa
2011-02-09 13:57:28 -08:00
Philipp von Weitershausen cd229a3326 Merge backout 2010-10-28 17:09:58 -07:00
Philipp von Weitershausen 72f5932f42 Backed out changeset fb506072dca8 due to crashes
Bug 570619 - Move crypto off the main thread
2010-10-28 17:05:53 -07:00
Mike Hommey 93677ce050 Bug 583209 - Use ctypes.libraryName and don't use a full path to load libnss3 from weavecrypto. [r=dwitte] 2010-10-15 11:45:31 +02:00
Philipp von Weitershausen 1fd27817df Bug 570619 - Move crypto off the main thread [r=mconnor,sdwilsh]
Provide a ThreadedCrypto object that defers method calls to another thread while keeping the synchronous API.
2010-10-14 21:22:29 +02:00
Philipp von Weitershausen 9d3f328393 Bug 562431 - Move tests for WeaveCrypto to services/crypto/ [r=mconnor]
--HG--
rename : services/sync/tests/unit/test_crypto_crypt.js => services/crypto/tests/unit/test_crypto_crypt.js
rename : services/sync/tests/unit/test_crypto_keypair.js => services/crypto/tests/unit/test_crypto_keypair.js
rename : services/sync/tests/unit/test_crypto_random.js => services/crypto/tests/unit/test_crypto_random.js
rename : services/sync/tests/unit/test_crypto_rewrap.js => services/crypto/tests/unit/test_crypto_rewrap.js
rename : services/sync/tests/unit/test_crypto_verify.js => services/crypto/tests/unit/test_crypto_verify.js
2010-10-14 21:17:55 +02:00
Philipp von Weitershausen 5d0af86da9 Bug 562431 - Rewrite WeaveCrypto as a .jsm [r=mconnor]
--HG--
rename : services/crypto/WeaveCrypto.js => services/crypto/modules/WeaveCrypto.js
2010-10-14 21:17:35 +02:00
Philipp von Weitershausen 10c44ccccd Backed out changeset 4ad5b1467331
Bug 583209 - Use ctypes.libraryName and don't use a full path to load libnss3 from weavecrypto.
2010-10-06 17:57:15 +02:00
Mike Hommey fef75cd21b Bug 583209 - Use ctypes.libraryName and don't use a full path to load libnss3 from weavecrypto. [r=dolske] 2010-10-05 08:32:37 +02:00
Philipp von Weitershausen 1727a9b2ee Bug 576554 - Need manifests to register XPCOM components on trunk, r=mconnor 2010-07-03 13:26:57 -04:00
Edward Lee db7fbb993d Bug 573842 - Work around non-null terminated string issue for decrypted strings [r=mconnor]
Just wrap with empty strings until bug 573841 is fixed.
2010-06-22 19:09:29 -07:00
Edward Lee ce6de55601 Bug 570636 - Decide how to co-exist as a sync add-on and built-in sync [r=mconnor]
Migrate prefs from extensions.weave. to services.sync. when loading the service for the first time before migration.
2010-06-16 14:30:13 -07:00
Edward Lee 587c8c9d4c Bug 569355 - source code reorg, redux [r=mconnor]
Split the code structure to service/{crypto,sync} and ui/{fennec,firefox}. Update the top level makefile to build the addon staging directory to merge various parts of directories.
2010-06-09 17:03:31 -07:00
Philipp von Weitershausen c7a2baa936 Bug 627511 - Merge fx-sync to mozilla-central. a=blockers 2011-01-27 22:10:26 -08:00
Philipp von Weitershausen 44d001794e Bug 625918 - Merge fx-sync to mozilla-central. a=blocking 2011-01-20 13:53:59 -08:00
Mike Hommey 779356120b Bug 618195 part 2 - Only build services-crypto component as part of platform. r=mconnor,a=mconnor
--HG--
rename : services/crypto/nsISyncJPAKE.idl => services/crypto/component/nsISyncJPAKE.idl
rename : services/crypto/nsSyncJPAKE.cpp => services/crypto/component/nsSyncJPAKE.cpp
rename : services/crypto/nsSyncJPAKE.h => services/crypto/component/nsSyncJPAKE.h
rename : services/crypto/tests/unit/test_jpake.js => services/crypto/component/tests/unit/test_jpake.js
2010-12-20 10:12:12 +01:00
Edward Lee 1c6db4115b Bustage fix for bug 561480 to check typeof == undefined instead of == null.
--HG--
extra : rebase_source : 281817a091523853341168c117be30862deba6ad
2010-05-07 13:29:04 -07:00
Edward Lee b3b91dc181 Bug 561480 - Errors when loading WeaveCrypto.js on older platforms [r=mconnor]
Only register WeaveCrypto if it was able to import scripts.
2010-05-04 12:15:43 -07:00
Justin Dolske 75fe297323 Bug 513798 - Rewrite WeaveCrypto in JS. r=mconnor, r=dwitte
--HG--
rename : services/crypto/components/IWeaveCrypto.xpt => services/crypto/IWeaveCrypto.xpt
2010-04-21 19:02:16 -07:00
Philipp von Weitershausen 2caed5c6b7 Bug 618492 - Merge fx-sync to mozilla-central. a=blockers 2010-12-10 16:36:23 -08:00
Philipp von Weitershausen 25f9355cad Bug 601645 - Tests for JPAKE. r=mconnor a=blocking-beta8 2010-12-09 18:28:07 -08:00
Brian Smith ff1c112075 Bug 601645 - JavaScript API for NSS J-PAKE. r=mconnor a=blocking-beta8 2010-12-09 18:27:48 -08:00
Philipp von Weitershausen 81fd2a0441 Remerge fx-sync
--HG--
extra : rebase_source : a4b61b8ac50d3abe829a18c304f4e23f0f5a4f2a
2010-12-07 13:20:16 -08:00
Dão Gottwald 61e1819395 Backed out changesets 4d16d58becaf, 680d3557cafe, 13ea9fc20ed2, 1b2d4ba850a9, 81d8bf53ab01, 3e74c1c15b63, a29a2a0ae764, d2fd62ffd88e, 183be003b312, faa6ce5a0a20, 3ee27049cd1a. a=permaorange 2010-12-07 12:50:55 +01:00
Philipp von Weitershausen 3ad2a48c0e Bug 617173 - Merge fx-sync to mozilla-central. a=blocking 2010-12-06 23:04:51 -08:00
Philipp von Weitershausen d9bf35b673 Bug 615021 - Merge fx-sync to mozilla-central. a=lotsa-blockers 2010-11-30 20:39:13 -08:00
Philipp von Weitershausen 03db1c2c34 Bug 604603 - Merge fx-sync to mozilla-central. a=crashes,orange 2010-10-28 17:32:25 -07:00
Philipp von Weitershausen 150c18d72a Bug 562431 follow-up: adjust Makefiles. r=mconnor a=merge 2010-10-15 11:46:22 +02:00
Philipp von Weitershausen 268af9e32a Bug 603388 - Merge fx-sync to mozilla-central. a=blockers
--HG--
rename : services/crypto/WeaveCrypto.js => services/crypto/modules/WeaveCrypto.js
2010-10-15 11:46:02 +02:00
Philipp von Weitershausen df8ad880f7 Merge backout from fx-sync. a=mconnor 2010-10-06 18:06:51 +02:00
Philipp von Weitershausen f2b7562c00 Bug 601952 - Merge fx-sync to mozilla-central. a=blocking-beta7 2010-10-05 19:11:27 +02:00
Mike Connor 1c4fde8583 bug 503703 - add make target for building a single-OS XPI, r=edilee. actually allows specifying multiple package targets 2009-08-27 01:40:43 -04:00
Anant Narayanan 96db27a500 WinCE crypto binary (bug #487171) 2009-07-28 17:14:52 -07:00
Anant Narayanan 0470244603 Backed out changeset 9e8936813ae1 2009-07-28 17:13:15 -07:00
Anant Narayanan d014c20001 WinCE crypto binary 2009-07-28 16:54:24 -07:00
Edward Lee dc5086b560 Generate SunOS x86 binaries and put them under platform/SunOS because the contrib Firefox builds are SunOS_x86-sunc while we build SunOS_x86-cc. 2009-07-26 02:55:38 -07:00
Edward Lee c352d7c2db Add i86pc machine detection for crypto Makefile. Add SunOS for test Makefiles. 2009-07-26 02:55:38 -07:00
Gary Gendel 54a521ac84 Bug 501630 - OpenSolaris x86 support
Add SunOS for crypto Makefile to build a dynamic shared library.
2009-07-24 21:16:59 -07:00
Edward Lee afca7c787c Bug 506091 - New binary needed for Maemo devices
Rebuild Linux_arm-gcc3 (maemo) WeaveCrypto.so binary.
2009-07-23 23:05:24 -07:00
Anant Narayanan 743e4ae823 Crypto binary for Linux_x86-64
--HG--
extra : rebase_source : ca27677a6fb08524f60e4a4ebae6fa338f5fd057
2009-07-22 16:33:50 -07:00
Anant Narayanan d9687953fd Crypto binary for Windows 2009-07-22 16:22:08 -07:00
Anant Narayanan e041769fd8 Crypto binary for Linux_x86 2009-07-22 15:30:16 -07:00
Anant Narayanan 454a197d48 Add ability to change passphrase (and merge XUL files) bug #443696 2009-07-21 16:54:46 -07:00
Anant Narayanan 26a5b6bd9b Expose rewrapPrivateKey & verifyPassphrase (bug #505401) 2009-07-21 15:02:30 -07:00
Anant Narayanan 5ccbee5ebe Backed out changeset 5768a19f21d3 (crypto review not done yet) 2009-07-21 14:32:57 -07:00
Anant Narayanan 98dab3d018 Crypto changes
--HG--
extra : rebase_source : 0a953a43c01b95e7c467ec4ca7feeb0aaa00f5e1
2009-07-21 11:18:29 -07:00
Edward Lee e9b04c1a05 Fix trailing spaces. 2009-07-16 15:17:28 -07:00
Edward Lee a2fb76d1d2 $hare the $ub$titute command from root Makefile. 2009-07-16 14:07:07 -07:00
Edward Lee e3ff46defa Re/Move substitute declarations. 2009-07-16 12:11:31 -07:00
Mike Connor 51215dc245 fix crypto build on Windows
--HG--
extra : rebase_source : 064641153d08264392be94204ba78c21dff7a782
2009-07-15 22:46:42 -04:00
Mike Connor 34a0e690ad build system updates (still WIP) 2009-07-10 23:32:04 -04:00
Mike Connor 9146187052 new makefile for crypto 2009-07-10 14:15:21 -04:00
Mike Connor 9eb60ac14f file moves
--HG--
rename : services/sync/IWeaveCrypto.xpt => services/crypto/components/IWeaveCrypto.xpt
2009-07-10 11:57:56 -04:00
Mounir Lamouri (volkmar) e82ca30391 Bug 486797 - ppc architecture is not defined if not MacOS. r=Mardak 2009-06-16 12:16:03 -07:00
Wladimir Palant b8165dd6e3 Bug 495964 - Building WeaveCrypto.dll fails if Mercurial revision doesn't start with a number 2009-06-02 18:08:52 +02:00
Myk Melez ad2f71f0df bug 476539: use a XULRunner-based test harness for unit testing; r=thunder 2009-03-20 00:14:21 -07:00
Justin Dolske 8602827228 Bug 479341 - make WeaveCrypto::GenerateKeypair() call PK11_GenerateKeyPairWithOpFlags(). bacon=thunder 2009-03-19 23:55:55 -07:00
Dan Mills f0b78c3c63 use -fshort-wchar on x86_64 too (only exclude it form arm) 2009-02-10 00:51:06 -08:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 0b34f796bb Added Linux-ARM processor compiled version of crypto module to repository. Slight modification of makefile to enable building this on ARM. 2008-12-04 11:00:47 -08:00
Dan Mills d22e1ed5a8 Bug 465974: fix firefox crash at startup due to weave using nss without initializing it 2008-11-28 00:33:53 +09:00
Paul O’Shannessy db5200bea6 Bug 577383 - Merge fx-sync to mozilla-central [r=mconnor] 2010-07-07 17:39:40 -07:00
Benjamin Smedberg c4dd7402dc Registration changes for services/sync and services/crypto required from bug 568691, landing on a CLOSED TREE to fix mobile bustage. 2010-07-01 15:08:13 -04:00
Philipp von Weitershausen 252e3c583c Bug 571902 - Land sync and crypto components on trunk [r=mconnor r=ted]
Makefiles and build helpers for 'services'.
2010-06-21 17:05:08 -07:00
Dan Mills 5d2591dac9 use just 'Darwin' for the platform dir on OSX. 'Darwin-gcc3' does not appear to work correctly 2008-07-17 20:38:42 -07:00
Dan Mills a8f5952d90 Bug 442931: Create a universal (x86/PPC) component on mac. Patch by Godwin Chan <godwinchan@hotmail.com>, with tweaks by me 2008-07-16 20:47:16 -07:00
Dan Mills d52c57db3a Bug 442679: Add support for compiling on 64-bit linux systems. Patch by Mark Wilkinson <mhw@kremvax.net> 2008-07-13 04:06:44 -07:00
Dan Mills 1314f77fd5 fix verifyPassphrase() 2008-07-12 20:31:27 -07:00
Dan Mills 57c0a00aea add WINNT-5.1 to makefile 2008-07-08 20:57:05 -07:00
Justin Dolske 7eb4f6a421 Fix crypto component to not mangle certain strings when doing 8/16 bit character conversion. 2008-06-29 20:51:22 -07:00
Justin Dolske a6a038656a Bug 442257 – Weave 1.32: WeaveCrypto doesn't work under Linux. 2008-06-29 16:58:10 -07:00
Justin Dolske 1b1d0f308a Use statically-sized stack buffers to fix building on Windows. 2008-06-26 15:22:48 -07:00
Justin Dolske c0769fe961 Use allocated buffers instead of stack when the buffers can be large (OS X has a 1MB limit) 2008-06-23 16:14:55 -07:00
Justin Dolske 6f8cfd6329 Add Makefile support for building on ARM, move comment that triggers bug on scratchbox's Make 3.80 2008-06-22 14:43:09 -07:00
Justin Dolske 4247cabcad Apparently NS_IMPL_NSGETMODULE("FOO") doesn't work on Linux, but NS_IMPL_NSGETMODULE(FOO) does. 2008-06-19 14:51:20 -07:00
Justin Dolske 470e9c1705 Minor tweaks for compile errors on Linux. 2008-06-19 13:03:10 -07:00
Justin Dolske 947132ed2c Checkin of NSS-ized WeaveCrypto module (not yet used) 2008-06-18 21:42:16 -07:00
Anant Narayanan 8697d54544 Fix linux builds (bug 433922, r=thunder) 2008-06-05 17:21:53 -07:00
Dan Mills 554666b9b9 only require the .rc file on windows 2008-05-30 18:53:07 -07:00
Dan Mills f5737a39d9 fix build regression in windows from linux fixes 2008-05-22 18:52:52 -07:00
Atul Varma 1880deb3c3 Changeset c5a909fd128d (r336 on hg.mozilla.org) seems to have broken the OS X build, because there is no xpcom_core library on OS X, so I've modified the Makefile so that the library is only included if we're on Linux. I'm not sure what this will do for Windows builds, though, so it may break the build on Windows. 2008-05-22 11:44:51 -07:00
Anant Narayanan c3a2162a6c Patching to support building component on Linux. 2008-05-20 16:53:14 -07:00
Dan Mills a06768ef13 more windows (msvc) build fixes 2008-05-14 17:15:55 -07:00
Dan Mills 0ac923cec9 windows build fixes for crypto component 2008-05-13 18:37:07 -07:00
Dan Mills e8ea45e9de add a simple unit test harness based on xpcshell; add two tests for PBE and to load all the modules; add some hacks to the component's makefile to make tests work correctly 2008-04-30 13:01:17 -07:00
Dan Mills 3184c97820 add a c++ crypto component, ported from bug 400742; with a specialized makefile to build in the extension (with the gecko sdk) 2008-04-25 18:28:31 -07:00