Tim Taubert
d01d161b5e
Bug 1200341 - Implement HKDF for WebCrypto r=rbarnes,smaug
2016-01-26 14:57:52 +01:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Tim Taubert
a6c3d80d75
Bug 1213203 - AsymmetricSignVerifyTask::DoCrypto() creates unused SGNContext r=mt
2015-10-09 10:56:55 +02:00
Tim Taubert
cd6157491d
Bug 1001691 - Make GenerateAsymmetricKeyTask::mKeyPair a UniquePtr so that we can explicitly release it on the main thread r=mt
2015-09-21 14:52:40 +02:00
Tim Taubert
8f64c093bf
Bug 1001691 - Use thread pool for WebCrypto operations r=bz
2015-09-11 23:41:58 +02:00
Tim Taubert
7f51dcc335
Bug 1204155 - Check if we're OOM when calling SECKEY_CopyPrivateKey() and SECKEY_CopyPublicKey() r=mt
2015-09-14 11:53:02 +02:00
Tim Taubert
786b045726
Bug 1204155 - Account for OOM in CryptoKey::SetSymKey() r=mt
2015-09-14 11:19:16 +02:00
Martin Thomson
93f1797507
Bug 1172785 - RTCCertificate implementation, r=rbarnes
...
--HG--
extra : commitid : CBco7h85lO6
extra : rebase_source : 9cec281dd07e6d503a19a0ea57e5d4ceee98197c
2015-07-06 10:40:04 -07:00
Tim Taubert
3b0521bff7
Bug 1169890 - Check return values for CryptoBuffer.Assign() calls r=rbarnes
2015-05-30 08:28:45 +02:00
Birunthan Mohanathas
470bd9148f
Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj
2015-05-28 11:07:43 -07:00
Birunthan Mohanathas
baffd2f6b4
Bug 968520 - Use FallibleTArray::TruncateLength instead of SetLength where possible. r=froydnj
...
This preemptively fixes the upcoming -Wunused-result warnings due to unchecked
SetLength calls.
2015-05-28 11:07:43 -07:00
Tim Taubert
9a87f6a0e5
Bug 1050175 - Add raw import/export for EC public keys to the WebCrypto API r=rbarnes,smaug
2015-04-28 09:13:16 +02:00
Tim Taubert
43bc9aed8d
Bug 1106087 - Recreate newly generated ECDH private keys with an CKA_EC_POINT attribute to support JWK and PKCS8 export r=rbarnes
2015-04-25 14:53:43 +02:00
Tim Taubert
fb46a95e93
Bug 1158927 - Calls to CryptoKey::PrivateKeyToPkcs8() and ::PublicKeyToSpki() should check return values r=rbarnes
2015-04-27 20:47:12 +02:00
Andrea Marchesini
d2c45be638
Bug 1167423 - patch 6 - Handle return values of FallibleTArray functions in WebCryptTask, r=smaug
2015-05-25 12:50:15 +01:00
Birunthan Mohanathas
735ccdd101
Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj
2015-05-18 13:50:35 -07:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Tim Taubert
1eb44d1229
Bug 1157454 - Satisfy TSan by removing the unneeded mEarlyRv read in WebCryptoTask::CalculateResult() r=rbarnes
2015-04-24 12:05:32 +02:00
Martin Thomson
4c2b709af0
Bug 1158296 - Allow ECDSA key export in WebCrypto, r=rbarnes
...
--HG--
extra : rebase_source : 40b14fe47652045c063ac40974147b5bfcc91630
2015-04-24 12:56:46 -07:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
1889255041
Bug 1118803 - Mark virtual overridden functions as MOZ_OVERRIDE in misc DOM code; r=baku
2015-01-08 08:49:54 -05:00
Guilherme Goncalves
2997c4e001
Bug 1088042 - Fix JsonWebKey object in test_WebCrypto_JWK. r=rbarnes
2014-10-23 09:07:00 +02:00
Tim Taubert
5fa60d8646
Bug 1034856 - Remove CryptoBuffer::ToSECItem() using moz_malloc() r=rbarnes
2014-09-03 09:40:21 -04:00
Tim Taubert
96e8ed9b9a
Bug 1034856 - Implement SPKI public key import/export for DH r=rbarnes
2014-08-22 15:32:15 +02:00
Tim Taubert
c1d2b2fa82
Bug 1034856 - Implement raw public key import/export for DH r=rbarnes,smaug
2014-08-22 12:02:14 +02:00
Tim Taubert
1d4ba08090
Bug 1034856 - Implement deriveBits() for DH r=rbarnes,smaug
2014-08-21 17:51:51 +02:00
Tim Taubert
5fc05b064c
Bug 1034856 - Implement generateKey() for DH r=rbarnes
2014-07-20 06:38:44 +02:00
Richard Barnes
f5092e255e
Bug 1034854 - Add support for ECDSA to WebCrypto API r=ttaubert,dkeeler r=bz
2014-10-13 23:19:00 +02:00
Tim Taubert
a164f4b49a
Bug 1078847 - GenerateAsymmetricKeyTask should allow generating key pairs where only the public key or the private key has any usages r=rbarnes
2014-10-07 00:47:21 +02:00
Richard Barnes
1c93990a61
Bug 1077072 - Add telemetry for ECDH and PBKDF2 to WebCrypto API r=ttaubert
2014-10-03 15:03:04 -04:00
Richard Barnes
1aebc79688
Bug 1064320 - NSC_Encrypt returns uninitialised garbage which is handed onwards to realloc
2014-09-30 17:43:49 -04:00
Richard Barnes
63afe24da8
Bug 1037892 - Implement changes to WebCrypto API from latest Editor's Draft r=bz,ttaubert
2014-09-27 14:22:57 -04:00
Wes Kocher
6341575225
Backed out changeset 398bdeea30b0 (bug 1037892) for build bustage
2014-09-26 15:35:38 -07:00
Richard Barnes
8a9d1659d6
Bug 1037892 - Implement changes to WebCrypto API from latest Editor's Draft r=bz,ttaubert
...
* * *
Add check for old structured clone format.
2014-09-26 17:36:39 -04:00
Bobby Holley
e3eca2660e
Bug 1070696 - Rename xpc::GetNativeForGlobal to xpc::NativeGlobal and make it accept non-global JSObjects. r=smaug
...
The method is infallible, and making the callers invoke
js::GetGlobalForObjectCrossCompartment manually is dumb.
2014-09-21 21:31:53 +02:00
Chris Peterson
d126c3c24f
Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem
2014-07-21 21:43:21 -07:00
Ehsan Akhgari
1b1d6ffebf
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
...
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Tim Taubert
87275fa3d8
Bug 1048133 - Check key algorithms before using them for encryption/signatures r=rbarnes a=abillings
2014-08-04 14:31:17 +02:00
Tim Taubert
340058c912
Bug 1050785 - RSA-OAEP encrypt/decrypt should accept strings as AlgorithmIdentifiers r=rbarnes
2014-08-08 16:45:08 +02:00
Tim Taubert
e51e01cadd
Bug 1050202 - Take length parameter into account when deriving HMAC keys r=rbarnes,smaug
2014-08-07 12:52:28 +02:00
Tim Taubert
d3f757e062
Bug 1034855 - Implement SPKI import/export for ECDH r=keeler,rbarnes
2014-08-04 09:39:12 +02:00
Tim Taubert
454efc0d1e
Bug 1034855 - Implement deriveKey() for ECDH r=rbarnes
2014-07-29 12:37:06 +02:00
Tim Taubert
a04d2cdc94
Bug 1034855 - Implement JWK import/export for ECDH r=rbarnes,keeler
2014-07-29 11:10:07 +02:00
Tim Taubert
40e956b12c
Bug 1034855 - Implement deriveBits() for ECDH r=rbarnes,smaug
2014-07-29 11:11:26 +02:00
Tim Taubert
d4733a1ad7
Bug 1034855 - Implement generateKey() for ECDH r=rbarnes,keeler
2014-07-26 08:01:14 +02:00
Tim Taubert
77ac66adc8
Bug 1034855 - Introduce EcKeyAlgorithm r=rbarnes,smaug
2014-07-26 08:00:24 +02:00
Ryan VanderMeulen
cdc1306825
Backed out 6 changesets (bug 1034855) for LSAN leaks on a CLOSED TREE.
...
Backed out changeset 0dc569f74991 (bug 1034855)
Backed out changeset 4eb0ee62db1e (bug 1034855)
Backed out changeset 4af8993f1534 (bug 1034855)
Backed out changeset f4f5f5b8421d (bug 1034855)
Backed out changeset 33510bb7ad60 (bug 1034855)
Backed out changeset 50b8670329aa (bug 1034855)
2014-08-05 14:04:08 -04:00
Tim Taubert
2d06be68cb
Bug 1034855 - Implement SPKI import/export for ECDH r=keeler,rbarnes
2014-08-04 09:39:12 +02:00
Tim Taubert
ad2acd36ae
Bug 1034855 - Implement deriveKey() for ECDH r=rbarnes
2014-07-29 12:37:06 +02:00
Tim Taubert
5b5fc12a02
Bug 1034855 - Implement JWK import/export for ECDH r=rbarnes,keeler
2014-07-29 11:10:07 +02:00