Commit Graph

22 Commits

Author SHA1 Message Date
roytam1 0e82367b9c Merge remote-tracking branch 'origin/tracking' into custom 2026-04-27 10:23:19 +08:00
Moonchild 59887ccee8 [DOM/WebCrypto] Reject absurdly large salt values. 2026-04-27 10:05:04 +08:00
roytam1 f7298813f9 Merge remote-tracking branch 'origin/tracking' into custom 2025-02-06 09:30:57 +08:00
Moonchild 5141227896 Issue #2690 - Remove additional incorrect syntax error result values. 2025-02-06 09:28:11 +08:00
Moonchild e1e7a0c5bc Issue #2690 - Allow 0-length keys/empty passwords for PBKDF2. 2025-02-06 09:27:57 +08:00
Moonchild 3d7a95ab44 Issue #2690 - Convert error from non-existing convenience function.
Didn't check that the convenience function existed for this. Throw the
error manually, instead.
TO-DO: Add these convenience functions for one-shot errors.
2025-02-06 09:27:43 +08:00
Moonchild 263bf279a7 Issue #2690 - Throw a NotSupportedError in case of unknown algorithm name.
Syntax error is incorrect for this case.
2025-02-06 09:27:25 +08:00
Moonchild 7039b5a95d Issue #2690 - Replace SyntaxError with TypeError for derive_bits_keys. 2025-02-06 09:27:11 +08:00
Moonchild 4da1b56b6a Issue #2690 - Add AES-KW purposed keys to list of allowable keys to unwrap. 2025-02-06 09:26:58 +08:00
roytam1 a55674f653 Merge remote-tracking branch 'origin/tracking' into custom 2023-10-04 10:06:04 +08:00
Brian Smith 0701dccaca Issue #1442 - Part 5: Implement WebIDL bindings for Streams. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959 2023-10-04 09:54:00 +08:00
roytam1 a52c44343e Merge remote-tracking branch 'origin/tracking' into custom 2023-02-22 07:09:09 +08:00
Moonchild 0b9698c80a [DOM] WebCrypto: Check decoded key type before using it.
Just in case someone forces the wrong key type and misuses WebCrypto.
It won't be usable anyway so better to throw.
2023-02-22 07:08:44 +08:00
roytam1 6de07653b9 Merge remote-tracking branch 'origin/tracking' into custom 2022-04-28 10:45:19 +08:00
Moonchild 8d800b1cb0 Issue #21 - Remove Telemetry plumbing and fix build.
Note this won't give working applications. Requires FE changes and
additional js module changes (next part).
2022-04-28 10:25:48 +08:00
roytam1 5b5e1ae07b Revert "Issue #1743 - Update CK_GCM_PARAMS use for PKCS11 v3.0 in WebCryptoTask"
This reverts commit 20ba0b34ec.
2021-02-19 07:03:24 +08:00
Moonchild 20ba0b34ec Issue #1743 - Update CK_GCM_PARAMS use for PKCS11 v3.0 in WebCryptoTask 2021-02-18 21:57:45 +08:00
Moonchild 8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
wolfbeast c2aa68fcd1 Root parameter dictionaries in AesTask::Init(). 2019-02-16 00:22:07 +08:00
wolfbeast 8c8145e620 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2019-02-16 00:12:32 +08:00
wolfbeast b67e03dc90 Check for integer overflow in AesTask::DoCrypto() (DiD)
After calling mResult.SetLength(mData.Length() + 16) we should check
that the integer addition didn't overflow. It seems at the moment
impossible to create ArrayBuffers of size >= 0x0xfffffff0, however
adding a check here doesn't hurt.

mResult.Length() is passed to the PK11 API functions as a
maxOut parameter and should be checked by the
softoken crypto algorithm implementations.
AES-ECB and AES-GCM seem to do that correctly.
2019-02-15 23:30:14 +08:00
roytam1 dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00