summaryrefslogtreecommitdiffstats
path: root/crypto
Commit message (Collapse)AuthorAgeFilesLines
* Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME).nkostylev@chromium.org2014-05-271-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes GetHomeDir() for multi-profiles case on Chrome OS. * Once user signs in on Chrome OS base::DIR_HOME is overridden with primary user homedir. * Added content switch --homedir to pass that information to ppapi plugins since they run in a separate process and previous base::DIR_HOME override does not apply there. This fix doesn't require checking for --multi-profiles switch since user_id hash is known even without it. Note: download_prefs.cc still uses GetHomeDir() in its DownloadPathIsDangerous() check. // Consider downloads 'dangerous' if they go to the home directory on Linux and // to the desktop on any platform. In this context correct behavior is to use "real" base::GetHomeDir() and not "virtual one" base::DIR_HOME. Since latter is remapped to some test dir in tests, in some subfolders in Chrome OS etc. BUG=331530 TBR=vitalybuka@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270872 Review URL: https://codereview.chromium.org/200473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272898 0039d316-1c4b-4281-b951-d872f2087c98
* Fix component build with gcc 4.6 on Android.aurimas@google.com2014-05-221-1/+1
| | | | | | | | | | | CRYPTO_EXPORT macro has to be before the non-void return type. BUG=None TBR=rsleevi@chromium.org Review URL: https://codereview.chromium.org/296223002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272363 0039d316-1c4b-4281-b951-d872f2087c98
* Enable more targets in the Android GN build.brettw@chromium.org2014-05-221-0/+4
| | | | | | | | | | This enables some already-working targets and adds a missing cpufeatures dep to crypto to make it compile. I added a comment in the cpufeatures build file so I can find it more easily by grepping next time. R=cjhopman@chromium.org Review URL: https://codereview.chromium.org/291343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272362 0039d316-1c4b-4281-b951-d872f2087c98
* Add OpenSSL BIO method that writes to a std::string.mattm@chromium.org2014-05-225-0/+184
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/286263006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272100 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented profile-aware owner key loading.ygorshenin@chromium.org2014-05-212-28/+91
| | | | | | | | | BUG=230018 TEST=manual Review URL: https://codereview.chromium.org/270663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271802 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SSL server socket over OpenSSL.byungchul@chromium.org2014-05-171-1/+2
| | | | | | | | | | | | 1) Mixed ssl_server_socket_nss.cc and ssl_client_socket_openssl.cc. 2) Moved common functions into openssl_util.cc. 3) Enabled SslServerSocketTest when USE_OPENSSL is defined. BUG= Review URL: https://codereview.chromium.org/274783002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271218 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 270872 "Move all callers of GetHomeDir() to PathService::..."benwells@chromium.org2014-05-161-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | > Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME). > > * Fixes GetHomeDir() for multi-profiles case on Chrome OS. > * Once user signs in on Chrome OS base::DIR_HOME is overridden with primary user homedir. > * Added content switch --homedir to pass that information to ppapi plugins since they run in a separate process and previous base::DIR_HOME override does not apply there. > > This fix doesn't require checking for --multi-profiles switch > since user_id hash is known even without it. > > BUG=331530 > TBR=vitalybuka@chromium.org > > Review URL: https://codereview.chromium.org/200473002 This test has caused two tests to start failing on the chromeos valgrind bots: http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28valgrind%29%286%29/builds/25884 http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28valgrind%29%285%29/builds/26990 TBR=nkostylev@chromium.org Review URL: https://codereview.chromium.org/284333002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270951 0039d316-1c4b-4281-b951-d872f2087c98
* Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME).nkostylev@chromium.org2014-05-161-1/+4
| | | | | | | | | | | | | | | | * Fixes GetHomeDir() for multi-profiles case on Chrome OS. * Once user signs in on Chrome OS base::DIR_HOME is overridden with primary user homedir. * Added content switch --homedir to pass that information to ppapi plugins since they run in a separate process and previous base::DIR_HOME override does not apply there. This fix doesn't require checking for --multi-profiles switch since user_id hash is known even without it. BUG=331530 TBR=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/200473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270872 0039d316-1c4b-4281-b951-d872f2087c98
* Remove {linux|android}_use_tcmalloc and switch to use_allocator in Chromium.dmikurube@chromium.org2014-05-071-2/+1
| | | | | | | | | | | | | | If this change breaks some bots, please try restarting the bot before reverting it. http://crrev.com/264460 may not be effective yet until restarting. See the bug and http://crrev.com/255129 for the details. BUG=345554 Review URL: https://codereview.chromium.org/258433005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268876 0039d316-1c4b-4281-b951-d872f2087c98
* GN build improvements.brettw@chromium.org2014-04-301-6/+0
| | | | | | | | | | | | | | | | | Fixes a TODO about private symbols on GCC. Moves many third party BUILD.gn files from the secondary tree to the main one. Fixes the dependencies on Linux so "gn check" passes again. BUG=367595 R=scottmg@chromium.org Previous review: https://codereview.chromium.org/256153003/ Review URL: https://codereview.chromium.org/264463002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267233 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused bits implementing parts of RFC 4880rsleevi@chromium.org2014-04-287-975/+0
| | | | | | | | | BUG=none R=wtc@chromium.org, brettw@chromium.org Review URL: https://codereview.chromium.org/253643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266475 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for 64-bits, 32-bit size_t assumption.anton@chromium.org2014-04-231-1/+1
| | | | | | | | BUG=362031, 346626 Review URL: https://codereview.chromium.org/239993005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265710 0039d316-1c4b-4281-b951-d872f2087c98
* Make GN's "check" run cleanly.brettw@chromium.org2014-04-221-1/+4
| | | | | | | | | | | | | This fixes a bunch of minor issues, mostly header file dependencies for undeclared dependencies. This also fixes some random TODOs. R=scottmg@chromium.org BUG= Review URL: https://codereview.chromium.org/246303005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265382 0039d316-1c4b-4281-b951-d872f2087c98
* Work on Mac GN build.brettw@chromium.org2014-04-171-10/+5
| | | | | | | | | | | | | | | | | | | | This fixes a lot of minor mistakes (mostly missing/extra files and flags) for the Mac GN build. I separated out some clang flags into a config for extra clang warnings. Several of the third party libraries needed to remove this. Removes the use_nss flag and uses !use_openssl. This is a result of discussion with rsleevi. Removes extra duplicate net build file from secondary tree. ui/gesture_events seems to be getting compiled in GN with more strict warnings than in GYP. Rather than fix this, I fixed the warning in the gesture recognizer unit test. It was returning a const copy (the const is pointless when you're copying). This also removes a bunch of old GYP integration stuff that was left in the GN build. R=scottmg@chromium.org Review URL: https://codereview.chromium.org/239543013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264626 0039d316-1c4b-4281-b951-d872f2087c98
* Implement net in GN build.brettw@chromium.org2014-04-151-1/+9
| | | | | | | | | | | | | | | | | | | | | This does the net target. I started doing some more that are commented out at the bottom, and there are a few more after that do do. The deps of these targets started to build up to an unreasonable level and this should be a good checkpoint. Fix grit rule. Fix SSL dependent configs Add TLD cleanup Add gconf and gio targets for Linux. Add sources filtering for ChromeOS, .rc, and .mm files. Remove built-in code that removes .rc and .mm files (this wasn't quite complete so causes problems). BUG= R=scottmg@chromium.org Review URL: https://codereview.chromium.org/236713002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263967 0039d316-1c4b-4281-b951-d872f2087c98
* Add SSL support to the GN buildbrettw@chromium.org2014-04-141-0/+278
| | | | | | | | | | This moves files from the secondary tree to the main one, and renames the "meta" one to //crypto:ssl. It also adds the crypto unit tests. R=rsleevi@chromium.org Review URL: https://codereview.chromium.org/231673006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263744 0039d316-1c4b-4281-b951-d872f2087c98
* Allow empty keys in hmac_openssl.cc.davidben@chromium.org2014-04-102-0/+26
| | | | | | | | | | | PrefHashCalculator uses empty keys in developer builds. This fixes Chrome startup in debug builds. BUG=none Review URL: https://codereview.chromium.org/231603002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263085 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of all component builds specific .isolate.maruel@chromium.org2014-04-041-28/+0
| | | | | | | | | | | | | | | | | | The status quo was unmaintainable. These 'component build specific .isolate files' are superseeded by tools/isolate_driver.py which packages dynamic libraries automatically. The new way is much more sane and dynamic, isolate_driver.py is currently very crude but 'does the job', the expected way to make it work is to read the .ninja files to extract all the dynamic libraries marked as a dependency to the main target being executed. TBR=csharp@chromium.org BUG=333473 Review URL: https://codereview.chromium.org/226123004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261871 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce USE_OPENSSL_CERTS for certificate handling.haavardm@opera.com2014-03-283-9/+6
| | | | | | | | | | | | | | | | | | | | | | | See discussion at chromium issue 338885. When USE_OPENSSL_CERTS is defined, X509::OSCertHandle is now typedef'ed to struct X509*. When USE_OPENSSL is defined, USE_OPENSSL_CERTS will now be defined for linux and Android, while being off for Mac and Windows. This allows OpenSSL to be used while leaving certificate handling to the OS. OpenSSL cert verifying code will only be used on Linux. This patch does not change any default behavior. Bug=none Test=none Review URL: https://codereview.chromium.org/206453002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260152 0039d316-1c4b-4281-b951-d872f2087c98
* Remove prtypes.h and prcpucfg*.h from base/third_party/nspr.wtc@chromium.org2014-03-256-5/+84
| | | | | | | | | | | | | | Copy the type and macro definitions we need to base/third_party/nspr/prtime.h. Add chromium-prtypes.h to crypto/third_party/nss. content/common/plugin_list_posix.cc doesn't need to include prcpucfg_linux.h. R=ananta@chromium.org,mark@chromium.org,rsleevi@chromium.org Review URL: https://codereview.chromium.org/209343003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259148 0039d316-1c4b-4281-b951-d872f2087c98
* crypto.gyp: move openssl dependency into use_openssl section. Remove ↵mattm@chromium.org2014-03-221-11/+3
| | | | | | | | | | redundant source excludes. BUG=338888 Review URL: https://codereview.chromium.org/205813004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258749 0039d316-1c4b-4281-b951-d872f2087c98
* Hack to allow ec_private_key_openssl loading keys generated with NSS.mattm@chromium.org2014-03-222-3/+128
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/205333002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258739 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused SymmetricKey::CreateFromKey method.mattm@chromium.org2014-03-202-12/+0
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/205763003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258427 0039d316-1c4b-4281-b951-d872f2087c98
* Move more file_util functions to base namespace.brettw@chromium.org2014-03-131-3/+3
| | | | | | | | TBR=jam Review URL: https://codereview.chromium.org/189333004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256863 0039d316-1c4b-4281-b951-d872f2087c98
* Build src/crypto for PNaClsergeyu@chromium.org2014-03-123-90/+155
| | | | | | | | | | The new crypto_nacl target builds crypto for PNaCl. BUG=276739 Review URL: https://codereview.chromium.org/185233012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256485 0039d316-1c4b-4281-b951-d872f2087c98
* Convert most Chromium presubmit files to use new ↵phajdan.jr@chromium.org2014-03-111-3/+6
| | | | | | | | | | | multiple-tryserver-compatible protocol BUG=334892 R=maruel@chromium.org Review URL: https://codereview.chromium.org/194903007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256318 0039d316-1c4b-4281-b951-d872f2087c98
* Add use_allocator instead of linux_use_tcmalloc to switch the allocator.dmikurube@chromium.org2014-03-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is to add a new build option 'use_allocator' which will replace 'linux_use_tcmalloc' in the future. It doesn't change the behavior immediately. The migration plan is as follows: 1) (this change) ... Add 'use_allocator' and set its default to "see_use_tcmalloc". ... Change allocator conditions to check use_allocator firstly. ... Use linux_use_tcmalloc if use_allocator=="see_use_tcmalloc". ... NO IMPACT without specifying use_allocator explicitly. 2) Change Blink to accept use_allocator. http://crrev.com/177053003/ 3) Change gyp to accept use_allocator. http://crrev.com/178643004/ 4) PSA the transition period to chromium-dev@. 5) (after the PSA-ed transition period) ... Make 'use_allocator' to "tcmalloc" or "none" (it depends) by default. ... Remove all linux_use_tcmalloc. ... Assert in gyp_chromium to check if linux_use_tcmalloc is not specified. At the point of this change (1), linux_use_tcmalloc is still used by default because 'use_allocator%': "see_use_tcmalloc". As written in http://crbug.com/345554, linux_use_tcmalloc would be confusing to have more options about allocators. We plan to: A) enable gperftools' heap-profiler with non-tcmalloc allocator, B) add a new memory allocator instead of tcmalloc. BUG=345554, 339604, 341349 R=agl@chromium.org, brettw@chromium.org, dgarrett@chromium.org, jam@chromium.org, jamesr@chromium.org, joi@chromium.org, miket@chromium.org, nick@chromium.org, rsleevi@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, shess@chromium.org, sievers@chromium.org, sky@chromium.org, vitalybuka@chromium.org, willchan@chromium.org Review URL: https://codereview.chromium.org/177353002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255129 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Load chaps module and lookup TPM slots on the worker pool.mattm@chromium.org2014-02-272-41/+126
| | | | | | | | BUG=345713 Review URL: https://codereview.chromium.org/181053002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253942 0039d316-1c4b-4281-b951-d872f2087c98
* Convert scoped_ptr_malloc -> scoped_ptr, part 2.viettrungluu@chromium.org2014-02-262-29/+24
| | | | | | | | | | | | scoped_ptr_malloc is deprecated; let's get rid of it. BUG=344245 R=brettw@chromium.org TBR=rsleevi@chromium.org,miket@chromium.org,ryanmyers@chromium.org,dalecurtis@chromium.org, cpu@chromium.org Review URL: https://codereview.chromium.org/169193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253582 0039d316-1c4b-4281-b951-d872f2087c98
* Make net_unittests_run work with component=shared_library.maruel@chromium.org2014-02-051-0/+28
| | | | | | | | | | | | Specifically, this adds support to run net_unittests isolated via 'isolate.py run' when built with component build. R=vadimsh@chromium.org,brettw@chromium.org,rsleevi@chromium.org BUG=336439 Review URL: https://codereview.chromium.org/134003004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249150 0039d316-1c4b-4281-b951-d872f2087c98
* Use file_util::GetFileSystemType() in crypto/nss_util.cc.thestig@chromium.org2014-02-051-18/+19
| | | | | | Review URL: https://codereview.chromium.org/147933003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248923 0039d316-1c4b-4281-b951-d872f2087c98
* Disable noisy printf in nss_util.ccdanakj@chromium.org2014-01-311-1/+1
| | | | | | | | | | | | This is printed in every browser test, and just adds noise. Switch it to VLOG(1) so it's available when wanted. R=rsleevi@chromium.org BUG=339891 Review URL: https://codereview.chromium.org/148483008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248290 0039d316-1c4b-4281-b951-d872f2087c98
* ChromeOS: Fix crash if login profile triggers client auth.mattm@chromium.org2014-01-142-1/+19
| | | | | | | | | | | | The login profile (which is identified with an empty username_hash) does not have an entry in the chromeos_user_map_, which would cause a crash (or DCHECK) when GetPrivateSlotForChromeOSUser was called. GetPrivateSlotForChromeOSUser is changed to return a NULL slot handle for this case. Updates NSSProfileFilterChromeOS to allow NULL slot handles, which it will now receive due to the above change. BUG=331945,302125 Review URL: https://codereview.chromium.org/123633002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244690 0039d316-1c4b-4281-b951-d872f2087c98
* Allow Win64 build of base library even in a Win32 build.petewil@chromium.org2014-01-091-1/+1
| | | | | | | | | | | | | | | Some components of a 32 bit build of chrome for Windows need to be built as Win64 Dlls. To allow those components to use base, we make a Win64 build of the base library even when building chrome 32 bit. This is needed by the Chrome Desk Band code. crbug.com/327435. https://codereview.chromium.org/79173004/ BUG=327435 Review URL: https://codereview.chromium.org/103333004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243936 0039d316-1c4b-4281-b951-d872f2087c98
* crypto: fix typo in unittest found by thakis's new compiler warning.agl@chromium.org2013-12-211-1/+1
| | | | | | | (Note: landing unreviewed because it's trivial, the weekend before Xmas and I'll forget about it if I leave it until after the vacation.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242277 0039d316-1c4b-4281-b951-d872f2087c98
* Add ClientCertStoreChromeOS which only returns the certs for a given user.mattm@chromium.org2013-12-172-1/+50
| | | | | | | | BUG=302125 Review URL: https://codereview.chromium.org/112533002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241080 0039d316-1c4b-4281-b951-d872f2087c98
* Update keygen to use correct NSS slot on ChromeOS multiprofile.mattm@chromium.org2013-12-164-35/+55
| | | | | | | | BUG=302126 Review URL: https://codereview.chromium.org/61643007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240868 0039d316-1c4b-4281-b951-d872f2087c98
* Fix location of NSS library on armhf linux.sbc@chromium.org2013-12-111-0/+4
| | | | | | | | | BUG=327453 TEST=arm linux trybot Review URL: https://codereview.chromium.org/111713006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240018 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize per-ChromeOS-user NSS slots and provide the functions to access them.mattm@google.com2013-12-063-12/+278
| | | | | | | | | BUG=302124 R=mmenke@chromium.org, rsleevi@chromium.org, xiyuan@chromium.org Review URL: https://codereview.chromium.org/53763003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239266 0039d316-1c4b-4281-b951-d872f2087c98
* Move directory creation functions to base namespace.brettw@chromium.org2013-12-031-1/+1
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/100573002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238446 0039d316-1c4b-4281-b951-d872f2087c98
* Move some more file utils to the base namespace.brettw@chromium.org2013-12-021-1/+1
| | | | | | | | | This also swaps the order of the parameters to GetShmemTempDir so the out parameter is last, and enhances some documentation. Review URL: https://codereview.chromium.org/93263002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238144 0039d316-1c4b-4281-b951-d872f2087c98
* Remove crypto::GetTPMTokenInfo which is no longer necessary.mattm@chromium.org2013-11-252-38/+4
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/83833003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237150 0039d316-1c4b-4281-b951-d872f2087c98
* crypto: disable NSS AES-NI support when AVX is disabled by OS.agl@chromium.org2013-11-221-0/+18
| | | | | | | | | | | | | | | | | | | | | When running under Xen, or with certain kernel configurations, it's possible for the CPU to support AVX but for the operating system not to have configured it. In this case, CPUID indicates that AVX support exists and NSS will try to use it for AES-GCM. However, the first AVX instruction will cause an illegal instruction exception. This change works around the problem by disabling AES-NI support when AVX support exists but is not supported by the OS. Sadly this also means that plain AES instructions are also disabled in this case, but that's better than crashing. https://bugzilla.mozilla.org/show_bug.cgi?id=940794 BUG=320524 Review URL: https://codereview.chromium.org/79283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236794 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ChromeOS TPM slot unlock hacks that are unnecessary with chaps.mattm@chromium.org2013-11-211-18/+1
| | | | | | | | BUG=125848 Review URL: https://codereview.chromium.org/76693005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236418 0039d316-1c4b-4281-b951-d872f2087c98
* crypto: enable NEON optimisations when supported by the platform.agl@chromium.org2013-11-202-0/+15
| | | | | | | | BUG=310768 Review URL: https://codereview.chromium.org/65413008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236143 0039d316-1c4b-4281-b951-d872f2087c98
* NSS: {EC,RSA}PrivateKey shouldn't call crypto::GetPublicNSSKeySlot or ↵mattm@chromium.org2013-11-135-113/+103
| | | | | | | | | | | | | | | | | GetPrivateNSSKeySlot. Make ECPrivateKey use PK11_GetInternalKeySlot for temporary keys. Make ECPrivateKey and RSAPrivateKey "sensitive" functions take slot as parameter. This avoids calling non-thread-safe functions in nss_util on arbitrary threads. Also removes the ANNOTATE_SCOPED_MEMORY_LEAK from RSAPrivateKey which should no longer be necessary. BUG=125848,34742 Review URL: https://codereview.chromium.org/66213002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234726 0039d316-1c4b-4281-b951-d872f2087c98
* Start adding threading checks to nss_util.mattm@chromium.org2013-11-121-0/+45
| | | | | | | | BUG=125848 Review URL: https://codereview.chromium.org/64723006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234388 0039d316-1c4b-4281-b951-d872f2087c98
* crypto/nss_util: Get TPM slot id, do lookup by id instead of by name.mattm@chromium.org2013-10-252-24/+38
| | | | | | | | | | chromeos/cert_loader: store slot id as int. BUG=302124 Review URL: https://codereview.chromium.org/36593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231126 0039d316-1c4b-4281-b951-d872f2087c98
* crypto: Implement ECSignatureCreatorImpl for OpenSSLdigit@chromium.org2013-10-252-17/+61
| | | | | | | | | | BUG=306176 TEST=crypto_unittests --gtest_filter=ECSignatureCreatorTest.* R=rsleevi@chromium.org,agl@chromium.org,wtc@chromium.org Review URL: https://codereview.chromium.org/43663005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231048 0039d316-1c4b-4281-b951-d872f2087c98
* Add ScopedPK11SlotList to scoped_nss_types.hmattm@chromium.org2013-10-231-0/+3
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/33003004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230524 0039d316-1c4b-4281-b951-d872f2087c98